@chucky.cloud/cli
v0.2.9
Published
CLI for deploying AI agent workspaces to Chucky cloud - build and ship Claude-powered assistants
Maintainers
Readme
Chucky CLI
Command-line interface for deploying AI agent workspaces to the Chucky cloud platform. Build and ship Claude-powered assistants with ease.
Installation
npm install -g @chucky.cloud/cliQuick Start
# Authenticate with your Chucky account
chucky login
# Initialize a new project
chucky init
# Deploy your workspace
chucky deployCommands
chucky login
Authenticate with your Chucky account using browser-based device flow or API key.
# Interactive browser-based login (recommended)
chucky login
# Direct API key authentication
chucky login -k ak_live_xxxxxOptions:
-k, --key <key>- Skip browser flow and authenticate with API key directly
chucky list / chucky ls
List all projects in your account.
chucky listDisplays project name, ID, status, and HMAC key for each project.
chucky init
Initialize a new Chucky project in the current directory.
chucky initWhat it does:
- Creates or selects an existing project
- Prompts for project name and description
- Optionally configures Anthropic API key
- Saves
.chucky.jsonconfiguration file - Optionally sets up GitHub Actions workflow
chucky deploy
Deploy your workspace to the Chucky cloud.
# Deploy using config from .chucky.json
chucky deploy
# Deploy a specific folder
chucky deploy -f ./my-workspaceOptions:
-f, --folder <path>- Override the folder to deploy
Deployment flow:
- Creates tar.gz archive of workspace folder
- Uploads to Chucky cloud storage (R2)
- Marks workspace as deployed
- Displays example code for generating tokens
chucky keys
Display the HMAC key for the current project.
chucky keyschucky config anthropic
Set the Anthropic API key for a project.
# Interactive prompt
chucky config anthropic
# Direct key input
chucky config anthropic -k sk-ant-xxxxxOptions:
-k, --key <key>- Anthropic API key to set
chucky delete
Delete a project.
# Delete from selection list
chucky delete
# Delete specific project
chucky delete PROJECT_IDConfiguration
Global Config (~/.chucky/config.json)
Stores user credentials:
{
"apiKey": "ak_live_...",
"email": "[email protected]",
"portalUrl": "https://app.chucky.cloud"
}Project Config (.chucky.json)
Stores project-specific settings:
{
"projectId": "uuid-...",
"projectName": "my-project",
"folder": "./workspace",
"hmacKey": "hk_live_..."
}Environment Variables
CHUCKY_API_KEY- Override API key from configCHUCKY_PORTAL_URL- Override portal URL (for development)
Authentication Flow
Browser-Based (Device Code Flow)
- CLI generates a device code and opens browser
- User signs in to Chucky portal
- User confirms the device code
- CLI receives API key and stores locally
API Key
- User obtains API key from Chucky portal
- User runs
chucky login -k ak_live_... - CLI validates key and stores locally
Workspace Deployment
Default Ignore Patterns
The following are excluded from deployment archives:
node_modules/.git/.envfilesdist/,build/- Cache and log directories
Archive Format
Workspaces are compressed as .tgz (tar.gz) with maximum compression.
Dependencies
- commander - CLI framework
- inquirer - Interactive prompts
- chalk - Terminal styling
- ora - Progress spinners
- archiver - Archive creation
Development
# Install dependencies
npm install
# Build TypeScript
npm run build
# Watch mode
npm run dev
# Type checking only
npm run typecheckLicense
MIT
