skillfed

pegasus-cli

CLI for Django and SaaS Pegasus

pegasus-cli v0.16 81.4K downloads/30d#14,230 on PyPI15
Permissive license Apache-2.0 Active released

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-cli

uv

uv add pegasus-cli

poetry

poetry add pegasus-cli

Installing 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

License :: OSI Approved :: Apache Software License

Tags

django project scaffolding clisaas pegasus project managementdjango app generator crudgithub push automation djangopegasus version upgrade clidjango startapp htmx interfacecli project configuration tool
django-toolingsaas-pegasusproject-scaffolding

More Build Tools packages