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)'))
¶
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
doctor()
¶
Check prerequisites for running colony-env.