Usage
Description
Completely removes Esprit CLI from your system, including:
- Binary executable (
~/.esprit/bin/esprit)
- Configuration directory (
~/.esprit/)
- Provider credentials and tokens
- Shell PATH modifications (
.zshrc, .bashrc, .bash_profile)
This action removes all stored credentials and configuration. You will need to re-authenticate with providers after reinstalling.
Interactive Process
The uninstall command performs the following steps:
- Display removal targets: Shows what will be deleted
- Confirmation prompt: Asks for explicit confirmation
- Remove binary: Deletes
~/.esprit/bin/esprit
- Remove configuration: Deletes
~/.esprit/ directory
- Clean shell configs: Removes PATH entries from shell RC files
Exit Codes
- 0: Uninstall completed successfully or Esprit not found
What Gets Removed
Binary
Configuration Directory
~/.esprit/
├── credentials.json # Esprit platform credentials
├── providers.json # OAuth tokens
├── account_pool.json # Multi-account credentials
├── config.yaml # Custom configuration
└── bin/
└── esprit # Binary executable
Shell Configuration
Removes lines containing .esprit/bin from:
~/.zshrc
~/.bashrc
~/.bash_profile
Example removed lines:
# esprit
export PATH="$HOME/.esprit/bin:$PATH"
Example Session
$ esprit uninstall
Uninstalling Esprit CLI
Binary: /home/user/.esprit/bin/esprit
Config: /home/user/.esprit
Remove Esprit and all configuration? [y/N] y
✓ Removed binary
✓ Removed configuration
✓ Cleaned PATH from .zshrc, .bashrc
Esprit has been uninstalled.
Restart your shell to update PATH.
After Uninstall
-
Restart your shell to update the PATH:
-
Verify removal:
which esprit
# Should return: esprit not found
-
Confirm directory is removed:
ls ~/.esprit
# Should return: No such file or directory
Reinstalling
To reinstall Esprit after uninstalling:
curl -sSL https://esprit.dev/install.sh | bash
You will need to:
- Re-authenticate with providers:
esprit provider login
- Reconfigure any custom settings
- Restart your shell
Cancelling Uninstall
If you change your mind during the confirmation prompt:
$ esprit uninstall
Uninstalling Esprit CLI
Binary: /home/user/.esprit/bin/esprit
Config: /home/user/.esprit
Remove Esprit and all configuration? [y/N] n
Cancelled.
No files are modified if you answer ‘n’ or press Enter (default is No).
Manual Cleanup
If you need to manually remove Esprit:
# Remove binary and configuration
rm -rf ~/.esprit
# Edit shell config to remove PATH entry
vim ~/.zshrc # or ~/.bashrc, ~/.bash_profile
# Remove lines containing '.esprit/bin'
# Restart shell
exec $SHELL