Skip to main content

Overview

The Jinba CLI (jinba) is the official command-line interface for Jinba. It lets you call the Jinba Flow API from your terminal — list workspaces, create and update flows, upload files, and more — without writing HTTP requests by hand.

Installation

Requirements

  • Node.js 20 or later

Install

The CLI is published to npm as a public package. Install it globally:

Verify the installation

Update

When a newer version is available, the CLI also prints an update notice in interactive terminal sessions. Older versions may eventually stop being supported; in that case the API asks you to upgrade with the same command.

Authentication

Most API commands require a Jinba user API key. Run any API command and the CLI will prompt for the key if one has not been saved yet:
Get your key from your profile page. The key is stored locally at ~/.config/jinba/config.json. To remove the saved key:
You can also configure the CLI via environment variables — useful in CI:

Usage

Commands follow this pattern:
Examples:
Every command includes help:

Notes

  • Path parameters can be passed as positional arguments or as flags such as --workspace-id.
  • --stdin reads a JSON object and merges it with explicit flags.
  • Mutating commands support --dry-run and automatically send an Idempotency-Key.
  • Destructive commands (archive, delete, revoke, etc.) prompt for confirmation by default; pass --yes or --force to skip it.
  • File upload commands accept a local file path (e.g. --file ./report.pdf); the CLI infers the content type from the extension.