klim tool try
Install a tool, run it with optional arguments, then offer to remove it. Try before you commit.
klim tool 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 tool try bat
# Install bat, run it on a file, then ask keep/removeklim tool try bat -- README.md
# Install ripgrep and search — keep it afterwardsklim tool 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 tool 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 shell proxy — Auto-install shims for permanent lazy-loading