Installation¶
This guide covers how to install CMDR on your system.
Prerequisites¶
- A Unix-like operating system (Linux, macOS)
- Bash, Zsh, or compatible shell
curlfor script installation
Quick Install (Recommended)¶
Run the following command to install the latest version of CMDR:
For Users in China¶
Speed up the installation using the proxy option:
Manual Installation¶
If you prefer manual installation or need more control:
-
Download the latest release from GitHub Releases
-
Make the binary executable:
-
Initialize CMDR:
-
Restart your shell and verify:
What the Installer Does¶
The installation script performs these steps1:
- Detects your OS and architecture
- Downloads the appropriate binary from GitHub releases
- Places the binary in a configured location
- Runs
cmdr initto set up the environment - Configures the shell profile for PATH integration
Directory Structure¶
After installation, CMDR creates the following directory structure2:
~/.cmdr/
├── bin/ # Managed command binaries
├── shims/ # Shim scripts for version switching
├── profile/ # Shell initialization scripts
├── config.yaml # Configuration file
└── cmdr.db # Command database
Verifying Installation¶
After installation, verify everything is working:
Uninstalling¶
To uninstall CMDR:
-
Remove the CMDR directory:
-
Remove the CMDR source line from your shell profile (
.bashrc,.zshrc, etc.)
-
Installation script:
install.sh↩ -
Default paths configured in
cmd/root.goL73-L77 ↩