A powerful command-line tool for managing and executing instructions. Store frequently used commands, share them with your team, or integrate them with AI assistants like GitHub Copilot.
- π Quick Command Execution - Store and run complex commands with simple aliases
- π Instruction Management - Add, list, show, and remove instructions easily
- π Interactive Mode - Work with instructions through an interactive shell
- πΎ Persistent Storage - Instructions are saved locally for future use
- π― Simple Interface - Clean and intuitive command-line interface
git clone https://github.com/IDEALE-eu/CLII.git
cd CLII
pip install -e .pip install cliiclii add hello "echo 'Hello, World!'" -d "Print a greeting"clii listclii run helloclii interactiveclii add <name> <command> [--description <desc>]Example:
clii add deploy "git push origin main && ssh server 'cd app && git pull'" -d "Deploy to production"clii listclii show <name>Example:
clii show deployclii run <name> [--dry-run] [--shell]Options:
--dry-run: Display the command without executing it--shell: Execute the command in shell mode (useful for pipes and redirects)
Example:
clii run deploy --dry-run
clii run deploy --shellclii remove <name>Example:
clii remove deployStart interactive mode for a more conversational experience:
clii interactiveIn interactive mode, you can use:
list- List all instructionsadd- Add a new instruction (will prompt for details)show <name>- Show instruction detailsrun <name>- Execute an instructionremove <name>- Remove an instructionhelp- Show available commandsexit- Exit interactive mode
Store complex build, test, and deployment commands:
clii add build "npm install && npm run build" -d "Build the project"
clii add test "npm test -- --coverage" -d "Run tests with coverage"
clii add lint "eslint . --fix && prettier --write ." -d "Lint and format code"Manage infrastructure commands:
clii add backup "tar -czf backup-$(date +%Y%m%d).tar.gz /var/www" -d "Backup web directory"
clii add deploy "kubectl apply -f deployment.yaml" -d "Deploy to Kubernetes"
clii add logs "kubectl logs -f deployment/myapp" -d "Stream application logs"Use CLII with GitHub Copilot to manage AI-assisted workflows:
clii add ask-copilot "gh copilot suggest -t shell" -d "Ask Copilot for shell command suggestions"
clii add explain "gh copilot explain" -d "Explain a command using Copilot"Instructions are stored in JSON format at ~/.clii/instructions.json. You can back up this file or share it with your team.
pip install pytest
pytest tests/Contributions are welcome! Please feel free to submit a Pull Request.
MIT License - see LICENSE file for details
For issues and questions, please open an issue on GitHub.