CLI reference

Every command and flag.

meted <command> [options]
Command
initCreate meted.config.json
devRun the gateway locally
inspectShow what a prompt would be allocated
evalCompare natural and metered generation
modeShow or change the operating mode
deployDeploy to your own Cloudflare account

Global

Flag
--help, -hHelp for a command
--version, -vPrint the version
meted help inspect
meted inspect --help

init

meted init [--yes] [--mode <mode>] [--api-key-env <var>]
           [--base-url <url>] [--force]

dev

meted dev [--port <n>] [--host <addr>] [--mode <mode>] [--quiet]

inspect

meted inspect "<prompt>" [--model <id>] [--mode <mode>] [--system <text>]
                         [--file <path>] [--verbose] [--json]

Computes the allocation locally and prints it.

eval

meted eval [suite.json] [--model <id>] [--mode <mode>] [--limit <n>]
           [--concurrency <n>] [--judge] [--judge-model <id>]
           [--evaluator <path>] [--out <path>] [--verbose] [--json]

Calls your provider twice per prompt.

mode

meted mode [observe|conservative|balanced|aggressive] [--json]

deploy

meted deploy [--dir <path>] [--name <name>] [--dry-run] [--scaffold-only]
             [--skip-secret] [--yes]

Asks before running anything. Without a TTY and without --yes, it exits 1.

Exit codes

0Success
1An error, printed to stderr

Environment

Variable
METED_MODEOverride the mode
METED_HOST, METED_PORTOverride where the gateway listens
METED_PROVIDER_BASE_URLOverride the provider
METED_PROVIDER_API_KEY_ENVWhich variable holds the provider key
METED_ENGINE_MODULE, METED_ENGINE_WASMChoose an engine
METED_DEBUGPrint stack traces on errors

Piping

meted inspect "What is a semaphore?" --json | jq '.decision.targetOutputTokens'
cat prompt.txt | meted inspect --file -
meted eval --json --limit 20 | jq '.derived.estimatedNetReduction'
meted eval --json --limit 20 > report.json

Every command that prints a table also accepts --json.

Was this page helpful?