Skip to main content
The Flow command-line interface (CLI) (flow) is a command-line client for the same REST API documented in API Reference. Ask your Flow administrator how to get the CLI for your organization. Authenticate with API keys from Settings → API & MCP Access at https://app.letsflow.ai. Global options on most commands: Machine authentication uses an API key. The --auth-principal-id flag is for development and test environments. It sends the X-Flow-Dev-Principal-Id header, and the CLI omits it when an API key is present. The --auth-org-id and --auth-team-id flags work with an API key. Flow uses them to choose and check the organization and team.

First catalog request from the CLI

1

Configure API access.

Create an API key under Settings → API & MCP Access or use credentials from your administrator. Use https://app.letsflow.ai/v1 as the API base URL in the examples below.
2

List catalog items.

3

Inspect request schema.

4

Get the form reference.

The default text output does not include form_ref. Request JSON output and extract it:
5

Start a conversation.

You can omit --justification when the published request schema returns justification_required: false. If your installed CLI always requires the option, update it to use this setting.

Command groups

Search and knowledge

Catalog and access

Automations and runs

Flow assistant

Webhooks and audit

API keys and setup

Choosing between text and JSON output

  • Use --output text for interactive terminal use (default).
  • Use --output json in scripts. Pipe to jq for field extraction.
Errors print a title, detail, and optional problem code. With --verbose, request and correlation IDs help your administrator trace failures.