Instant DevelopersReferenceCLI Reference

CLI Reference

|||

Complete CLI flag reference, exit codes, and environment variable precedence for INDW.

Complete reference for the indw command-line interface.

Global

text
indw <command> [options]
PropertyValue
Entry pointapp.cli:main
Python requirement≥ 3.10
Default backendmultiprocess

merge

text
indw merge <raw_dir> <out_path> [options]
FlagTypeDefaultEnv overrideDescription
raw_dirpositionalRaw corpus directory
out_pathpositionalOutput JSONL path
--work-dirPathout_path.parentWork directory
--workersint1Worker count
--chunk-sizeint500Batch size
--freshflagoffClear checkpoints
--backendchoiceenvINSTANT_PIPELINE_BACKENDExecution backend

Backend choices: local, thread, multiprocess, dask.

Resume is implicit when --fresh is not set.

validate

text
indw validate [pytest_args...]

Runs parity profile tests. Accepts additional pytest arguments.

Exit code 0 = all parity tests pass.

test

text
indw test [--profile PROFILE] [pytest_args...]
FlagChoicesDefault
--profileunit, critical, parity, integration, smokeunit

audit

text
indw audit [--kind KIND] [--work-dir PATH] [--workers N]
FlagChoicesDefaultDescription
--kindpipeline, dask, production, library, stage0pipelineAudit type
--work-dirPathWork dir (pipeline kind only)
--workersint4Workers (stage0 kind only)

benchmark

text
indw benchmark

Runs production_scale_audit.py with workers 1 and 2.

doctor

text
indw doctor

No flags. Prints version, platform, backend, and dependency status.

Environment variables

VariableAffectsDefault
INSTANT_PIPELINE_BACKENDmerge --backendmultiprocess
INSTANT_PIPELINE_EXECUTORBackend (legacy)
INSTANT_DASK_SCHEDULERDask address
DASK_SCHEDULER_ADDRESSDask address
INSTANT_MERGE_HW_PROBEWorker auto-tuning0

Precedence

  1. CLI flags (--backend, --workers, --fresh)
  2. Environment variables
  3. YAML quality profile
  4. Dataclass defaults

Exit codes

CodeMeaning
0Success
1Command failure (test failure, missing script, merge error)
2Argument parsing error

Pytest markers

Used by indw test profiles:

MarkerDescription
integrationCross-subsystem tests
slowLong-running tests
smokeEnd-to-end smoke
criticalProduction-critical coverage
propertyDeterministic invariants
benchmarkThroughput validation
certificationProduction certification
© 2026 Instant Developers. All rights reserved.