Skip to content
xmsadik edited this page Nov 29, 2026 · 2 revisions

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.

Run it

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.txt

On 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

Run a tool

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

Options

  • --option value sets an option. The name is the option key, written in camelCase or kebab-case: --sortKeys and --sort-keys are the same.
  • A toggle is switched on with --name and off with --no-name.
  • A bare word selects an option value: base64 decode is the same as base64 --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 the TZ environment variable.

To see a tool's options, their values and defaults, and examples:

kotilo kit jwt --help

Global flags

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.

List the tools

kotilo kit list

Prints 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.

Detect which tool fits

pbpaste | kotilo kit detect

Prints 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.

Run a pipeline

A saved pipeline runs by its name, like a tool:

pbpaste | kotilo kit b64-json

If a pipeline file is broken, naming it prints the reason instead of "Unknown tool".

Install a plugin

kotilo kit add <name>
kotilo kit add <name> --yes
kotilo kit add <name> --force

add 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.

Binary output

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

Exit codes and errors

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.

Where it reads its files

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.

Related pages

Clone this wiki locally