CLI¶
colony-env¶
The colony-env CLI is built with Typer.
polymathera.colony.cli.deploy.cli
¶
colony-env: CLI for managing Colony local test environments.
Usage
colony-env up [--workers N][--no-build] [--k8s] colony-env down [--k8s] colony-env status colony-env run --origin-url URL [--branch BRANCH][--commit SHA] [--config YAML] colony-env run --local-repo PATH [--branch BRANCH][--commit SHA] [--config YAML] colony-env doctor
up(workers=typer.Option(1, '--workers', '-w', help='Number of Ray workers'), no_build=typer.Option(False, '--no-build', help='Skip image build'), k8s=typer.Option(False, '--k8s', help='Use Kind + KubeRay (advanced)'), config=typer.Option(None, '--config', '-c', help='Path to cluster YAML config to use for auto-deploy'), bake=typer.Option(False, '--bake', help='Snapshot resolved cluster.extensions.packages into a pinned ``colony-local:<hash>`` image instead of installing into a persistent overlay at container start. Slower up, faster steady-state, fully reproducible — recommended for production.'))
¶
Build Colony image and start Ray cluster + Redis.
Source code in src/polymathera/colony/cli/deploy/cli.py
down(k8s=typer.Option(False, '--k8s', help='Use Kind + KubeRay (advanced)'))
¶
Stop and remove all containers and resources.
Source code in src/polymathera/colony/cli/deploy/cli.py
status()
¶
Show status of all running services.
Source code in src/polymathera/colony/cli/deploy/cli.py
run(origin_url=typer.Option(None, '--origin-url', help='Git repository URL (HTTPS) for the codebase to analyze.'), local_repo=typer.Option(None, '--local-repo', help='Path to a local git repository to analyze.'), branch=typer.Option('main', '--branch', help='Git branch to check out.'), commit=typer.Option('HEAD', '--commit', help='Git commit SHA (defaults to branch HEAD).'), config=typer.Option(None, '--config', '-c', help='Path to analysis YAML config'), k8s=typer.Option(False, '--k8s', help='Use Kind + KubeRay (advanced)'), verbose=typer.Option(False, '--verbose', '-v', help='Enable verbose polymath output'), dry_run=typer.Option(False, '--dry-run', help='Show planned hierarchy without running'))
¶
Run polymath.py analysis inside the cluster.
Exactly one of --origin-url or --local-repo must be provided.
Source code in src/polymathera/colony/cli/deploy/cli.py
dashboard(port=typer.Option(8080, '--port', '-p', help='Dashboard port (must match COLONY_DASHBOARD_UI_PORT)'))
¶
Open the Colony web dashboard in the browser.
Source code in src/polymathera/colony/cli/deploy/cli.py
image_info()
¶
List polymathera-* packages installed in the running cluster.
Splits baked (in the runtime image) vs overlay (installed at
container start from cluster.extensions.packages). Useful for
debugging "why isn't my CPS entry showing up".
Source code in src/polymathera/colony/cli/deploy/cli.py
image_build(config=typer.Option(None, '--config', '-c', help='Path to cluster YAML config'), bake=typer.Option(False, '--bake', help='Build a pinned ``colony-local:<hash>`` image with extensions baked in.'))
¶
Build base + runtime images (and optionally bake) without bringing the cluster up.
Source code in src/polymathera/colony/cli/deploy/cli.py
doctor()
¶
Check prerequisites for running colony-env.