dev-cli is a modular command-line interface (CLI) tool built with Python for automating various DevOps tasks. It provides a streamlined way to manage AWS resources, Docker environments, and general DevOps automation scripts from a single unified CLI.
dev-cli/ │ ├── dev_cli/ # Main CLI package │ ├── __init__.py │ ├── cli.py # Entry point for Click │ ├── aws/ # AWS subcommands │ ├── docker/ # Docker subcommands │ ├── toolkit/ # Misc utilities │ └── automations/ # Automation scripts │ ├── setup.py ├── pyproject.toml (optional) └── README.md
To get started with the project, follow these steps:
-
Set permissions for fix-permissions.sh
Make the script executable by running:chmod +x scripting-tools/fix-permissions.sh
-
Run fix-permissions.sh:
Execute the script to set up file permissions:./scripting-tools/fix-permissions.sh
-
Run setup.sh:
Install dependencies and configure the project by running:./setup.sh
This folder contains Python scripts categorised by functionality:
- AWS: Automation scripts for managing AWS resources such as EC2 and S3.
- Docker: Contains scripts for Docker cleanup and management.
- Toolkit: Includes utility scripts for general purpose tasks like cache management.
The directory contains the dev_cli.py script, which serves as the main entry point for the CLI tool.
It uses Click to organise and run DevOps-related automation commands under a common command group.
Contains utility scripts for system and DevOps automation.
Want to contribute? Great!
- Fork the repository
- Create a new branch (git checkout -b feature/some-feature)
- Make your changes
- Commit (git commit -am 'Add some feature')
- Push (git push origin feature/some-feature)
- Open a pull request