Repository navigation
CLI
Kit's tools are also available in a terminal. The command-line tool uses the same tools, pipelines and plugins as the desktop app, reads from standard input and writes to standard output, so it works in shell scripts and CI.
From a release, the CLI is a single file. Download kotilo-kit-cli-v1.1.3.cjs from the releases page and run it with Node 20 or newer:
node kotilo-kit-cli-v1.1.3.cjs base64 decode < in.txtOn this wiki, kotilo kit stands for that command. If you want a short name, make an alias or a small wrapper script, for example alias kotilo-kit='node /path/to/kotilo-kit-cli-v1.1.3.cjs'.
From a clone of the source repository, pnpm kit <tool> … runs the same CLI.
Usage: kotilo kit <tool> [--option value …] < input
kotilo kit list
kotilo kit detect < input
kotilo kit add <name> [--yes]
kotilo kit <tool> --help
The input is whatever you pipe in or redirect. A single trailing newline (from echo or a file) is not part of the value for text tools.
kotilo kit base64 decode < in.txt
echo '{"b":1,"a":2}' | kotilo kit json --sort-keys
echo 1700000000 | kotilo kit timestamp --tz Europe/Istanbul
echo '*/15 9-17 * * 1-5' | kotilo kit cron-
--option valuesets an option. The name is the option key, written in camelCase or kebab-case:--sortKeysand--sort-keysare the same. - A toggle is switched on with
--nameand off with--no-name. - A bare word selects an option value:
base64 decodeis the same asbase64 --mode decode. A word must be a value of one of the tool's choice options. -
--tz <zone>sets the time zone for tools that use one. If you omit it, Kit uses theTZenvironment variable.
To see a tool's options, their values and defaults, and examples:
kotilo kit jwt --help| Flag | Meaning |
|---|---|
--help, -h
|
Show usage, or a tool's options and examples when given after a tool name. |
--json |
Print the result with its metadata as JSON. For list and detect it prints the list as JSON. |
--lang tr |
Use Turkish messages and names (--lang en for English). |
--tz <zone> |
Time zone for the tool. |
--version |
Print kotilo-kit 1.1.3. |
The language is chosen from --lang, then the KOTILO_LANG environment variable, then LC_ALL, LC_MESSAGES and LANG, then the system language. For example, KOTILO_LANG=tr.
kotilo kit listPrints every tool grouped by category, then your pipelines, with a one-line description. Plugins appear in their categories. Pipelines and plugins that could not be loaded are named on standard error: "Skipped pipeline : " or "Skipped plugin : ". Add --json for a JSON array of id, category, name and description.
pbpaste | kotilo kit detectPrints up to ten tools with a score from 0 to 1, best first, for example 0.95 jwt JWT decode. If nothing matches, it prints "No tool recognized this input." and exits with code 1. On Windows, Get-Clipboard | kotilo kit detect in PowerShell works the same way.
A saved pipeline runs by its name, like a tool:
pbpaste | kotilo kit b64-jsonIf a pipeline file is broken, naming it prints the reason instead of "Unknown tool".
kotilo kit add <name>
kotilo kit add <name> --yes
kotilo kit add <name> --forceadd is the only command that uses the network. It asks "Connect and install? [y/N]" every time. Use --yes to approve a single install in a script. Use --force to overwrite a local file with the same name. The full flow, including signature checks, is on the Plugins page.
If a tool produces bytes (for example Base64 decode of a binary file) and standard output is a pipe or a file, Kit writes the raw bytes. In an interactive terminal, text is printed instead.
kotilo kit base64 decode < logo.b64 > logo.png| Code | When |
|---|---|
| 0 | Success. |
| 1 | The tool reported an error (for example invalid input), detect found nothing, or an add step failed or was cancelled. Errors go to standard error. |
| 2 | Wrong usage: no command, unknown tool ("Unknown tool: . Run kotilo kit list."), unknown option ("Unknown option for : --"), or add run without a terminal and without --yes.
|
The CLI reads pipelines/*.toml and tools/*.ts from the configuration folder and honors [plugins] disabled. It does not use the palette, the clipboard or the desktop app's windows.
Kotilo Kit 1.1.3 · MIT License · Source · Releases · Report a bug · Offline, no telemetry, no clipboard history
Get started
Using Kit
Extending
Reference