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 releases page on Codeberg. 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/Getting Help
Section titled “Getting Help”# Show all commandscrow --help
# Show help for a specific commandcrow repo --helpcrow pipeline start --help