Xihl Editor v0.3 · macOS ARM64
XIHL / Editor

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.

CommandArguments declared by discoveryRelated 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 --updaterevision-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_DIRportable 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 PATHsequence 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 PATHdata acquisition
ena-download--accession ERR_OR_SRR --destination-dir PATH --max-bytes N --curl PATH --md5 PATHdata acquisition
project-create[--parent PATH] --name NAMEproject lifecycle
collection-create--collection PATH --root DIRECTORYplasmid collections
collection-add--collection PATH --project PROJECT_JSON [--reference-id ID]plasmid collections
collection-inspect--collection PATHplasmid collections
collection-default--collection PATHplasmid collections
collection-refresh--collection PATHplasmid collections
collection-query[--collection PATH] --kind document\|feature --text TEXT [--offset N --limit N --generation ID --refresh]plasmid collections
workspace-create--parent PATH --name NAMEworkspace lifecycle
workspace-inspect--collection PATHworkspace 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 Nworkspace 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] --updateplasmid collections
project-inspect--project PATHproject lifecycle
project-documents--project PATHproject lifecycle
project-sources--project PATHproject lifecycle
project-save-as--project PATH --output PATHproject lifecycle
project-import--project PATH --input PATH --mode copy\|link --expected-revision ID --updateproject 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 IDconstruction history
history-show--project PATH --event-id IDconstruction 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 IUPACsequence 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
capabilitiesno optionsheadless command discovery
schemasno optionsheadless command discovery
tools-inspectno optionstool configuration
resources-inspect--output-path PATHresource preflight
orf-accepttyped candidate requestORF analysis
protein-exportselected CDS and output formatprotein view
protein-prepare--project PATH --record-id ID --request PATH --output-dir NEW_DIRportable 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 --updaterecover 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
comparetwo explicit records and scoring policycomparison
compare-exportcomparison result and output pathcomparison
digestrecord plus v1 definitions, frozen v2 settings, or reviewed offline catalogrestriction analysis
enzyme-catalogoptional name or motif filterrestriction analysis
digest-exportrecord, optional v2 settings, and a new output directoryrestriction analysis
library-inspectoptional library pathcloning
library-updatetyped library JSON and expected library revisioncloning
library-importlegacy catalog JSON and expected library revisioncloning
library-detectproject, record ID, optional library pathcloning
library-acceptsuggestion JSON, project, record ID, expected document revisioncloning
cloning-plan-createbounded pinned plan JSON and optional new filecloning
cloning-plan-updateprior/edited plan JSON and exact prior revisioncloning
cloning-pinparent project, record ID, pin IDcloning
cloning-calculatetyped plan JSON; optional new output directorycloning
cloning-inspectchecked cloning bundle directorycloning
cloning-recalculatetyped plan JSON; preserves prior resultcloning
cloning-confirmchecked bundle, product ID, project and expected saved revisioncloning
cloning-registerchecked bundle, project and expected saved revisioncloning
pcr-candidatesselected input and exact typed oligos JSONcloning
gel-exportgel JSON and new output directorycloning
catalog-inspectcatalog sourcefeature catalog
catalog-matchrecord and catalog sourcefeature catalog
catalog-acceptproject, match ID and expected revisionfeature catalog
trace-verifytrace source and explicit reference originSanger verification
trace-querytrace source and bounded sample rangeSanger trace
sequence-exportselected record and formatsequence export
map-exportselected record and SVG outputmap view
qc-exportQC report and explicit outputlocal jobs QC
reference-queryindexed source and bounded genomic regiongenome browser
track-queryregistered track or completed mapping job ID, bounded region and page capgenome browser
track-registerproject, track source and expected revisiongenome browser
trace-registerproject and trace source identitySanger trace
sanger-batch-prepareproject, pinned record, JSONL manifest and new batch directorySanger batch screening
sanger-batch-inspectprepared batch and bounded page/item/clone selectorSanger batch results
sanger-batch-registerchecked batch, project and expected revisionSanger batch recovery
sanger-batch-exportcompleted batch and new JSON or TSV directorySanger batch export
browser-deriveselected document and output directorygenome browser
subset-inspectnamed subset IDread subsets
subset-previewtyped subset requestread subsets
subset-exporttyped subset request and output pathread subsets
aligner-profiles[--input PATH]alignment profiles
aligner-index-inspect--request PATH (AlignerIndex request)local jobs
workflow-plantyped v1 workflow requestlocal jobs
workflow-runtyped v1 workflow request and optional --descriptor-out PATHlocal jobs
workflow-register--project PATH --descriptor PATH --expected-revision ID --updateproject lifecycle
jobs-submittyped workflow requestlocal jobs
jobs-retryterminal job ID; retries with fresh output pathslocal jobs
jobs-listpage and limit (maximum 100)local jobs
jobs-statusstable job IDlocal jobs
jobs-waitstable job ID and timeoutlocal jobs
jobs-cancelstable job IDlocal jobs
jobs-logsstable job ID and byte/line boundlocal jobs
jobs-resultsstable job ID; result JSON is limited to 8 MiBlocal jobs
jobs-reconcilestable job ID or bounded project scanlocal 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 PATHoffline recovered ENA source registration
primer-designsaved project, record ID, bounded target/parameter request, new report directorycloning primer design
primer-design-inspectchecked report bundle, optional current project and pair IDcloning report inspection
primer-design-acceptchecked report/selections or receipt, explicit current project and library revisionscloning primer acceptance
primer-design-exportchecked report bundle, selected pair request and new output directorycloning order preview and export
primer-from-selectionsource arc/strand; optional guarded library save with --updateMolecular Analytics selection primer
restriction-cutterssaved record; positive count filter and queryMolecular 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.