Command Assist Tool: Your CLI Companion for Effortless Command Management
Introduction
Hey there! After an unexpected twist of fate — spraining my ankle while running — I found myself with some unexpected downtime. Instead of letting it go to waste, I decided to tackle a problem that’s been on my mind for a while: efficiently managing and retrieving terminal commands. If you’re like me, you’ve probably struggled with keeping track of those invaluable command snippets you use regularly. That’s exactly why I created Command Assist.
Why Command Assist?
In the world of terminal commands, context switching can be a real pain. I wanted a tool that lets me stay in the zone without having to leave my terminal, searching through notes, or dealing with fragmented command snippets. Inspired by tools like Warp but tailored for my own stash of commands, Command Assist is designed to make managing and retrieving commands as smooth as possible. This way, your personal command stash stays portable by syncing to cloud storage, so you can access it whenever you need it.
Key Features
- Save Commands: Store your commands with categories and descriptions, so you don’t need to remember them all.
- List and Export: Quickly retrieve and export your saved commands for easy access and sharing.
- Backup and Restore: Back up your commands to AWS S3 or local storage, and restore them effortlessly when needed.
- AI Assistance: Get intelligent suggestions and guidance for command-related queries, thanks to an integration with OpenAI.
Command Assist in action:
How It Works
Setting up Command Assist is straightforward:
1. Installation
Install Command Assist using pip in a virtual environment or directly to your system’s Python.
pip install cmd_assist
Further details can be found on PyPI.
2. Configuration
By default, backups are set to local storage. Update the config.yaml to switch to AWS S3 if preferred.
# Example of config.yaml
storage:
type: s3
bucket_name: your-bucket-name
region: your-region
3. Usage
Save, list, backup, restore and use AI assistance for managing your commands.
ca --help
(ca-help)
ca --help
Private Repository
Currently, the Command Assist repository is private as it’s in the early stages of development. This allows for refinement and enhancement before going public. If you’re interested in contributing or learning more, feel free to reach out!
Check It Out
If you’re interested in trying out Command Assist or have any questions, don’t hesitate to get in touch. I’m open to suggestions and improvements, and I’m always happy to discuss how Command Assist can be further extended or refined. The latest version can be found on PyPI.
Thanks for reading, and happy command managing!