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
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:~/.config/jinba/config.json. To remove the saved key:
Usage
Commands follow this pattern:Notes
- Path parameters can be passed as positional arguments or as flags such as
--workspace-id. --stdinreads a JSON object and merges it with explicit flags.- Mutating commands support
--dry-runand automatically send anIdempotency-Key. - Destructive commands (archive, delete, revoke, etc.) prompt for confirmation by default; pass
--yesor--forceto skip it. - File upload commands accept a local file path (e.g.
--file ./report.pdf); the CLI infers the content type from the extension.