CLI Overview
Thecast CLI is the fastest way to deploy and manage agents on Castari.
Installation
Commands
| Command | Description |
|---|---|
cast login | Authenticate with Castari |
cast logout | Clear stored credentials |
cast whoami | Show current user |
cast init | Create a new agent from a template |
cast deploy | Deploy an agent |
cast stop | Stop a running agent |
cast invoke | Invoke a deployed agent |
cast agents list | List all agents |
cast agents get | Get agent details |
cast agents update | Update agent configuration |
cast agents delete | Delete an agent |
cast secrets list | List secrets for an agent |
cast secrets set | Set a secret |
cast secrets delete | Delete a secret |
cast apikey list | List API keys |
cast apikey create | Create a new API key |
cast apikey revoke | Revoke an API key |
cast usage | Show usage statistics |
cast buckets | Manage storage buckets |
cast mounts | Mount buckets to agents |
cast files | Manage files in storage |
cast sessions list | List agent sessions |
cast sessions delete | Delete a session |
cast invocations list | List invocation history |
Global Options
All commands support these options:| Option | Description |
|---|---|
--help | Show help for a command |
--version | Show CLI version |
Configuration
The CLI stores configuration in~/.castari/:
Environment Variables
| Variable | Description |
|---|---|
CASTARI_API_URL | Override API base URL |
CASTARI_API_KEY | Use API key instead of OAuth |