Command-line reference
Everything in Arcsentry's desktop app except the AI investigator is also a command: build a case, add evidence, query it and record what you conclude. Scripts, pipelines and servers with no desktop all work.
This reference is generated from the same definition the arcsentry --help output is built from, and its examples are run by Arcsentry's own test suite. It covers 22 commands and 143 subcommands.
Every command takes the case it works on as --case <uuid>; there is no hidden current case. Case and evidence UUIDs come from case list and evidence list. Set ARCSENTRY_DATA_DIR to work against a different data directory. The agent is a GUI-only capability and has no CLI surface.
Commands
- analyzeAdd an archive, an extracted directory, or CSV/JSONL files as evidence and analyze it, waiting until the run finishes.
- analysisControl analysis runs that are already under way: pause, cancel, re-run, or hold the whole queue.
- annotationRead the annotations recorded on the case's events.
- caseCreate, open, list, and retire cases, and read or change a case's own record.
- case-logRead a case's activity log: evidence added, analysis runs, verdicts, and maintenance, newest first.
- configRead and change this installation's settings.
- diagnosticsCollect the logs and environment detail needed to report a problem.
- graphBuild and read graph layers: a query's results laid out as nodes and edges.
- evidenceAdd evidence to a case, and read or change what a case knows about it.
- incidentRule on individual events, annotate them, and read back what is flagged.
- indicatorsMark a field value on an event as an indicator worth tracking across the case, change its severity, TLP, type, tags or notes, print it, or remove one by id.
- iocList the case's recorded indicators and match them against the records of one evidence item.
- list-event-typesList the event types this build can produce, optionally narrowed by a search string.
- list-pluginsList the parsers this build ships with, optionally filtered by platform or category.
- notesWrite and read the case's own notes: markdown documents stored with the case.
- parseParse an archive or directory straight to JSONL files, without a case.
- queryRun an AQL or SQL query over a case's evidence and print the rows.
- memoryRead, search and change the memories the agent keeps for a case.
- quiverAuthor, validate, run, and promote arrows: reusable TOML hunt rules.
- sessionsRead the logon and remote-access sessions the parsers reconstructed, and rule on them.
- timelineAnnotate events on the case timeline.
- todoTrack the case's outstanding work as tasks.
Global options
| Option | Description |
|---|---|
| -h, --help | Print this help and exit. Also available on every command. |
| -V, --version | Print the version and exit. |
Most commands also take --format to choose between table, JSON, JSON Lines and CSV output.
Environment
| Variable | Description |
|---|---|
ARCSENTRY_DATA_DIR | Data directory holding the case registry and settings. Defaults to a folder named arcsentry-<version>, where <version> is what arcsentry --version prints: under %APPDATA% (or ~/AppData/Roaming) on Windows, ~/Library/Application Support on macOS and $XDG_DATA_HOME (or ~/.local/share) on Linux; every Arcsentry version keeps its own. |
Exit codes
| Code | Meaning |
|---|---|
0 | The command did what it was asked. |
1 | The command failed and Arcsentry did not identify a cause. |
2 | The command line was refused: an unknown command, flag or value. |
3 | The command needs your confirmation and did not get it; nothing was changed. |
4 | case cache-recovery declined the action for this case. |
10 | A file or folder you named does not exist. |
11 | A file or folder you named exists but could not be read. |
12 | The output could not be written where you asked. |
13 | The query, arrow or arrow id was refused before it ran. |
14 | The evidence, records or items the command needs are not available in the case. |
15 | Evidence the command needs is still being analyzed. |
16 | The case overview is still being prepared. |
17 | The case is in use by another Arcsentry program, or Arcsentry could not tell whether it is. |
18 | Arcsentry was busy with other work; run the command again. |
19 | Another query in the case kept this one from starting. |
20 | The command ran out of time before it finished. |
21 | The command was stopped before it finished. |
22 | Search is not available for this case yet. |
23 | The case was made by another Arcsentry release, or its overview does not match its analysis results. |
24 | The case folder could not be read or written. |
25 | This operation is not available on this operating system, or the operating system did not provide what it needs. |
26 | Arcsentry is installed incompletely or with mismatched parts. |
28 | The record of what the last analysis of the evidence covered could not be read. |
29 | The record of what the last analysis of the evidence covered is damaged. |
30 | The analysis the command started or waited for ended in failure. |
31 | The analysis the command started or waited for was paused or cancelled before it finished. |
32 | The analysis is recorded as running, but no Arcsentry program is running it any more. |
33 | The request needed more working memory than Arcsentry has; narrow it and run it again. |
34 | There was not enough free space to finish the command. |
35 | The case archive is damaged. |
36 | The case archive could not be read. |
37 | The case is already present, so it was not added again. |
38 | The case is archived; restore it before using it. |
39 | The case folder holds an item Arcsentry did not expect. |
40 | A newer request replaced this one before it finished. |
41 | The command finished without covering everything it was asked to. |
42 | The position in the listing is out of date; start the listing again. |
43 | The source could not be read. |
44 | The source is damaged. |
45 | The folder you named for a case is, is inside, or holds another case's folder, or holds Arcsentry's own data. |
46 | The file or folder you named holds nothing Arcsentry can add as evidence. |
47 | The case can be opened, so it was not removed from the case list; archive it instead. |