Skip to main content

cirron deploy

Deploy your ML project to Cirron environments (development, staging, production) with automatic build, artifact upload, deployment monitoring, and rollback.

Usage

Options

OptionDescriptionDefault
--env, -eTarget environment (development, staging, production)development
--message, -mDeployment messageAuto-generated
--no-buildSkip build stepfalse
--force, -fSkip confirmation prompts (required for production unattended)false
--rollbackRollback to previous successful deploymentfalse
The command validates cirron.yaml, ensures you’re authenticated, runs cirron build (unless --no-build), executes any beforeDeploy commands, uploads artifacts, monitors deployment with a 5-minute timeout, and finally runs afterDeploy commands. Production deployments require confirmation unless --force is passed.

Rollback

Rolls back to the most recent other successful deployment in the target environment.

Examples

Configuration

cirron.yaml declares environments and optional pre/post-deploy hooks:

Monitoring and Artifacts

Statuses reported during deployment: pendingbuildingdeployingsuccess (or failed).
Artifacts are read from build.outputDir and uploaded in batches of 5. The following files are filtered out automatically: .DS_Store, Thumbs.db, .git/, node_modules/, .env, *.log.

Troubleshooting

ErrorResolution
No cirron.yaml foundcirron init my-project
Not authenticatedcirron auth login
Environment 'production' not foundAdd it under environments in cirron.yaml
Build failedRun cirron build --env production separately to debug
No previous successful deployment foundRollback requires at least two successful deployments
Deployment timeoutCheck cirron logs --env <env> and infrastructure status
Network / auth expiredRe-authenticate; verify cirron config --get apiUrl

Best Practices and CI/CD

  • Always test in staging before production. Use descriptive --message values for audit.
  • Use beforeDeploy for validation, afterDeploy for notifications.
  • Keep a rollback strategy ready for production.
  • cirron build - Build project before deployment
  • cirron logs - View deployment logs
  • cirron auth - Manage authentication
  • cirron status - Check deployment status