Commands
Reference for the two Kiira CLI commands: kiira check, which validates your Markdown code fences, and kiira init, which scaffolds a config.
Overview
The Kiira CLI exposes a single binary, kiira, with two commands:
kiira [check] [files...] [options]kiira initcheck is the default command, so running kiira with no command runs a check.
kiira check
Validates the TypeScript/JavaScript code fences in your Markdown files. This is the command you run locally and in CI.
# Check everything matched by your config's `include`kiira check# Equivalent — check is the default commandkiiracheck resolves which files to scan from (in order of precedence) the --entry flags, then any positional file arguments, then the include globs in your config. It extracts every ts / tsx / js / jsx fence, compiles each one against your project types, and reports diagnostics on the matching Markdown line.
Common invocations:
# Limit the scan to specific pathskiira check --entry docs --entry README.md# Exclude a folderkiira check --entry docs --ignore docs/api# Use a specific config and machine-readable outputkiira check --config kiira.config.ts --reporter jsonSee the Flags page for the full list of options, and Exit codes for how results map to process exit codes.
kiira init
Scaffolds a starter configuration so you can get checking immediately:
kiira initIt writes two files:
kiira.config.ts— a config usingdefineConfigfromkiira-corewith a sensibleinclude.tsconfig.docs.json— a TypeScript config used when compiling your snippets. Kiira automatically prefers this overtsconfig.jsonwhen it's present.
Run init once when you first add Kiira to a project, then switch to kiira check for everyday use.
Help and version
kiira --help or -hkiira --version or -v