Skip to content

Prefactor CLI

The Prefactor CLI is the command-line tool for working with the Prefactor API without writing code. You can use it to query accounts, list environments, manage agents, and run bulk operations from any terminal.

For interactive use, install the binary, run prefactor login, and use named profiles to switch between accounts. For automation, the CLI reads credentials from PREFACTOR_API_TOKEN so it works in CI and other non-interactive environments without a config file. Commands that accept JSON payloads also accept a file path prefixed with @ (--items @./bulk-items.json), which keeps large or repeated inputs in versioned files rather than inline.

Coding tools like Cursor and Claude Code can invoke the CLI directly. The agent skills provide instruction files that tell those tools how to bootstrap Prefactor resources, instrument agents, and record risk data — covering the patterns that come up repeatedly when setting up a new integration.

  • Getting started — install the CLI, configure a profile, and run your first commands
  • Configuration — config file format, profiles, and environment variables
  • Agent skills — install skills that teach coding tools how to work with Prefactor