klim try
Install a tool, run it with optional arguments, then offer to remove it. Try before you commit.
klim try <tool> [-- args...] [flags]| Flag | Description |
|---|---|
--keep | Keep the tool after trying (skip removal prompt) |
Examples
Section titled “Examples”# Install bat, open interactive mode, then ask keep/removeklim try bat
# Install bat, run it on a file, then ask keep/removeklim try bat -- README.md
# Install ripgrep and search — keep it afterwardsklim try ripgrep --keep -- -i "TODO" .How It Works
Section titled “How It Works”- Checks if the tool is already installed (skips install if so)
- Installs via the best available package manager
- Runs the tool with any provided arguments
- After the tool exits, prompts: “Keep or remove?”
- If you choose to remove, runs the package manager’s uninstall command
- If the tool is already installed,
klim tryjust runs it (no cleanup prompt) - The tool’s exit code is propagated to the caller
--keepskips the cleanup prompt entirely
See Also
Section titled “See Also”- klim proxy — Auto-install shims for permanent lazy-loading