CLI
The Crow CLI (crow) allows you to interact with Crow CI from the command line.
You can manage repositories, pipelines, secrets, and more.
Installation
Section titled “Installation”Binary Download
Section titled “Binary Download”Download the CLI from the project’s releases page. Choose the appropriate binary for your platform.
Container Image
Section titled “Container Image”The CLI is also available as a container image:
docker run --pull always \ -e CROW_TOKEN=$CROW_TOKEN \ -e CROW_SERVER=$CROW_SERVER \ --rm -it codeberg.org/crowci/crow-cli:dev infoConfiguration
Section titled “Configuration”The CLI requires two environment variables:
| Variable | Description |
|---|---|
CROW_SERVER | URL of your Crow CI server (e.g., https://ci.example.com) |
CROW_TOKEN | Personal access token from the Crow CI web interface |
You can generate a token in the Crow CI web interface under Settings > Personal Access Tokens.
Common Commands
Section titled “Common Commands”Repository Management
Section titled “Repository Management”# List repositoriescrow repo ls
# Show repository infocrow repo info owner/repo
# Sync repositories from forgecrow repo syncPipeline Management
Section titled “Pipeline Management”# List recent pipelinescrow pipeline ls owner/repo
# Show pipeline detailscrow pipeline info owner/repo <pipeline-id>
# Trigger a new pipelinecrow pipeline start owner/repo
# Stop a running pipelinecrow pipeline stop owner/repo <pipeline-id>Secrets Management
Section titled “Secrets Management”# List secretscrow secret ls owner/repo
# Add a secretcrow secret add owner/repo --name SECRET_NAME --value "secret-value"
# Remove a secretcrow secret rm owner/repo SECRET_NAMELocal Pipeline Execution
Section titled “Local Pipeline Execution”# Run pipeline locally (requires Docker)crow exec
# Run with specific workflow filecrow exec --workflow .crow/build.yamlLinting
Section titled “Linting”# Lint pipeline configurationcrow lint .crow/Agent Management
Section titled “Agent Management”# List organization agentscrow org agent ls <org-name>
# Add an organization agentcrow org agent add <org-name> --name "my-agent"
# Show agent detailscrow org agent show <org-name> --agent-id <agent-id>
# Remove an organization agentcrow org agent rm <org-name> --agent-id <agent-id>Global Agent Management
Section titled “Global Agent Management”Requires admin privileges.
# List all agents (admin only)crow admin agent ls
# Show agent details (admin only)crow admin agent show <agent-id>
# Remove an agent (admin only)crow admin agent rm <agent-id>User Management
Section titled “User Management”Requires admin privileges.
# List all userscrow admin user ls
# Show user detailscrow admin user show <username>
# Add a new usercrow admin user add <username>
# Remove a usercrow admin user rm <username>Getting Help
Section titled “Getting Help”# Show all commandscrow --help
# Show help for a specific commandcrow repo --helpcrow pipeline start --help