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.
curl -fsSL https://downloads.scoutnotebook.com/dist/cli/install.sh | sh
To read the script before running it:
curl -fsSLO https://downloads.scoutnotebook.com/dist/cli/install.sh
less install.sh
sh install.sh
| Variable | Effect |
|---|---|
SCOUT_CHANNEL | stable or insiders. Defaults to the channel whose installer you ran. |
SCOUT_VERSION | Install this exact version, in the form x.y.z. |
SCOUT_INSTALL_DIR | Install somewhere else. |
SCOUT_DOWNLOAD_ORIGIN | An internal mirror with the same dist/cli/ layout. |
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.
$ 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.
$ 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.
| Source | Use it for |
|---|---|
--notebook / -n | One command. Explicit, and never persisted. |
SCOUT_NOTEBOOK | Scripts and CI. |
scout use | Interactive 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.
{
"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 code | Meaning |
|---|---|
0 | Success |
1 | Runtime failure |
2 | Usage or invalid arguments, including no notebook selected |
3 | Not found: notebook, run, artifact or document |
4 | Ambiguous notebook reference |
5 | Conflict: the notebook is already open in another process |
6 | Aborted: 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.
| Command | What it does |
|---|---|
scout sync | Sync the catalog from Scout HQ. --force downloads it in full. |
scout use | Set, show or clear the current notebook. |
scout notebook | List, create, show, delete, export and import notebooks. |
scout upload | Stage one or more files into the notebook. |
scout process | Read, split and classify the staged files. |
scout run | Run a recipe against the notebook. |
scout runs | List runs, show one run's summary, or read its messages. |
scout artifacts | List a notebook's artifacts, or get one as text or a file. |
scout documents | List the processed documents, or show one. |
scout catalog | Browse the synced catalog. |
scout recipe | Publish and list recipes in the local catalog. |
scout settings | Connected systems, inference settings and resolved paths. |
Environment variables
| Variable | Purpose |
|---|---|
SCOUT_API_KEY | Scout HQ key. Takes precedence over the OS keychain for this session. |
SCOUT_NOTEBOOK | The notebook to operate on, for scripts and CI. |
SCOUT_CONFIG_DIR | Override the directory that holds the catalog and settings. |
SCOUT_NOTEBOOKS_DIR | Override the directory that holds the .scoutnb notebook files. |
SCOUT_PDFIUM_LIB_DIR | Directory holding the PDFium library. |
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.