chucky deploy command uploads your workspace to Chucky Cloud, making it available for AI agent execution.
Prerequisites
Before deploying:- Logged in: Run
chucky loginfirst - Project initialized: Run
chucky initin your project directory - Git repository: Your project must be a git repository
- Clean working tree: Commit or stash changes (or use
--force)
Basic Deployment
- Create a tar.gz archive of your workspace (including
.git) - Upload to Chucky’s R2 storage
- Sync any cron jobs defined in
.chucky.json - Output example code for generating tokens
Command Options
Examples
Configuration Files
.chucky.json (Committed)
Project configuration that’s part of your codebase:
Configuration Options
Cron Job Options
.chucky (Git-ignored)
Local binding that links your directory to a Chucky project:
chucky init and should be added to .gitignore. It allows different team members to bind to different projects (e.g., dev vs production).
Environment Variables
Override CLI configuration with environment variables:Using in CI/CD
Deployment Workflow
What Gets Uploaded
The deployment archive includes:- All files in the workspace folder
- The
.gitdirectory (for history and branching) - Excluding:
.DS_Store,Thumbs.db,*.tgz
What Happens After Upload
- Archive stored: Uploaded to R2 with presigned URL
- Project updated: Portal notified of new workspace version
- Crons synced: Jobs created/updated/deleted to match
.chucky.json - Ready for use: Sessions and jobs use the new workspace
Git Requirements
Your workspace must be:- A git repository (has
.gitdirectory) - The root of its own repository (not nested in another repo)
- Have a clean working tree (or use
--force)
CI/CD Integration
GitHub Actions
When you runchucky init, the CLI offers to create a GitHub Actions workflow:
GitLab CI
Manual Deployment
For manual deployments, ensure you’re logged in:Output
Interactive Output
JSON Output
Troubleshooting
”Not a git repository”
Your project folder must be a git repository:“Uncommitted changes”
Either commit your changes or use--force:
“Nested repository”
The deploy folder must be the root of its own git repository, not a subdirectory of another repo.”Not logged in”
Runchucky login first:
“Project not initialized”
Runchucky init in your project directory:
Next Steps
Cron Jobs
Schedule recurring AI tasks
Jobs
Run background jobs
Prompt Command
Send prompts to your project
Git Bundles
Sync changes back to local