CLI Reference
PyGo CLI Reference
Section titled “PyGo CLI Reference”The pygo CLI manages your project end to end: scaffolding, development server,
build, tests, migrations, docs, and self-update.
pygo [command] [arguments]Global behavior
Section titled “Global behavior”- Run
pygowith no arguments to print the banner and the command list. - The CLI reads
pygo.tomlfrom the current directory when running project commands (dev,build,test,migrate,seed,fmt,lint,docs,info,doctor).
Commands
Section titled “Commands”pygo new <project-name>
Section titled “pygo new <project-name>”Scaffold a new PyGo project (Go web layer + Python domain layer).
pygo new myappcd myapppygo devpygo dev
Section titled “pygo dev”Start the development server with hot reload. A Go supervisor boots the Python runtime over a local Unix Domain Socket (UDS) and serves HTTP.
pygo dev| Flag | Description | Default |
|---|---|---|
--port / -p |
Server port | 8080 |
--host |
Bind address | 127.0.0.1 |
pygo build
Section titled “pygo build”Build for production.
# Single binary with the Python runtime embeddedpygo build --embed-python
# Go binary only (Python runs alongside via UDS)pygo build| Flag | Description |
|---|---|
--embed-python |
Bundle the Python interpreter/runtime into one binary |
--output / -o |
Output path for the binary |
pygo test [module]
Section titled “pygo test [module]”Run tests for the whole project or a specific module.
pygo testpygo test corepygo run <task>
Section titled “pygo run <task>”Execute a task from the tasks/ directory.
pygo run seed_userspygo migrate up | down | status
Section titled “pygo migrate up | down | status”Run pending migrations, roll back the last migration, or show migration status.
pygo migrate uppygo migrate statuspygo seed
Section titled “pygo seed”Execute database seeders.
pygo fmt
Section titled “pygo fmt”Format Go and Python code in the project.
pygo lint
Section titled “pygo lint”Validate project structure and code (entrypoints, module layout, pygo.toml).
pygo docs
Section titled “pygo docs”Generate project documentation.
pygo version
Section titled “pygo version”Print the CLI version (e.g. pygo v2.2.4-native).
pygo upgrade
Section titled “pygo upgrade”Update the CLI to the latest GitHub release.
- Resolves the latest tag via the GitHub API.
- Downloads the raw binary
pygo-v{version}-{os}-{arch}(+.exeon Windows). - Verifies it against
checksums.txt(SHA-256) when published. - Installs it in place (overwrites the current executable).
pygo upgrade # latestpygo upgrade v2.2.4 # specific versionpygo module install | list | search | remove | update
Section titled “pygo module install | list | search | remove | update”Manage modules from the registry.
pygo module install pygo-i18npygo module listpygo module search authpygo module update pygo-i18npygo module remove pygo-i18npygo info
Section titled “pygo info”Show project information (name, version, modules, entrypoints).
pygo doctor
Section titled “pygo doctor”Diagnose project health (Go/Python availability, socket, config, module wiring).
Installation of the CLI itself
Section titled “Installation of the CLI itself”The CLI is distributed as a raw binary per OS/arch. The fastest install:
curl -sL https://raw.githubusercontent.com/PyGo-Labs/pygo-framework/main/install.sh | bashEnvironment variables:
| Variable | Description | Default |
|---|---|---|
PYGO_VERSION |
Version to install (e.g. v2.2.4, latest) |
latest |
PYGO_INSTALL_DIR |
Install directory | ~/.local/bin |