CLI Reference

Complete command-line interface documentation

Global Options

FlagDescription
--help, -hShow help for a command
--version, -vShow Veriafy version
--quiet, -qSuppress output except errors
--verboseEnable verbose output
--config <file>Use custom config file

Commands

veriafy init

Initialize Veriafy in the current directory

Usage:
veriafy init [--global]
Options:
--globalInitialize in home directory (~/.veriafy)
--config <file>Use custom config file
Example:
veriafy init --global

veriafy classify

Classify one or more files

Usage:
veriafy classify <file> [files...] --model <model>
Options:
--model <name>Model to use for classification (required)
--output <format>Output format: json, table, csv (default: json)
--threshold <n>Confidence threshold (0-1, default: 0.5)
--batch-size <n>Batch size for processing (default: 32)
--recursiveProcess directories recursively
Example:
veriafy classify image.jpg --model veriafy/nsfw-classifier --output table

veriafy pull

Download a model from the marketplace

Usage:
veriafy pull <model>
Options:
--version <v>Specific version to download
--forceOverwrite existing model
Example:
veriafy pull veriafy/fraud-detection --version 2.0

veriafy models

List installed models

Usage:
veriafy models [list|info|remove]
Options:
listList all installed models (default)
info <model>Show model details
remove <model>Remove an installed model
Example:
veriafy models info veriafy/nsfw-classifier

veriafy serve

Start the Veriafy API server

Usage:
veriafy serve [--port <port>]
Options:
--port <n>Port to listen on (default: 8080)
--host <addr>Host to bind to (default: 127.0.0.1)
--workers <n>Number of worker processes
--gpuEnable GPU acceleration
Example:
veriafy serve --port 8080 --workers 4 --gpu

veriafy vector

Extract Veriafy Vector without classification

Usage:
veriafy vector <file> [--output <file>]
Options:
--output <file>Save vector to file
--format <fmt>Output format: json, binary (default: json)
Example:
veriafy vector document.pdf --output doc.vector.json

veriafy search

Search marketplace for models

Usage:
veriafy search <query>
Options:
--category <cat>Filter by category
--file-type <type>Filter by supported file type
--limit <n>Number of results (default: 10)
Example:
veriafy search "fraud detection" --category finance

veriafy config

Manage Veriafy configuration

Usage:
veriafy config [get|set|list]
Options:
get <key>Get a configuration value
set <key> <value>Set a configuration value
listList all configuration
Example:
veriafy config set api_key sk-xxxxx

Environment Variables

VariableDescription
VERIAFY_API_KEYAPI key for cloud features
VERIAFY_HOMEVeriafy home directory (default: ~/.veriafy)
VERIAFY_MODEL_PATHCustom model storage path
VERIAFY_LOG_LEVELLog level: debug, info, warn, error
VERIAFY_GPUEnable GPU: 0 or 1