pegasus-cli
CLI for Django and SaaS Pegasus
What it is and what it does
Pegasus CLI is a command-line interface for the SaaS Pegasus Django framework. It lets you create, configure, and manage Pegasus projects from the terminal instead of the web UI, push your codebase to GitHub with optional version upgrades, and scaffold new Django apps with optional HTMX-powered CRUD interfaces. Every command supports non-interactive flags (--set, --json, --no-upgrade), making it suitable for scripts, CI pipelines, and AI agent workflows.
The tool wraps the SaaS Pegasus API and local Django scaffolding logic. It depends on click for CLI structure, cookiecutter for app generation, pyyaml for config files, requests for API calls, and rich for formatted terminal output. It requires Python 3.10 or later and a Pegasus API key stored either in ~/.pegasus/credentials or via the PEGASUS_API_KEY environment variable.
Use it for:
- Automate Pegasus project creation and configuration in CI/CD pipelines without manual web UI steps.
- Generate new Django apps with CRUD scaffolding and HTMX interfaces locally without boilerplate.
- Upgrade Pegasus versions across projects and push changes to GitHub as pull requests programmatically.
- Migrate legacy pg- CSS classes to Tailwind/DaisyUI equivalents across a project's templates and JavaScript.
- Integrate Pegasus project management into AI agent workflows or custom deployment scripts.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A command-line tool for managing SaaS Pegasus projects, creating Django apps with optional CRUD scaffolding, and pushing code to GitHub—all scriptable and non-interactive for CI and automation workflows.
Yes, if you use SaaS Pegasus and want to manage projects from the command line or automate project workflows in CI. The tool is actively maintained, has low install friction, carries no security vulnerabilities, and uses a permissive license. It is not useful outside the Pegasus ecosystem, so install only if you are already a Pegasus user.
Install
pegasus-cli on PyPI
pip
pip install pegasus-cliuv
uv add pegasus-clipoetry
poetry add pegasus-cliInstalling pegasus-cli
Before you install
Low friction: pure Python wheel with five common dependencies (click, cookiecutter, pyyaml, requests, rich). Actively maintained—last commit 2026-08-04, release 10 days old.
License in practice
Apache-2.0 permissive license; you can use, modify, and distribute this tool freely in commercial and private projects with minimal restrictions.
Quickstart
pip install pegasus-cli
pegasus auth
pegasus projects create --set project_name="My App" --set project_slug=my_app
pegasus projects push
Requires Python >=3.10 and a valid SaaS Pegasus API key (obtainable from a free account at saaspegasus.com).
Verify before relying
- Whether the tool works with non-Pegasus Django projects beyond the startapp and migrate-css commands.
- Performance characteristics when managing large numbers of projects or complex configurations.
- Exact scope of GitHub integration (e.g., branch naming, commit message format, PR merge behavior).
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 5 — click, cookiecutter, pyyaml, requests, rich |
| Maintenance | actively maintained — 10 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 81,397/month — #14,230 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pegasus_cli-0.16-py3-none-any.whl
Tags
More Build Tools packages
Provides reusable utilities for Python…
permissive · top 100 on PyPI
tqdmWraps any iterable to display a real-time…
copyleft · top 100 on PyPI
pippip is the standard installer for Python…
permissive · top 100 on PyPI
hatchlingHatchling is a standards-compliant Python build…
permissive · top 100 on PyPI
grpcio-toolsGenerates Python gRPC service stubs and message…
permissive · top 1,000 on PyPI
pre-commitpre-commit is a framework for installing and…
permissive · top 1,000 on PyPI
mandomando wraps argparse to let you build…
permissive · top 5,000 on PyPI
ansible-creatorA CLI tool that scaffolds new Ansible projects…
permissive · top 15,000 on PyPI
flet-cliFlet CLI is a command-line tool for creating,…
permissive · top 15,000 on PyPI
dagster-dg-cliA command-line tool for developing and managing…
permissive · top 5,000 on PyPI
fastapi-cloud-cliA command-line tool for deploying and managing…
permissive · top 1,000 on PyPI
django-tailwindIntegrates Tailwind CSS into Django projects…
permissive · top 15,000 on PyPI
cookiecutterCookiecutter is a command-line tool that…
unclear · top 5,000 on PyPI
cloudsmith-cliA command-line interface to the Cloudsmith…
permissive · top 15,000 on PyPI
matricePython SDK for building machine learning…
permissive · top 5,000 on PyPI
dwave-graphsProvides graph representations and algorithms…
permissive · top 15,000 on PyPI