Skip to main content

FluidZero platform CLI

Project description

fz — FluidZero CLI

The official command-line interface for the FluidZero document intelligence platform.

Manage projects, upload documents, define schemas, execute extraction runs, search results, and more — all from your terminal.

Installation

Homebrew (macOS)

brew install fluidzero/tap/fz

pip

pip install fluidzero-cli

From source

git clone https://github.com/fluidzero/fz-cli.git
cd fz-cli
python -m venv .venv && source .venv/bin/activate
pip install -e .

Quick Start

# Authenticate (opens browser for device-code confirmation)
fz auth login

# List projects
fz projects list

# Upload documents and wait for processing
fz documents upload -p <project-id> *.pdf --wait

# Run extraction with a schema
fz runs create -p <project-id> --schema <schema-id> --wait

# Search extracted data
fz search "quarterly revenue" -p <project-id>

Commands

Command Description
fz auth Login, logout, status, print token
fz projects Create, list, get, update, delete projects
fz documents Upload, list, get, delete, download documents
fz schemas Manage schemas and schema versions
fz prompts Manage prompts and prompt versions
fz runs Create, list, watch, cancel runs; view results
fz search Search extracted data (global or project-scoped)
fz webhooks Manage webhook endpoints and deliveries
fz api-keys Create, list, revoke API keys for CI/CD
fz run Composite: upload documents + run extraction
fz batch Batch process a directory of documents

Global Flags

Global flags go before the subcommand (Click convention):

fz -o json projects list       # JSON output
fz -o csv projects list        # CSV output
fz -q runs create ...          # Quiet mode
fz -v documents upload ...     # Verbose (shows HTTP requests)
fz -p <id> documents list      # Set default project

Configuration

Settings are resolved in order (later wins):

  1. Defaults
  2. ~/.config/fluidzero/config.toml (global)
  3. .fluidzero.toml (project-local)
  4. Environment variables
  5. CLI flags

Environment Variables

Variable Description
FZ_API_URL API base URL
FZ_PROJECT_ID Default project ID
FZ_OUTPUT Default output format (table, json, jsonl, csv)
FZ_CLIENT_ID M2M client ID (CI/CD)
FZ_CLIENT_SECRET M2M client secret (CI/CD)
NO_COLOR Disable colored output

Config File Example

# ~/.config/fluidzero/config.toml
[defaults]
api_url = "https://api.fluidzero.ai"
project = "e94af89d-..."
output = "table"

[upload]
concurrency = 4
retry_attempts = 3

Authentication

Interactive (browser device flow)

fz auth login    # Shows a code, opens browser for confirmation
fz auth status   # Check current identity and token expiry
fz auth logout   # Remove stored credentials

Machine-to-Machine (CI/CD)

export FZ_CLIENT_ID=client_01K...
export FZ_CLIENT_SECRET=124e12a...
fz projects list   # Uses M2M auth automatically

Create API keys with fz api-keys create "My CI Key".

License

Apache License 2.0 — see LICENSE for details.

Copyright 2025 Force Platforms Inc.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fluidzero_cli-0.2.0.tar.gz (36.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fluidzero_cli-0.2.0-py3-none-any.whl (50.4 kB view details)

Uploaded Python 3

File details

Details for the file fluidzero_cli-0.2.0.tar.gz.

File metadata

  • Download URL: fluidzero_cli-0.2.0.tar.gz
  • Upload date:
  • Size: 36.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for fluidzero_cli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ac16bb54fe46e2dc48447252e59d66a9401531e5fe9a616d8bbd9e3a2da201bf
MD5 3803e1bd3ea6eb40680d89f05a586ac8
BLAKE2b-256 430b0415f17ca3627a54dfa207962e724601743bba6d20919310f446b51c04ac

See more details on using hashes here.

Provenance

The following attestation bundles were made for fluidzero_cli-0.2.0.tar.gz:

Publisher: publish.yml on fluidzero/fz-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fluidzero_cli-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: fluidzero_cli-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 50.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for fluidzero_cli-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f89c91900b820ac7148888d4ab7dcc3f20204e3c866d12a50d9f3d8c1533c750
MD5 f0c281edd43cab762096fa9cfccb1ad2
BLAKE2b-256 da0ac8788bf49f4eea634788329854f328cc00a942fd870c4277affb18c0d62c

See more details on using hashes here.

Provenance

The following attestation bundles were made for fluidzero_cli-0.2.0-py3-none-any.whl:

Publisher: publish.yml on fluidzero/fz-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page