Команды CLI Files
Все команды, аргументы и параметры files в справочнике, созданном из программы.
Все команды, параметры и коды выхода, созданные из самой программы. Тот же список в JSON выводит
files commands --json.
Первое слово это профиль, имя, которое вы выбираете сами: files personal config show. FILES_PROFILE
делает то же для всей сессии терминала. Профиль не подставляется сам. Команда, которой нужен аккаунт, без профиля
останавливается и выводит список профилей на этом компьютере.
Options for every command
| Option | What it does |
|---|---|
-V, --version | output the version number. |
-v, --verbose | more detail in what is shown: -v ids, -vv everything we know. Default: 0. |
--json | machine-readable output: one JSON value on stdout; --json=id,text keeps only those fields. |
--jsonl | machine-readable output: one JSON object per line, for streaming and jq. |
--quiet | diagnostics off; a failure is still said. |
--trace | the connection's own log lines on stderr — never content. |
--debug | on a failure, its whole record — cause and stack — in place of the short line. |
--timeout <duration> | give up on the whole command after this — 30s, 2m, 500ms. |
--offline | answer from what was recorded and never connect; fails if nothing was. |
--no-input | never prompt or open interactive login; piped input remains available. |
--max-input-bytes <bytes> | maximum buffered input bytes (default: 16777216). |
--max-output-bytes <bytes> | maximum machine output bytes (default: 4194304; 0 disables). |
--brief | found items as reference, title, time, author and excerpt only. |
--full | found items with their whole text and every provider field. |
--compact | one line per item for an agent: reference first, text last, paging and next steps as # lines. |
--dry-run | preview parsed arguments and permissions before running the action. |
--yes | go ahead without the question an ask level puts before a write. |
--record | keep this run even where the config says record false; record_input false leaves the typed words out. |
--no-record | do not keep this run, even if it fails. |
files notes
notes from your folders, and notes you write here
files notes show
one note: its text, tags, what it links and what links it
files notes show <note>| Argument | Обязательность | What it is |
|---|---|---|
note | required | note:, document:, or a file in a configured folder. |
Returns: note — ref, id, source, folder_id, path, title, text, revision, and 15 more; every field: files commands info notes show
Example: files notes show <note>
files notes list
notes, newest first
files notes list [query] [options]| Argument | Обязательность | What it is |
|---|---|---|
query | optional | field:value terms that narrow the list — the fields are below. |
| Option | What it does |
|---|---|
--limit <n> | most notes, at most 500. Default: 20. |
--page <n> | which page, from 1. Default: 1. |
Returns: note — ref, id, source, folder_id, path, title, text, revision, and 15 more; every field: files commands info notes list
Next usually: files notes show <note>
Example: files notes list
files notes add
write a note of your own about messages, people, projects or other notes
Changes something on this computer only.
files notes add [text] [options]| Argument | Обязательность | What it is |
|---|---|---|
text | optional | the note; or --text, or --text-file. |
| Option | What it does |
|---|---|
--text <text> | the note. |
--text-file <path> | read the note from a file; - reads stdin. |
--title <title> | a title. |
--subject <ref> | what it is about: :, msg:, chat:, person:, organization:, project:, task:, note:, document:, meeting:; repeat for more. |
--meeting <id> | also about this meeting, by its store id, with --account. |
--account <account> | the account of --meeting: the meeting account it acts as: provider:account, such as zoom:me@example.com. |
--export [dir] | also write it as a file — to this folder, or notes.export.dir. |
--format <format> | the file's format: obsidian, markdown. |
Returns: note — ref, id, source, folder_id, path, title, text, revision, and 15 more; every field: files commands info notes add
Next usually: files notes show <note>
Example: files notes add "on my way"
files notes edit
change a note you wrote here; a file's note is edited in its file
Changes something on this computer only.
files notes edit <id> [options]| Argument | Обязательность | What it is |
|---|---|---|
id | required | note:. |
| Option | What it does |
|---|---|
--revision <n> | its current revision, so an edit made meanwhile is not lost. |
--text <text> | the new text. |
--text-file <path> | read the new text from a file; - reads stdin. |
--export [dir] | also rewrite its file — in this folder, or notes.export.dir. |
--format <format> | the file's format: obsidian, markdown. |
Returns: note — ref, id, source, folder_id, path, title, text, revision, and 15 more; every field: files commands info notes edit
Next usually: files notes show <note>
Example: files notes edit 1 --revision <n>
files notes remove
delete a note you wrote here; a file it was exported to stays
Changes something on this computer only.
files notes remove <id>| Argument | Обязательность | What it is |
|---|---|---|
id | required | note:. |
Example: files notes remove 1
files notes export
write the notes you wrote here as files, never overwriting one you edited
Changes something on this computer only.
files notes export [options]| Option | What it does |
|---|---|
--output-dir <dir> | the folder to write to (default: notes.export.dir). |
--format <format> | the files' format: obsidian, markdown. |
Example: files notes export
files notes links
imported note files linked to the person behind an identity
files notes links show
show the note files about a person
files notes links show <identity> [options]| Argument | Обязательность | What it is |
|---|---|---|
identity | required | : of an identity of the person. |
| Option | What it does |
|---|---|
--json | print the standard JSON answer. |
Returns: person note links — person, name, files; every field: files commands info notes links show
Example: files notes links show telegram:'Kai Sample'
files notes links add
link an imported note file to a person
Changes something on this computer only.
files notes links add <identity> <path> [options]| Argument | Обязательность | What it is |
|---|---|---|
identity | required | : of an identity of the person. |
path | required | the imported note file in a configured folder. |
| Option | What it does |
|---|---|
--json | print the standard JSON answer. |
--as-owner | act as you although an agent's terminal runs files (AI_AGENT or CLAUDECODE set); asks y/N at the terminal. |
--from-app | you did this in WireCat Desktop: record it as yours, with no terminal question. |
Returns: person note links — person, name, files; every field: files commands info notes links add
Example: files notes links add telegram:'Kai Sample' /path/to/vault/People/Kai.md
files notes links clear
remove the owner's note-file links for a person
Changes something on this computer only.
files notes links clear <identity> [options]| Argument | Обязательность | What it is |
|---|---|---|
identity | required | : of an identity of the person. |
| Option | What it does |
|---|---|
--json | print the standard JSON answer. |
--as-owner | act as you although an agent's terminal runs files (AI_AGENT or CLAUDECODE set); asks y/N at the terminal. |
--from-app | you did this in WireCat Desktop: record it as yours, with no terminal question. |
Returns: person note links — person, name, files; every field: files commands info notes links clear
Example: files notes links clear telegram:'Kai Sample'
files folders
folders of notes: the id links and the store use, and the path on this computer
files folders add
give a folder of notes an id, or show the one it has
Changes something on this computer only.
files folders add <path> [options]| Argument | Обязательность | What it is |
|---|---|---|
path | required | the folder on this computer. |
| Option | What it does |
|---|---|
--format <format> | how its notes are written: obsidian, markdown (default for a new folder: obsidian in an Obsidian vault, one with a .obsidian folder in it or above it, markdown otherwise). |
Example: files folders add <path>
files folders update
bind a folder id from another computer to the folder's path on this one
Changes something on this computer only.
files folders update <id> <path> [options]| Argument | Обязательность | What it is |
|---|---|---|
id | required | the folder's id, as files folders add printed it. |
path | required | the same folder on this computer. |
| Option | What it does |
|---|---|
--format <format> | how its notes are written: obsidian, markdown. |
Example: files folders update 1 <path>
files folders remove
stop reading a notes folder here; its notes stay unless --allow-delete
Changes something on this computer only.
files folders remove <folder> [options]| Argument | Обязательность | What it is |
|---|---|---|
folder | required | the folder's id or its path, as files folders list prints them. |
| Option | What it does |
|---|---|
--allow-delete | also delete the folder's notes from the store, their text included. |
--yes | confirm --allow-delete. |
Example: files folders remove ~/notes, files folders remove 3 --allow-delete --yes --json
files folders list
folders of notes on this computer, and those the store knows from another
files folders list [query]| Argument | Обязательность | What it is |
|---|---|---|
query | optional | field:value terms; this list filters by none yet. |
Returns: notes folder — id, name, path, format, kept_by; every field: files commands info folders list
Example: files folders list
files sources
sources you add by hand: pasted text, a file or a web page, kept as searchable documents
files sources add
keep a file, a web page or pasted text as a document of its own; only its text is kept unless --keep-copy
Changes something on this computer only.
files sources add <source> [options]| Argument | Обязательность | What it is |
|---|---|---|
source | required | a file's path, an http(s) address, or - to read the text from stdin. |
| Option | What it does |
|---|---|
--reason <text> | why, in a few words; required when an agent decides for you. |
--as-owner | act as you although an agent's terminal runs files (AI_AGENT or CLAUDECODE set); asks y/N at the terminal. |
--from-app | you did this in WireCat Desktop: record it as yours, with no terminal question. |
--title <title> | a title; otherwise the page's or file's own, or the text's first line. |
--subject <ref> | who or what it is about: person:, organization:, project:, task:, meeting:, or :; repeat for more. |
--keep-copy | also keep a copy of the file in files' data folder, so it opens after the file is gone. |
--max-chars <n> | most characters of text to keep, up to 2000000 (default 200000). |
Returns: added source — ref, created, duplicate_of, title, kind, mime, bytes, chars, and 7 more; every field: files commands info sources add
Example: files sources add <source>
files sources preview
read a web page as sources add would, with the same refusals, and say what would be kept; nothing is saved
files sources preview <url>| Argument | Обязательность | What it is |
|---|---|---|
url | required | an http(s) address. |
Returns: source preview — url, title, site, description, excerpt, kind, mime, read, and 2 more; every field: files commands info sources preview
Example: files sources preview https://example.com
files sources show
one source: its text, what is kept, what it is about, and the facts, memories and batches citing it
files sources show <ref> [options]| Argument | Обязательность | What it is |
|---|---|---|
ref | required | document:, as sources add answered. |
| Option | What it does |
|---|---|
--bytes <bytes> | most UTF-8 bytes of its text, up to 1048576 (default 16384). |
Returns: source detail — ref, title, added, kind, url, file_name, mime, bytes, and 10 more; every field: files commands info sources show
Example: files sources show <ref>
files sources mentions
people and organizations files knows whose names appear in a source's text; nothing leaves
files sources mentions <ref>| Argument | Обязательность | What it is |
|---|---|---|
ref | required | document:. |
Returns: source mention — ref, type, name, found_as; every field: files commands info sources mentions
Example: files sources mentions <ref>
files sources remove
remove a source you added, and its copy if one was kept; the next source check reviews what cites it
Changes something on this computer only.
files sources remove <ref> [options]| Argument | Обязательность | What it is |
|---|---|---|
ref | required | document: of a source you added. |
| Option | What it does |
|---|---|
--as-owner | act as you although an agent's terminal runs files (AI_AGENT or CLAUDECODE set); asks y/N at the terminal. |
--from-app | you did this in WireCat Desktop: record it as yours, with no terminal question. |
Returns: source removal — ref, removed, copy_deleted, facts, memories; every field: files commands info sources remove
Example: files sources remove <ref>
files sources suggest
send a source's text to the reader you chose and stage the facts it finds, each with a quote checked against the text, as one batch only you confirm
Changes something on this computer only.
files sources suggest <ref> [options]| Argument | Обязательность | What it is |
|---|---|---|
ref | required | document: of the source, as sources add answered. |
| Option | What it does |
|---|---|
--as-owner | act as you although an agent's terminal runs files (AI_AGENT or CLAUDECODE set); asks y/N at the terminal. |
--from-app | you did this in WireCat Desktop: record it as yours, with no terminal question. |
--provider <provider> | read with this reader once: ai-model, claude-code, codex, ollama, openai, anthropic; only you name one. |
--model <model> | the reader's model this once; only you may name one. |
--subject <ref> | who or what every fact is about: person:, organization:, project: or task:. |
--rescan | read it again although this reader already read this text. |
Returns: source suggestion — ref, reader, model, leaves_computer, reused, batch, fingerprint, status, and 3 more; every field: files commands info sources suggest
Example: files sources suggest <ref>
files sources readers
the readers that can propose facts from a source: installed, signed in, and which one you chose
files sources readers list
each reader: installed, signed in, its model, whether the text leaves this computer, and your pick
files sources readers list [query]| Argument | Обязательность | What it is |
|---|---|---|
query | optional | field:value terms that narrow the list — the fields are below. |
Returns: source reader — id, title, provider, available, signed_in, version, model, models, and 5 more; every field: files commands info sources readers list
Example: files sources readers list
files sources readers set
choose the reader sources suggest sends a source's text to, and its model; only you choose
Changes something on this computer only.
files sources readers set <reader> [options]| Argument | Обязательность | What it is |
|---|---|---|
reader | required | ai-model, claude-code, codex, ollama, openai, anthropic. |
| Option | What it does |
|---|---|
--as-owner | act as you although an agent's terminal runs files (AI_AGENT or CLAUDECODE set); asks y/N at the terminal. |
--from-app | you did this in WireCat Desktop: record it as yours, with no terminal question. |
--model <model> | its model; Ollama and the API readers need one, Claude Code and Codex use their own. |
--base-url <url> | Ollama only: its address on this computer, when not http://127.0.0.1:11434. |
Returns: source reader choice — reader, model, leaves_computer, reads_files; every field: files commands info sources readers set
Example: files sources readers set <reader>
files import
bring a folder of text, Markdown, PDF and Word files, .vtt or .srt transcripts and, with --transcribe, recordings, one such file, or a records file (JSON or JSONL) into the store, under the account you name. Each file is a document keyed by its path in the folder: the same folder twice changes nothing, an edited file updates its document, and a file gone from the folder is kept. Links are not followed and nothing leaves this computer; the text is kept as data, never run
Changes something on this computer only.
files import <path> [options]| Argument | Обязательность | What it is |
|---|---|---|
path | required | a folder, a .txt, .md, .pdf, .docx, .vtt, .srt or audio file, or a records file (.json, .jsonl; - for stdin). |
| Option | What it does |
|---|---|
--as-owner | act as you although an agent's terminal runs files (AI_AGENT or CLAUDECODE set); asks y/N at the terminal. |
--from-app | you did this in WireCat Desktop: record it as yours, with no terminal question. |
--account <account> | the source the files belong to: import: (import:handbook), or phone: for call transcripts; never chosen for you. |
--transcribe | hear recordings (.wav, .mp3, .m4a, .ogg, .opus, .flac) with the local speech model; a recording heard before and unchanged is not heard again. Without it recordings are skipped. |
--dry-run | read every file and plan the import; write nothing. Holds the store's write lock meanwhile. |
Returns: import receipt — dry_run, source, created, updated, unchanged, deleted, refused, errors, and 4 more; every field: files commands info import
Example: files import <path>
files sync
bring every configured notes folder up to date in the store, only what changed, and embed the new chunks for search by meaning. Every configured folder unless narrowed; --timeout keeps the progress made so far
Changes something on this computer only.
files sync [options]| Option | What it does |
|---|---|
--folder <folder> | only this configured folder, by its id or path; repeat for more. |
--ignore <path> | leave this file or folder alone this run, a path or a glob; repeat for more. |
--no-embed | skip embedding notes for search by meaning this run. |
Example: files sync
files search
search the notes in the local store
files search notes
native notes by words and, with the local model, meaning
files search notes <query> [options]| Argument | Обязательность | What it is |
|---|---|---|
query | required | words, phrases, Boolean operators and field queries. |
| Option | What it does |
|---|---|
--limit <n> | most results, at most 100. Default: 20. |
--page <n> | which page, from 1. Default: 1. |
--exact | words as written; skip meaning search. |
--timezone <zone> | IANA timezone for calendar date boundaries. |
--filter <query> | another query every note must match. |
--source <accounts> | only these notes accounts, separated by commas: notes:internal for the notes you wrote, notes: as a hit shows it, or notes. |
Returns: note hit — ref, source, folder_id, path, title, updated_at, kind, provider, and 6 more; every field: files commands info search notes
Next usually: files notes show <note>
Example: files search notes "invoice"
files commands
every command by section; --json prints its contract, one path per call
files commands info
one command contract, or all schemas, error reasons and explicit overrides
files commands info [path]| Argument | Обязательность | What it is |
|---|---|---|
path | optional | one command path; without one, export schemas, error reasons and explicit overrides. |
Example: files commands info commands
files doctor
the state this installation is in, without connecting unless --online
files doctor [options]| Option | What it does |
|---|---|
--online | also connect once and read the account; sends nothing. |
Example: files doctor, files doctor --json
files doctor reports
problem reports
files doctor reports show
what a problem report holds; writes nothing
files doctor reports showExample: files doctor reports show
files doctor reports create
write a problem report to a file, and say where to send it
Changes something on this computer only.
files doctor reports create [options]| Option | What it does |
|---|---|
--run <id> | the run the report is about; the newest failed one if not given. |
--output <file> | where to write it; a new file in this directory if not given. |
Example: files doctor reports create --output ./problem-report.json
files skill
the instructions an agent is given for this tool
files skill show
print SKILL.md — files skill install puts it where Claude Code, Codex, Gemini CLI and OpenClaw look for it, and where Hermes does on request; --for prints the copy already there
files skill show [options]| Option | What it does |
|---|---|
--for <agents> | print the copy installed for these agents instead of this version's. One of: claude, agents. |
Example: files skill show
files skill install
write SKILL.md to ~/.claude/skills/files-cli/ (Claude Code) and ~/.agents/skills/files-cli/ (Codex, Gemini CLI, OpenClaw); --for hermes also has Hermes read ~/.agents/skills, which changes Hermes's own settings, so all leaves it out
Changes something on this computer only.
files skill install [options]| Option | What it does |
|---|---|
--for <agents> | which agents to install for. One of: claude, agents, hermes, all. Default: all. |
Example: files skill install --for agents
files skill status
for each place files skill install writes to, and for the copy Hermes reads: the path, the version installed there, and whether it is current, stale, missing or unversioned
files skill statusExample: files skill status, files skill status --json
files mcp
serve this profile to an agent over MCP and set it up — claude mcp add files -- files <profile> mcp serve
files mcp serve
serve this profile to an agent over MCP, on stdin and stdout — claude mcp add files -- files <profile> mcp serve; files mcp serve --profiles a,b or --profiles all serves those profiles from one server and each tool asks which
Changes something in the service.
files mcp serve [options]| Option | What it does |
|---|---|
--permission <key=level> | make a permission stricter for this server only, like notes.add=deny; it never loosens the profile; repeat for more keys. |
--profiles <names|all> | serve several profiles from one server instead of one: names, comma-separated, or all for every profile. |
--http | serve over HTTP on 127.0.0.1 for ChatGPT and Claude in the browser, behind your tunnel; the profile's permissions decide. |
--port <port> | the local port for --http (default 8765). |
--public-url <url> | the tunnel's https address the browser apps use, e.g. https://.ts.net or https://.ts.net/tg. |
Example: files personal mcp serve, files mcp serve --profiles work,personal, files personal mcp serve --http --public-url https://laptop.example.ts.net
files mcp revoke
forget every login mcp serve --http gave a browser app, of this profile or of the server --profiles names; each app must log in again
Changes something on this computer only.
files mcp revoke [options]| Option | What it does |
|---|---|
--profiles <names|all> | serve several profiles from one server instead of one: names, comma-separated, or all for every profile. |
Example: files personal mcp revoke, files mcp revoke --profiles all
files mcp server
start, stop and check mcp serve --http in the background; status shows the login code for a browser app
files mcp server start
start mcp serve --http apart from this shell and answer once it listens, with its login code
Changes something on this computer only.
files mcp server start [options]| Option | What it does |
|---|---|
--port <port> | the local port (default 8765). |
--public-url <url> | the tunnel's https address the browser apps use, e.g. https://.ts.net or https://.ts.net/tg. |
--permission <key=level> | make a permission stricter for this server only; repeat for more keys. |
--profiles <names|all> | the server of several profiles that mcp serve --profiles serves: names, comma-separated, or all. |
Example: files personal mcp server start --public-url https://laptop.example.ts.net
files mcp server stop
stop mcp serve --http — only one that mcp server start started
Changes something on this computer only.
files mcp server stop [options]| Option | What it does |
|---|---|
--profiles <names|all> | the server of several profiles that mcp serve --profiles serves: names, comma-separated, or all. |
Example: files personal mcp server stop
files mcp server status
whether mcp serve --http runs, on which port and address, the login code for a new browser app, and the apps logged in
files mcp server status [options]| Option | What it does |
|---|---|
--profiles <names|all> | the server of several profiles that mcp serve --profiles serves: names, comma-separated, or all. |
Example: files personal mcp server status --json
files mcp config
print the mcpServers entry for Claude Desktop, Cursor and others, with full paths; writes nothing
files mcp config [options]| Option | What it does |
|---|---|
--permission <key=level> | make a permission stricter for this server only, like notes.add=deny; it never loosens the profile; repeat for more keys. |
--profiles <names|all> | serve several profiles from one server instead of one: names, comma-separated, or all for every profile. |
Example: files personal mcp config, files mcp config --profiles all
files mcp add
add this profile's local MCP server to Codex or Claude Code
Changes something on this computer only.
files mcp add <client> [options]| Argument | Обязательность | What it is |
|---|---|---|
client | required | codex or claude-code. |
| Option | What it does |
|---|---|
--allow-writes | acknowledge that this profile offers writing tools. |
--permission <key=level> | make a permission stricter for this server only, like notes.add=deny; it never loosens the profile; repeat for more keys. |
Example: files personal mcp add codex --allow-writes
files mcp check
check this profile's local MCP handshake and tool list
files mcp check [options]| Option | What it does |
|---|---|
--permission <key=level> | make a permission stricter for this server only, like notes.add=deny; it never loosens the profile; repeat for more keys. |
Example: files personal mcp check
files upgrade
upgrade files with the package manager that installed it; --check only looks
Changes something on this computer only.
files upgrade [options]| Option | What it does |
|---|---|
--check | say whether a newer version exists, and install nothing. |
Example: files upgrade --check
files config
the settings in force, and where each one came from
files config show
the profile, the profiles that exist, and each setting with where it came from
files config showExample: files personal config show
files config set
save a setting to the configuration file
Changes something on this computer only.
files config set <setting> <value> [options]| Argument | Обязательность | What it is |
|---|---|---|
setting | required | one of: limit, timeout_ms, color, record, record_input, keep_runs_for_days, keep_successful_runs_for_days, keep_store_runs_for_days, runs_size_limit_mb, permissions, requests_per_minute, search_reranker, embedding_provider, embedding_model, embedding_base_url, embedding_dims, models, read_scans, update_check, skill_hint, notes, sources, search_stemmers.cyrillic, search_stemmers.latin, owner_languages, crm.:.links, crm.:.company-types, crm.:.scope, crm.:.unassigned, crm.:.self, crm.:.stage-tasks, crm.:.activities, crm.:.files.max_files, crm.:.files.max_file_mb, crm.:.files.max_run_mb, crm.:.files.run_minutes, crm.:.files.days, crm.:.files.max_total_mb. |
value | required | a number, true or false; for a group tg:work,max:Alice,email:me@x. |
| Option | What it does |
|---|---|
--defaults | change what every profile gets, rather than this profile. |
Example: files personal config set limit 20
files config unset
remove a setting from the configuration file
Changes something on this computer only.
files config unset <setting> [options]| Argument | Обязательность | What it is |
|---|---|---|
setting | required | one of: limit, timeout_ms, color, record, record_input, keep_runs_for_days, keep_successful_runs_for_days, keep_store_runs_for_days, runs_size_limit_mb, permissions, requests_per_minute, search_reranker, embedding_provider, embedding_model, embedding_base_url, embedding_dims, models, read_scans, update_check, skill_hint, notes, sources, search_stemmers.cyrillic, search_stemmers.latin, owner_languages, crm.:.links, crm.:.company-types, crm.:.scope, crm.:.unassigned, crm.:.self, crm.:.stage-tasks, crm.:.activities, crm.:.files.max_files, crm.:.files.max_file_mb, crm.:.files.max_run_mb, crm.:.files.run_minutes, crm.:.files.days, crm.:.files.max_total_mb. |
| Option | What it does |
|---|---|
--defaults | change what every profile gets, rather than this profile. |
Example: files personal config unset limit
files config migrate
write each setting the file lacks at its default, keeping yours
Changes something on this computer only.
files config migrateExample: files config migrate
files config repair
fix broken JSON syntax in the settings file — comments, a missing or extra comma, unquoted keys, single quotes, missing closing brackets at the end — keeping every value, with a backup beside it; refuses anything with more than one reading and changes nothing then
Changes something on this computer only.
files config repair [options]| Option | What it does |
|---|---|
--dry-run | say what it would fix, and change nothing. |
Example: files config repair, files config repair --dry-run
files runs
recorded runs — what this tool did, and when
files runs list
recorded runs, newest first
files runs list [query] [options]| Argument | Обязательность | What it is |
|---|---|---|
query | optional | field:value terms that narrow the list — the fields are below. |
| Option | What it does |
|---|---|
--limit <n> | how many to show. |
--page <n> | which page, starting at 1. |
Returns: run — run_id, command, started_at, status, cli_version, profile, completed_at, requests, and 23 more; every field: files commands info runs list
Example: files runs list --limit 10
files runs show
one run: what it was, how it ended, and every event it logged
files runs show <run-id> [options]| Argument | Обязательность | What it is |
|---|---|---|
run-id | required | an id from files runs list. |
| Option | What it does |
|---|---|
--problems | only failed responses, warnings and crashes. |
Returns: run details — run_id, command, started_at, status, cli_version, directory, event_count, events, and 22 more; every field: files commands info runs show
Example: files runs show run-101
files runs path
the directory holding one run
files runs path <run-id>| Argument | Обязательность | What it is |
|---|---|---|
run-id | required | an id from files runs list. |
Returns: run location — path; every field: files commands info runs path
Example: files runs path run-101
Exit codes
Branch on the code, not on the text: the text can change, the code does not.
| Code | When |
|---|---|
0 | it worked |
2 | validation_error |
3 | configuration_error |
4 | authentication_error |
5 | permission_error |
6 | not_found |
7 | confirmation_required |
8 | rate_limited |
9 | timeout |
10 | network_error |
11 | provider_error |
12 | provider_unavailable |
13 | invalid_response |
14 | outcome_unknown |
15 | conflict |
130 | cancelled |
1 | anything else |