Implemented
Already implemented
loginregisterlistrunagent describe/agent start- sidecar JSON overrides, metadata extraction from comments / docstrings / filenames
.execgov-manifest.jsongeneration
CLI Guide
Web-based upload registration already supports Python / Shell. CLI-based remote registration still centers on Python for now, while remote task pulling and long-running Agent execution remain next-stage work.
execgov-cli is ExecGov's current command-line entry for individual developers, delivery work, and local-execution scenarios. The point is not to build a command-line skin. The point is to connect the local script directory, local runtime environment, and platform control plane into a bridge that is usable today.
The CLI path exists to bridge the external control plane and the local environment so that local scripts, execution environments, and the platform governance chain can work together.
Implemented
loginregisterlistrunagent describe / agent start.execgov-manifest.json generationNot Yet
pull / publish / doctoragent heartbeat / agent status / agent runPositioning
Public Onboarding
/experience path.Web Entry
/experience, /login, and /register./register/result before returning to login and the personal mainline.task_brief_demo.py, while the right panel shows Shell clean_log_demo.sh..py / .sh / .bash.execgov-cli is already moving toward Python / Shell compatibility, but the main directory-registration example, default explanation, and quickstart wording still center on Python for now.CLI In Path
| Path | The CLI's role | How to understand it |
|---|---|---|
| Free path | Not the default entry | People touching the platform for the first time should begin with the web experience and signup flow instead of starting with the CLI. |
| Local script-slot expansion | The local bridge for continued individual use | It fits people who are already continuously connecting scripts in their personal space and want to organize the directory, generate the manifest, and test execution. |
| Standard team edition | Auxiliary onboarding and supplemental local execution | The main entry for the team edition is still the formal tenant frontend. The CLI acts more like a bridge than the formal team entry itself. |
| Enterprise delivery | The bridge layer for local environments and intranet resources | The CLI / Agent path becomes more critical when the project involves local environments, intranet resources, or hybrid execution. |
Quick Start
cd execgov-cli
python -m pip install -e .
execgov-cli --helpThis is the installation path that fits development, local testing, and local onboarding best right now. After installation, you no longer need to type python -m execgov_cli.cli every time.
cd execgov-cli
python -m execgov_cli.cli --helpIf you have not installed it locally yet, start by running the module entry directly.
cd execgov-cli
python -m execgov_cli.cli login \
--token YOUR_API_TOKEN \
--api-base http://localhost:6089/dev-api \
--web-base http://localhost:80The default config file path is ~/.execgov/config.json. You can override it through EXECGOV_CONFIG_DIR.
python -m execgov_cli.cli register ./examples/scriptsThe command scans the directory, generates .execgov-manifest.json, and by default calls the backend upload-register API. CLI-side directory registration is already moving toward Python / Shell compatibility, but the primary examples and default guidance still center on Python for now. The web entry already supports both Python and Shell along the same path.
Common Commands
python -m execgov_cli.cli register ./examples/scripts --dry-run --print-jsonUseful when you want to confirm whether the extracted Skill metadata looks right before writing anything.
python -m execgov_cli.cli register ./examples/scripts --manifest-onlyIf you do not want to call the backend yet, generate the local manifest only.
python -m execgov_cli.cli list ./examples/scriptslist currently requires an explicit workspace path, and that directory must already contain .execgov-manifest.json.
python -m execgov_cli.cli run backup_local \
--request-text "Manual backup run from CLI" \
--input-json '{"sourcePath":"/tmp/demo"}'If you saved --web-base during login, the CLI will also print the corresponding web-open link.
python -m execgov_cli.cli agent describeThis currently prints the local Agent description so the platform side can wire up later execution endpoints.
python -m execgov_cli.cli register ./examples/scripts --execution-mode local-agent
python -m execgov_cli.cli agent startAt the moment, this writes execution_mode into the manifest and keeps the local Agent entry alive, but it does not yet take over real execution.
Metadata
<script_stem>.execgov-skill.jsonThe manifest currently includes at least script_code, skill_name, description, risk_level, timeout_seconds, execution_mode, and inputs.
Current Rules
register is not manifest-only by default. It will really call the backend registration API.run calls the backend manual-execution API directly and prints a web-open link when available.Next Read
Continue with Product Overview, Capabilities, and Deployment. If you already have a script directory, you can also bring the onboarding question directly into a conversation.