Overview
CI/CD commands help automate testing, releases, and deployment processes, ensuring code quality and streamlining the path from development to production.Release Management
/release
by kelpManages software releases by updating changelogs, reviewing README changes, evaluating version increments, and documenting release changes for better version tracking.
Continuous Integration
/run-ci
by hackdays-ioActivates virtual environments, runs CI-compatible check scripts, iteratively fixes errors, and ensures all tests pass before completion.
CI/CD Benefits
Automated Testing
Run comprehensive test suites automatically to catch issues before deployment.
Consistent Releases
Standardize release processes to ensure nothing is missed.
Quality Gates
Enforce quality standards before code reaches production.
Faster Deployment
Streamline deployment workflows to ship features faster.
CI/CD Workflow
A typical CI/CD workflow using these commands:- Pre-commit: Run local checks before committing code
- Continuous Integration: Use
/run-cito execute full test suite - Fix Issues: Address any failures identified by CI checks
- Prepare Release: Apply
/releaseto manage version and changelog - Deploy: Follow deployment procedures after successful CI run
Release Checklist
When preparing a release with/release:
- Update version numbers following semantic versioning
- Document all changes in the changelog
- Review README for accuracy
- Verify all tests pass
- Tag the release in git
- Generate release notes
- Update dependencies if needed
Best Practices
When using CI/CD commands:- Run CI Locally: Use
/run-cibefore pushing to catch issues early - Semantic Versioning: Follow semver principles for version increments
- Comprehensive Changelogs: Document all user-facing changes
- Automated Checks: Integrate CI commands into git hooks
- Release Notes: Generate clear, user-friendly release documentation
- Rollback Plans: Have procedures ready for failed deployments
Integration Points
CI/CD commands work well with:- Version Control: Integrate with commit and PR commands
- Testing: Combine with code analysis and testing commands
- Documentation: Update docs as part of release process
- Deployment: Trigger deployment pipelines after successful CI
Expanding Your CI/CD
Consider creating custom commands for:- Environment-specific deployments (staging, production)
- Database migrations
- Rollback procedures
- Performance benchmarking
- Security scanning
- Dependency updates