CLI command reference
Guide contents · CLI and agents
Generated from dna-cli capabilities (120 commands). Use dna-cli COMMAND --help for options and examples, dna-cli discover --command COMMAND for a single command's contract, and dna-cli schemas for the full CLI definitions. CLI descriptive schemas and MCP JSON Schema 2020-12 are separate views of the same commands.
| Command | Arguments declared by discovery | Related desktop or analysis task |
|---|---|---|
search-preview | --source QUERY_SOURCE_JSON [--project PATH --record-id ID] [--output CAPTURE_JSON] | exact document query or unassociated DNA text preview; Text source omits project/record-id |
search-prepare | --capture CAPTURE_JSON --blastn PATH --database PREFIX --database-terms TEXT --task blastn\|blastn-short --output-dir NEW_DIR --request-out NEW_JSON [--parameters JSON] | checked optional local search setup |
search-run | --request JSON [--descriptor-out NEW_JSON] | bounded local nucleotide search |
search-register | --project PATH --bundle DIR --expected-revision REV --update | revision-bound search history/recovery |
search-inspect | --bundle DIR [--offset N --limit N --hsp N --column-start N --columns N] | paged hits and gapped source alignment |
search-export | --bundle DIR --output-dir NEW_DIR | portable checked query/result export |
inspect | --input PATH\|- (stdin accepts bounded FASTA) | sequence file inspector |
export | --input PATH --record-index N --format fasta\|genbank\|embl --output PATH | sequence export |
fastq-qc | --input PATH --output-dir PATH [--threads N --memory-mb N] | local jobs QC |
reference-index | --input PATH --output-dir PATH [--threads N --memory-mb N] | genome browser |
annotation-index | --input PATH --output-dir PATH [--threads N --memory-mb N] | genome browser |
replay-run | --bundle PATH [--inputs-dir PATH] | workflow replay |
ena-preview | --accession ERR_OR_SRR --curl PATH | data acquisition |
ena-download | --accession ERR_OR_SRR --destination-dir PATH --max-bytes N --curl PATH --md5 PATH | data acquisition |
project-create | [--parent PATH] --name NAME | project lifecycle |
collection-create | --collection PATH --root DIRECTORY | plasmid collections |
collection-add | --collection PATH --project PROJECT_JSON [--reference-id ID] | plasmid collections |
collection-inspect | --collection PATH | plasmid collections |
collection-default | --collection PATH | plasmid collections |
collection-refresh | --collection PATH | plasmid collections |
collection-query | [--collection PATH] --kind document\|feature --text TEXT [--offset N --limit N --generation ID --refresh] | plasmid collections |
workspace-create | --parent PATH --name NAME | workspace lifecycle |
workspace-inspect | --collection PATH | workspace lifecycle |
workspace-catalogs | --collection PATH [--input PATH --entry N --generation ID] | workspace feature catalogs |
workspace-catalog-import | --collection PATH --catalog PATH --mode replace\|append --expected-revision N | workspace feature catalogs |
project-files | --project PATH [--kind document\|feature --text TEXT --offset N --limit N --generation ID --refresh] | workspace plasmid collection |
collection-remove | --collection PATH [--reference-id ID] --update | plasmid collections |
project-inspect | --project PATH | project lifecycle |
project-documents | --project PATH | project lifecycle |
project-sources | --project PATH | project lifecycle |
project-save-as | --project PATH --output PATH | project lifecycle |
project-import | --project PATH --input PATH --mode copy\|link --expected-revision ID --update | project lifecycle |
document-edit | --project PATH --record-id ID --request PATH --expected-revision ID (--update\|--dry-run) | sequence and feature editor |
document-history | --project PATH --record-id ID | construction history |
history-show | --project PATH --event-id ID | construction history |
history-export | --project PATH --output PATH [--redact none\|paths\|paths-and-sequences] | construction history |
replay-export | --project PATH --job-id ID --output PATH [--redact-paths true] | local jobs |
sequence-stats | --input PATH [--record-index N] | sequence analysis |
sequence-search | --input PATH [--record-index N] --motif IUPAC | sequence analysis |
translate | --input PATH [--record-index N] (--feature-id ID\|--location-json JSON\|--start N --end N) | protein view |
orf-scan | --input PATH [--record-index N] | ORF analysis |
capabilities | no options | headless command discovery |
schemas | no options | headless command discovery |
tools-inspect | no options | tool configuration |
resources-inspect | --output-path PATH | resource preflight |
orf-accept | typed candidate request | ORF analysis |
protein-export | selected CDS and output format | protein view |
protein-prepare | --project PATH --record-id ID --request PATH --output-dir NEW_DIR | portable protein submission |
structure-inspect | --input PATH --format pdb\|mmcif [--apbs-field PATH] | bounded structure metadata and calculated potential inspection |
structure-export | --input PATH --format pdb\|mmcif OR --bundle DIR --output PATH [--overwrite] | byte-exact original structure export |
structure-convert | --input PATH --source-format pdb\|mmcif --target-format pdb\|mmcif --output PATH [--overwrite] | loss-reported conversion of the supported atom subset; refuses unrepresentable PDB fields |
structure-import | --project PATH --record-id ID --submission PATH --input PATH --format pdb\|mmcif --model N --author-chain ID --output-dir NEW_DIR --expected-revision REV --update [--confidence PLDDT_JSON] | revision-bound structure association |
structure-register | --project PATH --bundle DIR --expected-revision REV --update | recover an already committed structure bundle registration |
structure-residue-map | --bundle DIR [--project PATH [--dna-location JSON \| --preview-sequence AA --source-revision REV]] | validated residue and DNA selection correspondence |
compare | two explicit records and scoring policy | comparison |
compare-export | comparison result and output path | comparison |
digest | record plus v1 definitions, frozen v2 settings, or reviewed offline catalog | restriction analysis |
enzyme-catalog | optional name or motif filter | restriction analysis |
digest-export | record, optional v2 settings, and a new output directory | restriction analysis |
library-inspect | optional library path | cloning |
library-update | typed library JSON and expected library revision | cloning |
library-import | legacy catalog JSON and expected library revision | cloning |
library-detect | project, record ID, optional library path | cloning |
library-accept | suggestion JSON, project, record ID, expected document revision | cloning |
cloning-plan-create | bounded pinned plan JSON and optional new file | cloning |
cloning-plan-update | prior/edited plan JSON and exact prior revision | cloning |
cloning-pin | parent project, record ID, pin ID | cloning |
cloning-calculate | typed plan JSON; optional new output directory | cloning |
cloning-inspect | checked cloning bundle directory | cloning |
cloning-recalculate | typed plan JSON; preserves prior result | cloning |
cloning-confirm | checked bundle, product ID, project and expected saved revision | cloning |
cloning-register | checked bundle, project and expected saved revision | cloning |
pcr-candidates | selected input and exact typed oligos JSON | cloning |
gel-export | gel JSON and new output directory | cloning |
catalog-inspect | catalog source | feature catalog |
catalog-match | record and catalog source | feature catalog |
catalog-accept | project, match ID and expected revision | feature catalog |
trace-verify | trace source and explicit reference origin | Sanger verification |
trace-query | trace source and bounded sample range | Sanger trace |
sequence-export | selected record and format | sequence export |
map-export | selected record and SVG output | map view |
qc-export | QC report and explicit output | local jobs QC |
reference-query | indexed source and bounded genomic region | genome browser |
track-query | registered track or completed mapping job ID, bounded region and page cap | genome browser |
track-register | project, track source and expected revision | genome browser |
trace-register | project and trace source identity | Sanger trace |
sanger-batch-prepare | project, pinned record, JSONL manifest and new batch directory | Sanger batch screening |
sanger-batch-inspect | prepared batch and bounded page/item/clone selector | Sanger batch results |
sanger-batch-register | checked batch, project and expected revision | Sanger batch recovery |
sanger-batch-export | completed batch and new JSON or TSV directory | Sanger batch export |
browser-derive | selected document and output directory | genome browser |
subset-inspect | named subset ID | read subsets |
subset-preview | typed subset request | read subsets |
subset-export | typed subset request and output path | read subsets |
aligner-profiles | [--input PATH] | alignment profiles |
aligner-index-inspect | --request PATH (AlignerIndex request) | local jobs |
workflow-plan | typed v1 workflow request | local jobs |
workflow-run | typed v1 workflow request and optional --descriptor-out PATH | local jobs |
workflow-register | --project PATH --descriptor PATH --expected-revision ID --update | project lifecycle |
jobs-submit | typed workflow request | local jobs |
jobs-retry | terminal job ID; retries with fresh output paths | local jobs |
jobs-list | page and limit (maximum 100) | local jobs |
jobs-status | stable job ID | local jobs |
jobs-wait | stable job ID and timeout | local jobs |
jobs-cancel | stable job ID | local jobs |
jobs-logs | stable job ID and byte/line bound | local jobs |
jobs-results | stable job ID; result JSON is limited to 8 MiB | local jobs |
jobs-reconcile | stable job ID or bounded project scan | local jobs |
discover | [--command NAME] | versioned command discovery |
document-query | --project PATH [--record-id ID\|--name TEXT] [--offset N --limit N] [--start N --end N] | saved document metadata and explicit sequence slices |
selection-transform | --project PATH --record-id ID (--feature-id ID\|--segments START..END,...) [--strand forward\|reverse] --operation invert\|five-prime\|three-prime [--count N] [--expected-revision ID] | ordered selection segments and orientation |
feature-query | --project PATH --record-id ID [--feature-id ID\|--name TEXT] [--offset N --limit N] | saved feature locations, strand and qualifiers |
restriction-query | --project PATH --record-id ID (--feature-id ID\|--start N --length N) [--flank N] | bounded feature-relative recognition and cut evidence |
ena-register | --descriptor PATH --project PATH --expected-revision REV --update --md5 PATH --gzip PATH | offline recovered ENA source registration |
primer-design | saved project, record ID, bounded target/parameter request, new report directory | cloning primer design |
primer-design-inspect | checked report bundle, optional current project and pair ID | cloning report inspection |
primer-design-accept | checked report/selections or receipt, explicit current project and library revisions | cloning primer acceptance |
primer-design-export | checked report bundle, selected pair request and new output directory | cloning order preview and export |
primer-from-selection | source arc/strand; optional guarded library save with --update | Molecular Analytics selection primer |
restriction-cutters | saved record; positive count filter and query | Molecular Analytics cutters |
mcp-stdio, --help and --version are launch or help interfaces. Domain command names map to xihl_ plus the command with hyphens replaced by underscores.
Map SVG export
map-export defaults to a circular layout. Use --view linear for a linear map and pair --viewport-start with --viewport-span to choose its bounds. Pair --selection-start with --selection-span to highlight bases. Starts are zero-based and spans count bases. A circular record can cross the origin within one molecule length. --feature-id highlights an exact feature from that input record. --width accepts 480 through 1600 SVG units. The SVG lists every feature name, ID, strand and source ranges below the plot. Short numeric labels refer to that legend when a full name does not fit.
Optional --definitions reads versioned restriction settings JSON. --enzymes accepts comma-separated stable IDs and overrides the file selection, or selects from the bundled catalog when no file is supplied. The marks show recognition starts computed against the selected input record. Dense results show a count.
Use --restriction-preview true for the same cut-site scope as the desktop Map. With no explicit selection, the default is --restriction-count one-or-two. Other count modes are any, exact and at-least. The exact and at-least modes require --restriction-n N. Use --restriction-query TEXT for a name/alias match. Explicit --enzymes or a nonempty selection in the settings file overrides these filters. Pass an empty --enzymes value to clear the file selection for this export. Without preview enabled, the original recognition-start export applies.
The optional result.restriction_preview object is schema version 1. It reports the display source, per-enzyme counts, a complete record content revision (including topology), and the settings SHA-256. The SVG's urn:xihl:restriction-map:1 metadata contains the exact stable enzyme IDs, recognition spans, strands and available cleavage coordinates. Recognition ranges are zero-based half-open and cuts are forward-reference interbase offsets. MCP exposes the same flags on xihl_map_export with its usual output write grant.
Workspace feature catalog commands
Use workspace-catalogs --collection WORKSPACE_MARKER --browse true for versioned pages of saved annotation metadata and manual entries. The default page size is 50, and --limit accepts 1 through 200. Use --query TEXT to search project names, record names, labels or feature keys. Follow next_offset using the same query and the returned --generation ID. complete and issues describe the admitted scope. The operation reads up to 64 Projects, 4,096 directory entries and 64 MiB of manifest data per request. Single manifests are capped at 16 MiB, the retained metadata cache at 16 MiB and each page at 1 MiB.
Pass a row's source object as a JSON string to --catalog-source for exact details. Add --input FILE to find matches in a target record. Use the same source with catalog-accept --collection WORKSPACE_MARKER --catalog-source JSON and the required target Project, record ID, match index, expected revision and --update. The saved-source revision is checked again before acceptance.
The optional --write-cache true publishes a reconstructible metadata cache inside the Workspace. MCP requires a write grant for that option. Read-only MCP callers can browse with an existing cache or project metadata.
Existing workspace-catalogs calls without --browse or --catalog-source retain the legacy generation and ordinal contract and its limits. Legacy matching uses --input FILE --entry N --generation ID. Legacy acceptance uses --collection, --entry and --generation. Ordinals count saved rows followed by manual rows in that generation. Registered Project catalogs use --catalog-id.
For manual imports, use workspace-catalog-import --collection WORKSPACE_MARKER --catalog FILE --mode replace|append --expected-revision N. The manual revision starts at zero. The response reports duplicates, conflicts and rejected rows.