Installation
- macOS / Linux
- Windows
Install the CLI with a single command:This automatically detects your platform and installs the binary to
~/.local/bin.Authentication
Before using most commands, authenticate with your Crewship account:~/.crewship/credentials.json.
Authentication commands
| Command | Description |
|---|---|
crewship login | Authenticate with Crewship |
crewship logout | Remove stored credentials |
crewship whoami | Show current authenticated user |
Command Reference
Deployment
| Command | Description |
|---|---|
crewship deploy | Deploy your crew to production |
Environment
| Command | Description |
|---|---|
crewship env set | Set environment variables |
crewship env list | List all environment variables |
crewship env get | Get a specific variable |
crewship env rm | Remove environment variables |
Execution
| Command | Description |
|---|---|
crewship invoke | Run your deployed crew |
Updates
| Command | Description |
|---|---|
crewship upgrade | Update crewship to the latest version |
Global Options
These options are available for all commands:Configuration
The CLI looks for configuration in this order:- Command-line flags
- Environment variables (
CREWSHIP_*) - Project config (
crewship.toml) - User config (
~/.crewship/config.json)
Environment Variables
| Variable | Description |
|---|---|
CREWSHIP_API_URL | Override API endpoint (for development) |
CREWSHIP_TOKEN | API token for CI/CD (instead of interactive login) |
CI/CD Usage
For automated deployments, use an API token instead of interactive login:Exit Codes
| Code | Meaning |
|---|---|
0 | Success |
1 | General error |
2 | Invalid arguments |
3 | Authentication required |
4 | Network error |