cub uninstall¶
Remove cub from your system and optionally clean up configuration files.
Synopsis¶
Description¶
The cub uninstall command removes cub from your system. It automatically detects how cub was installed (pipx, pip, or editable mode) and uses the appropriate uninstall method.
By default, only the cub package is removed. Configuration files and data directories are preserved unless you specify --clean.
Options¶
| Option | Short | Description |
|---|---|---|
--clean | -c | Also remove configuration files and data directories |
--force | -f | Skip confirmation prompts |
--dry-run | -n | Show what would be done without making changes |
--help | -h | Show help message and exit |
What Gets Removed¶
Package Uninstall¶
The basic uninstall removes:
- The
cubcommand-line tool - Python package files from site-packages (or pipx venv)
- Command aliases and shell integrations
With --clean Flag¶
When --clean is specified, also removes:
| Path | Description |
|---|---|
~/.config/cub/ | Global configuration directory |
~/.local/share/cub/ | Data directory (captures, logs) |
~/.cub/ | Legacy configuration directory |
What Is NOT Removed¶
The uninstall does not remove:
- Project-level
.cub.jsonfiles - Project-level
.cub/directories - Project-level
captures/directories .beads/task data- Any files in your repositories
Confirmation¶
By default, the command asks for confirmation before proceeding:
Use --force to skip this confirmation.
Examples¶
Basic uninstall¶
Output:
cub v0.26.3
Installed via: pipx
Actions to perform:
- Run: pipx uninstall cub
Proceed with uninstall? [y/N]: y
Uninstalling with pipx...
Package uninstalled successfully
Uninstall complete!
Preview what would be removed¶
Output:
cub v0.26.3
Installed via: pip
Actions to perform:
- Run: pip uninstall cub
Dry run - no changes made
Uninstall with configuration cleanup¶
Output:
cub v0.26.3
Installed via: pipx
Actions to perform:
- Run: pipx uninstall cub
- Remove configuration directories:
- /home/user/.config/cub
- /home/user/.local/share/cub
Proceed with uninstall? [y/N]: y
Uninstalling with pipx...
Package uninstalled successfully
Removing configuration directories...
Removed: /home/user/.config/cub
Removed: /home/user/.local/share/cub
Uninstall complete!
Force uninstall without prompts¶
Skips the confirmation prompt. Use with caution.
Full cleanup without prompts¶
Removes everything without asking.
Editable Installations¶
If cub was installed in editable mode (for development):
Editable install detected
For editable installs, simply remove the source directory
or run: pip uninstall cub
For editable installs, you can either:
- Run
pip uninstall cubdirectly - Remove the source directory
- Use
cub uninstall --forceto proceed anyway
Manual Cleanup Steps¶
If the automatic uninstall fails or you need to clean up manually:
Remove the package¶
Remove configuration files¶
# Remove config directory
rm -rf ~/.config/cub
# Remove data directory
rm -rf ~/.local/share/cub
# Remove legacy config
rm -rf ~/.cub
Verify removal¶
# Check if cub is still available
which cub
# Should return nothing or "cub not found"
# Try running cub
cub --version
# Should fail with "command not found"
Reinstalling After Uninstall¶
To reinstall cub after uninstalling:
# With pipx (recommended)
pipx install cub
# With pip
pip install cub
# Or using the install script
curl -LsSf https://docs.cub.tools/install.sh | bash
If you used --clean, you'll need to re-run global setup:
Related Commands¶
cub upgrade- Upgrade cub to newer versioncub doctor- Diagnose installation issuescub init- Initialize configuration after reinstall
See Also¶
- Installation Guide - Reinstallation instructions
- Configuration - Understanding config files