Skip to main content
This page mirrors the current docs build (v{STATUS.version} from the status snapshot). Tagged release binaries can lag main; nika --help remains the executable source of truth for the binary installed on your machine.

Core commands

CommandWhat it does
nika check <file>Static pre-flight audit before any run
nika run <file>Execute a checked workflow
nika inspect <file>Static anatomy: tasks, verbs, DAG, cost, permits
nika graph <file>Project the workflow graph as JSON, Mermaid, or DOT
nika explain <code>Explain a NIKA-XXXX error code
nika doctorDiagnose providers plus editor/agent readiness
nika init [dir]Scaffold schema wiring, AGENTS.md, and Cursor rules
nika wire <target>Explicitly wire MCP for cursor, vscode, windsurf, claude, or all
nika spec [--canon]Print the embedded spec or canon
nika schemaPrint the embedded JSON Schema
`nika examples listshowrun`Browse or run embedded examples
nika new --from <template> <dest>Instantiate an embedded workflow template
nika completions <shell>Generate shell completions
`nika trace replayshow`Replay or summarize a recorded run
nika lspRun the language server over stdio
nika mcpRun the read-only MCP server (nika_check, nika_explain)

Global flags

FlagCommandDescription
--jsoncheck, runMachine-readable output
--infer-permitscheckPrint the tightest inferred permits: boundary
--output jsonrunPrint typed workflow outputs as one JSON object
--dry-runrunPlan only; execute zero effects
--no-progressrunDeterministic non-animated render
--quietrunCompact final verdict card
`—format jsonmermaiddot`graphChoose graph projection
--forceinit, newOverwrite existing generated files

Environment variables

VarDescription
ANTHROPIC_API_KEYAnthropic provider
OPENAI_API_KEYOpenAI provider
GEMINI_API_KEYGoogle Gemini provider
MISTRAL_API_KEYMistral provider
GROQ_API_KEYGroq provider
DEEPSEEK_API_KEYDeepSeek provider
XAI_API_KEYxAI provider
OPENROUTER_API_KEYOpenRouter provider
The MCP server is intentionally read-only. It lets agents call nika_check and nika_explain; effectful execution stays behind nika run.