Skip to content

klim try

Install a tool, run it with optional arguments, then offer to remove it. Try before you commit.

Terminal window
klim try <tool> [-- args...] [flags]
FlagDescription
--keepKeep the tool after trying (skip removal prompt)
Terminal window
# Install bat, open interactive mode, then ask keep/remove
klim try bat
# Install bat, run it on a file, then ask keep/remove
klim try bat -- README.md
# Install ripgrep and search — keep it afterwards
klim try ripgrep --keep -- -i "TODO" .
  1. Checks if the tool is already installed (skips install if so)
  2. Installs via the best available package manager
  3. Runs the tool with any provided arguments
  4. After the tool exits, prompts: “Keep or remove?”
  5. If you choose to remove, runs the package manager’s uninstall command
  • If the tool is already installed, klim try just runs it (no cleanup prompt)
  • The tool’s exit code is propagated to the caller
  • --keep skips the cleanup prompt entirely
  • klim proxy — Auto-install shims for permanent lazy-loading