Command Vault
Command Vault is a command manager for storing, and executing your complex commands. It provides a user-friendly interface to search, list, and delete commands, as well as tag commands for better organization.
Table of Contents
Features
- 🔍 Smart search through command history
- 🏷️ Tag commands for better organization
- 🐚 Cross-shell support (Bash, Zsh)
- 💾 Local SQLite database for fast searching
- 🔐 Safe command execution with validation
Usage
Add Commands
# Add a command with tags
# Add a command with parameters

Parameters
You can add dynamic parameters to your commands using the @parameter syntax:
- Simple parameter:
@name
Examples:
# Git commit with message parameter
When executing a command with parameters, Command Vault will prompt you to enter values for each parameter.
Search Commands
# Search commands

List Commands
# List recent commands

Delete Commands
# Delete a command

Tag Commands
# Show tag command

Installation
From Releases
You can download the latest release for your platform from the releases page.
Linux
# Download the latest release (replace X.Y.Z with the version number)
# Make it executable
# Move it to your PATH
# Initialize shell integration (add to your .bashrc or .zshrc)
macOS
# Download the latest release (replace X.Y.Z with the version number)
# Make it executable
# Move it to your PATH
# Initialize shell integration (add to your .bashrc or .zshrc)
Windows
Download the Windows executable from the releases page and add it to your PATH.
Shell Integration
Command Vault needs to be integrated with your shell to automatically track commands. Add this to your shell's RC file:
# For Bash (~/.bashrc)
# For Zsh (~/.zshrc)
Building from Source
If you prefer to build from source, you'll need Rust installed on your system:
# Clone the repository
# Build the project
# The binary will be available in target/release/command-vault
Add the following to your shell's configuration file (~/.bashrc or ~/.zshrc):
Development
Running Tests
Code Coverage
# Generate coverage report (requires cargo-tarpaulin)
# View the report in your browser
Shell Aliases
For easier access, you can add aliases to your shell configuration:
For Bash/Zsh (add to ~/.zshrc or ~/.bashrc)
# to use as cmdv:
# or to use as cv:
After adding the aliases, restart your shell or run:
Now you can use shorter commands:
License
This project is licensed under the MIT License - see the LICENSE file for details.