GroundControl CLI is a command-line tool for managing the GroundControl configuration server. It provides commands for authentication, project management, configuration entries, variables, snapshots, and more.
Built on System.CommandLine, the CLI supports both direct command execution and an interactive TUI dashboard.
The CLI is currently built from source:
dotnet build src/GroundControl.CliThe resulting binary is groundcontrol.
These options apply to all commands:
| Option | Type | Default | Description |
|---|---|---|---|
--debug |
string? | -- | Enable debug logging. Use --debug for Information level or --debug verbose for Debug level |
--output |
Table | Json |
Table |
Output format for command results |
--no-interactive |
flag | false |
Disable interactive prompts and use defaults |
Running groundcontrol with no arguments launches the interactive TUI dashboard. See TUI for details.
The following walkthrough demonstrates a typical end-to-end workflow. Replace placeholder IDs (such as <group-id>) with actual values from the output of each create command.
1. Login to a server
groundcontrol auth login --server-url https://gc.example.com --method Pat --token my-token2. Create a group
groundcontrol group create --name "Backend Services"3. Create scopes
groundcontrol scope create --dimension Environment --values "dev,staging,prod"4. Create a template
groundcontrol template create --name "Microservice Defaults" --group-id <group-id>5. Create a project
groundcontrol project create --name "OrderService" --group-id <group-id> --template-ids <template-id>6. Add a configuration entry
groundcontrol config-entry create --key "Database:ConnectionString" --owner-id <project-id> --owner-type Project --value-type String --value "default=Server=localhost"7. Publish a snapshot
groundcontrol snapshot publish --project-id <project-id>Note: Replace placeholder IDs with actual values from create command output.
| Domain | Commands | Description |
|---|---|---|
| Authentication | auth, user, role, token |
Server credentials, user management, roles, and access tokens |
| Configuration | config, config-entry, variable |
CLI config, configuration entries, and variables |
| Projects | group, project, template, scope |
Organizational hierarchy and scope dimensions |
| Operations | client, client-config, snapshot, audit |
Client management, config resolution, snapshots, and audit trail |
| TUI | tui |
Interactive terminal dashboard |