deploylocally
v0.0.2
Published
Blue-Green deploy CLI with rollback and instant rollback support.
Downloads
9
Maintainers
Readme
Deploy CLI
A robust Blue-Green deployment CLI tool with rollback and instant rollback support. Designed for zero-downtime deployments, easy rollbacks, and seamless integration into CI/CD pipelines.
Table of Contents
Overview
Deploy CLI enables blue-green deployments for your applications, allowing you to switch traffic between two environments (blue and green) with minimal downtime. It supports instant rollback, health checks, and integrates with Docker Compose for container orchestration.
Features
- Blue-Green deployment strategy
- Instant rollback support
- Health checks for services
- Docker Compose integration
- CLI commands for deployment and rollback
- TypeScript support
- Extensible and configurable
Installation
Prerequisites
Install via npm
npm install -g deployOr clone and build locally:
git clone https://github.com/Himasnhu-AT/deploy.git
cd deploy
npm install
npm run build
npm linkUsage
CLI Command Reference
When you run deploy in your terminal, you'll see:
Usage: bluegreen [options] [command]
Blue‑Green deploy CLI with rollback
Options:
-V, --version output the version number
-h, --help display help for command
Commands:
init [options] Bootstrap .deployer settings and sample compose/Dockerfile
deploy [options] Build new colour, verify health, switch traffic
rollback [options] Rollback to previous healthy release
cleanup [options] Remove corrupted image backups and clean up old files
status Show current deployment status and history
help [command] display help for commandExample Usage
Show help
deploy --helpInitialize deployment settings
deploy initDeploy new version
deploy deployRollback to previous release
deploy rollbackCleanup old backups
deploy cleanupShow deployment status
deploy statusBuild TypeScript
npm run buildStart CLI
npm start
TypeScript
Modify tsconfig.json for custom TypeScript settings.
Contributing
Contributions are welcome! Please follow these steps:
- Fork the repository
- Create your feature branch (
git checkout -b feature/my-feature) - Commit your changes (
git commit -am 'Add new feature') - Push to the branch (
git push origin feature/my-feature) - Open a Pull Request
For issues and suggestions, use the GitHub Issues page.
License
MIT © Himanshu
