Skip to main content

Usage

esprit uninstall

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:
  1. Display removal targets: Shows what will be deleted
  2. Confirmation prompt: Asks for explicit confirmation
  3. Remove binary: Deletes ~/.esprit/bin/esprit
  4. Remove configuration: Deletes ~/.esprit/ directory
  5. Clean shell configs: Removes PATH entries from shell RC files

Exit Codes

  • 0: Uninstall completed successfully or Esprit not found

What Gets Removed

Binary

~/.esprit/bin/esprit

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

  1. Restart your shell to update the PATH:
    exec $SHELL
    
  2. Verify removal:
    which esprit
    # Should return: esprit not found
    
  3. 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:
  1. Re-authenticate with providers: esprit provider login
  2. Reconfigure any custom settings
  3. 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

Build docs developers (and LLMs) love