Jinn docs Console

CLI

jinn is one file for Linux, macOS and Windows. It uses the API.

Install

curl -fsSL https://docs.usejinn.com/install.sh | sh

The script puts jinn in /usr/local/bin (or ~/.local/bin). You can also download it yourself:

SystemFile
Linux, x86-64jinn-linux-amd64
Linux, ARMjinn-linux-arm64
macOS, Apple siliconjinn-darwin-arm64
macOS, Inteljinn-darwin-amd64
Windowsjinn-windows-amd64.exe

SHA256SUMS lists their checksums.

Sign in

jinn login

The CLI shows a link and a code. Open the link, check that the console shows the same code, and approve. The CLI then has its own admin key, in ~/.config/jinn/key. On a server, set JINN_KEY instead.

Commands

CommandWhat it does
jinn basesList the bases.
jinn functionsList the account's functions.
jinn publish function.jsonMake the function the file names, or publish its next version. The file is a definition with a name.
jinn run NAME --prompt TEXT [--in DIR] [--out DIR]Start a run, print what the agent does, and download the output folder. NAME is a function's name or id.
jinn run NAME … --detachStart a run and print its id.
jinn run NAME … --version N --webhook URL --ref REFChoose a version, a webhook and your own reference.
jinn runs [--function NAME] [--state active|succeeded|failed]List runs.
jinn show RUNPrint a run as JSON.
jinn logs RUN [--follow]Print a run's log.
jinn output RUN --out DIRDownload a run's output folder.

JINN_API changes the API's address.