Appearance
CLI
The CLI is intentionally small: inspect the contract, review the generated resource contracts, then write files.
bash
archora-forge init
archora-forge doctor ./openapi.yaml
archora-forge inspect ./openapi.yaml
archora-forge validate ./openapi.yaml
archora-forge diff ./openapi.yaml
archora-forge lint ./openapi.yaml
archora-forge contract-diff ./old-openapi.yaml ./new-openapi.yaml
archora-forge generate ./openapi.yamlCommands
initcreatesarchora-forge.config.tswith default or supplied output folders.doctorchecks config discovery, schema loading, output paths, health score and diagnostics. It summarizes all configuredinputswhen no schema argument is passed.inspectprints schema summary, detected resources, health score and warnings.validatechecks that the schema can be parsed and normalized.diffshows create/update/protected file counts without writing files.lintreports frontend generation readiness diagnostics.contract-diffcompares old/new contracts and reports affected generated files.generatewrites the frontend resource contract files.
Flags
--dry-runprints the generation result without writing files.--schema-header <name:value>adds a one-off request header when loading remotehttp:///https://schemas; repeat it for multiple headers.doctor --jsonprints a machine-readable project readiness summary.doctor --report-file <path>writes the readiness summary as JSON.inspect --report-file <path>writes the inspection summary as JSON.validate --report-file <path>writes the validation summary as JSON.lint --report-file <path>writes the frontend readiness report as JSON.diff --jsonprints a machine-readable file plan for CI and automation.diff --report-file <path>writes the file plan as JSON.generate --jsonprints a machine-readable write summary; combine it with--dry-runfor report-only automation.generate --report-file <path>writes the generation summary as JSON.init --forceoverwrites an existing starter config;generate --forceis reserved for generated flows that opt into protected custom files.check --min-health-score <score>fails CI when the OpenAPI health score is below the supplied threshold.init --input <path>sets the starter OpenAPI schema path.init --output <path> --features <path> --mocks <path>sets starter output folders.init --validation none|zod|valibotenables generated validation schemas in the starter config.inspect --jsonincludes resource names, entities, CRUD operation ids and missing CRUD operations.check --report markdown|json --report-file <path>writes a CI artifact report.
When a command is run with --json, command-level failures are reported as { "ok": false, "error": "..." } and exit with code 2. Successful JSON payloads for readiness and generation commands include ok: true.
For local repository development before publishing:
bash
node packages/cli/dist/index.js inspect test/fixtures/openapi/basic-crud.yaml