visionfi.dev

Docs / CLI

Scout CLI

scout wraps the engine directly: no server, no middle layer. It shares its data directory, catalog and settings with the desktop app. Use it for headless batch processing, CI jobs and scripting.

  • scout
  • linux-x64
  • --json · --yaml

Before you start

  • x86_64 Linux

    glibc 2.38 or newer: Ubuntu 24.04+, Azure Linux 3.0, RHEL 10+. No arm64 or musl build is published.

  • curl or wget, and sha256sum

    The installer downloads the binary and checks it against its SHA-256 before installing.

  • A Scout HQ key

    Every install needs one, dev and CI included. Your VisionFI account team issues it.

Install

One script. Run it as root to install to /usr/local/bin; otherwise it installs to ~/.local/bin. Running it again upgrades in place.

terminal
curl -fsSL https://downloads.scoutnotebook.com/dist/cli/install.sh | sh

To read the script before running it:

terminal
curl -fsSLO https://downloads.scoutnotebook.com/dist/cli/install.sh
less install.sh
sh install.sh
VariableEffect
SCOUT_CHANNELstable or insiders. Defaults to the channel whose installer you ran.
SCOUT_VERSIONInstall this exact version, in the form x.y.z.
SCOUT_INSTALL_DIRInstall somewhere else.
SCOUT_DOWNLOAD_ORIGINAn internal mirror with the same dist/cli/ layout.
Document processing needs PDFium

The installer ships the binary only. Set SCOUT_PDFIUM_LIB_DIR to a directory that holds the PDFium library before you upload or process documents. Sync, settings and catalog commands work without it.

Sync your catalog

The CLI reads your Scout HQ key from SCOUT_API_KEY, or from the OS keychain entry the desktop app uses. One sync pulls down your recipe catalog and the model settings a run needs. There is no way to set a raw model key by hand.

terminal
$ export SCOUT_API_KEY=<your-key>
$ scout sync

Run a recipe on a notebook

The CLI is notebook-centric: set a current notebook once, then run commands against it.

terminal
$ scout notebook create "Loan Batch 2026-05"
$ scout use "Loan Batch 2026-05"          # set the current notebook
$ scout upload statement.pdf w2.pdf      # stage files
$ scout process                          # read, split and classify
$ scout run --recipe loan-terms-summary  # blocks until the run finishes
$ scout runs show <run-id> --json

A recipe's own parameters go in as --param name=value, repeated as needed.

Choosing the notebook

Every notebook-scoped command resolves a notebook in this order, highest first. A reference matches an exact UUID, a unique UUID prefix, or an exact name.

SourceUse it for
--notebook / -nOne command. Explicit, and never persisted.
SCOUT_NOTEBOOKScripts and CI.
scout useInteractive work. The choice is remembered.

scout notebook delete asks for confirmation when the notebook was resolved implicitly. Pass --yes to skip the prompt.

Output for scripts

Every command returns the same envelope. --json and --yaml write it to stdout; the default mode renders the same data as text. Progress always goes to stderr, so stdout is the single result surface.

scout notebook create "Env Test" --json
{
  "command": "notebook.create",
  "status": "ok",
  "timestamp": "2026-06-01T17:50:42.855Z",
  "data": { "id": "c0b0185b-…", "name": "Env Test", "status": "staging" }
}

On failure, status is error and the envelope carries an error object with a code and a message.

Exit codeMeaning
0Success
1Runtime failure
2Usage or invalid arguments, including no notebook selected
3Not found: notebook, run, artifact or document
4Ambiguous notebook reference
5Conflict: the notebook is already open in another process
6Aborted: a destructive confirmation was declined

--quiet suppresses progress output. -v and -vv raise log verbosity.

Core commands

scout --help lists everything. These are the ones a script uses most.

CommandWhat it does
scout syncSync the catalog from Scout HQ. --force downloads it in full.
scout useSet, show or clear the current notebook.
scout notebookList, create, show, delete, export and import notebooks.
scout uploadStage one or more files into the notebook.
scout processRead, split and classify the staged files.
scout runRun a recipe against the notebook.
scout runsList runs, show one run's summary, or read its messages.
scout artifactsList a notebook's artifacts, or get one as text or a file.
scout documentsList the processed documents, or show one.
scout catalogBrowse the synced catalog.
scout recipePublish and list recipes in the local catalog.
scout settingsConnected systems, inference settings and resolved paths.

Environment variables

VariablePurpose
SCOUT_API_KEYScout HQ key. Takes precedence over the OS keychain for this session.
SCOUT_NOTEBOOKThe notebook to operate on, for scripts and CI.
SCOUT_CONFIG_DIROverride the directory that holds the catalog and settings.
SCOUT_NOTEBOOKS_DIROverride the directory that holds the .scoutnb notebook files.
SCOUT_PDFIUM_LIB_DIRDirectory holding the PDFium library.
One writer per notebook

If a notebook is already open in the desktop app or another scout process, the CLI fails fast with exit code 5 instead of waiting on a lock.

Next