archec commands
Every command of archec, by group, with what it does and an example.
Each group's page in commands/ gives the options and more examples.
archec help --all prints the same list, and archec help <command> one command's usage.
Start#
The options of these commands are on the Start page.
| Command | What it does | Example |
|---|---|---|
archec new |
a new project that checks clean, from a template or a store package; with --kind, one that already builds and runs its tests (--first-run again later) | archec new my-node --kind firmware |
archec env |
the development environment from the model: the tools the project needs, which are here (doctor), and mise.toml, a Makefile, package lists and a devcontainer that install them | archec env doctor |
archec help |
this help: help --all, help <command> | archec help check |
archec config |
what may leave this machine: ai offline | local-ai | online, allow and deny a service; offline by default | archec config allow store https://store.arche-lang.xyz |
Write and check#
The options of these commands are on the Write and check page.
| Command | What it does | Example |
|---|---|---|
archec check, archec lint |
lint: errors, warnings and hints; exit 1 on an error | archec check main.arche --strict |
archec fix |
the preferred fix of each diagnostic, applied and checked again | archec fix main.arche --dry-run |
archec explain |
what a diagnostic code means; the codes by area | archec explain unresolved |
archec suggest |
what the store's shelves already have for what the model writes by hand: a PID, a debounce, a Vec3, a device — and the lines to add | archec suggest main.arche |
archec vet |
style findings, as go vet | archec vet main.arche |
archec fmt, archec format |
format, in the short standard spellings | archec fmt main.arche --write |
archec edit |
one element's properties or label, changed in its file | archec edit main.arche Rover.ctrl --set period 10ms |
archec review |
advice from Claude on the traces (sends model text out) | archec review main.arche --dry-run |
archec live-fix |
why a live item fails, and the model edits that fix it, from Claude | archec live-fix REQ-1 main.arche --dry-run |
archec mcp |
the compiler as an MCP server on stdio, for AI agents | archec mcp |
archec lsp |
the language server on stdio, for an editor or an agent that speaks LSP | archec lsp --stdio |
archec convert-handlers |
the model's handlers rewritten in TypeScript, Python or the action language | archec convert-handlers main.arche --to typescript --dry-run |
archec stubs |
Arche's helpers and the model's names for editors, in .arche/typings | archec stubs main.arche |
archec patterns |
the language reference: one page, or a page per group (--docs) | archec patterns --docs docs |
archec ast |
dump the syntax tree (debugging) | archec ast main.arche |
Build and test#
The options of these commands are on the Build and test page.
| Command | What it does | Example |
|---|---|---|
archec build |
compile to an Arche project folder | archec build main.arche -o arche-out |
archec pull |
code edited in the Arche app, back into the sources it came from | archec pull main.arche --write |
archec test, archec run |
build and run the test plans with arche-cli | archec test main.arche --coverage |
archec sim |
run the behaviour with nothing installed: the trace | archec sim main.arche --for 10s --html sim.html |
archec physics |
a physical network sorted, solved and run | archec physics main.arche Plant --for 1s --print x,v |
archec fit |
a network's parameters from measured data; --pass: the tunables until the tests pass | archec fit main.arche Motor data.csv --params R,L |
archec difftest |
the simulator and the generated C on the same random inputs | archec difftest main.arche --steps 50 |
archec where |
an Arche error position, mapped to its source line | archec where main.arche "(Controller › Control loop, line 4)" |
archec ci |
what a pipeline checks, in one command | archec ci main.arche --strict --junit report.xml |
archec validate |
an Arche project's YAML against the schema | archec validate arche-out |
archec diff |
two projects compared as data | archec diff old/main.arche main.arche |
Analyse#
The options of these commands are on the Analyse page.
| Command | What it does | Example |
|---|---|---|
archec analyze, archec analyse |
timing of each deployment: core load, response times, chains | archec analyze main.arche |
archec timing |
measured traces beside the timing analysis | archec timing main.arche trace.json |
archec verify |
the model checker on each requirement's formal property | archec verify main.arche |
archec why |
a run explained: its timeline, or why an event happened — back to the reading behind it, with model lines and timings | archec why main.arche --test TC-HOT "fan Running" |
archec why-not |
why a transition or an event never happened in a run: its state never active, its trigger never sent, its guard never true | archec why-not main.arche --test TC-HOT "Cooling -> Idle" |
archec replay |
the real system's logs, checked against the model | archec replay main.arche candump.log |
archec live |
the living model: a running system's requirements pass or fail | archec live main.arche --replay traces/ |
archec profile |
each profile worked out: what every phase draws, each stock's level over the timeline, the requirements' limits on them |
archec profile main.arche --svg build/ |
archec queueing |
each queueing model run as a discrete-event simulation: waiting times, queue lengths, utilisation and throughput over the runs, the requirements' limits on them |
archec queueing main.arche --svg build/ |
archec population |
each population run and measured: how many instances in each state, each variable's mean and percentiles across them, the requirements' limits on them |
archec population main.arche --for 1h |
archec study |
a study over the parameters' tolerances | archec study main.arche worst_case |
archec safety |
hazards, fault trees, FMEA and STPA | archec safety main.arche |
archec tara |
the cybersecurity risk assessment (ISO/SAE 21434) | archec tara main.arche |
archec parts |
stock, prices and lifecycle of the BOM's part numbers | archec parts main.arche --offline |
archec merge |
three-way merge by declaration, for git | archec merge base.arche ours.arche theirs.arche |
archec observe |
how the running system behaves, from its traces (OTLP, Jaeger, Zipkin) | archec observe traces.json --states -o observed.arche |
archec cad |
each component's geometry (cad "box.py", build123d) built to STEP, STL and GLB, measured, placed, and checked against the requirements' limits and clearances |
archec cad main.arche |
archec synth |
the FPGA components synthesised, placed and routed for the model's device (Yosys, GHDL, nextpnr): LUTs, flip-flops, fmax against the clock, the requirements' limits | archec synth main.arche |
archec query |
the model asked as a graph: the elements of a kind, what a relation links (pump feeds T2, P1 feeds ?), narrowed by a condition |
archec query main.arche "pump feeds T2" |
archec infra |
what OpenTofu or Terraform would change, or found changed, on the model's elements; a plan that destroys data refused; a state read into a model | archec infra plan main.arche --plan plan.json --dir out/openstack |
Present#
The options of these commands are on the Present page.
| Command | What it does | Example |
|---|---|---|
archec animation, archec animations |
Arche's animation templates; one previewed or rendered | archec animation list |
archec ui |
the product's user interface as archec resolves it: screens, bindings, presses; --json the model | archec ui main.arche --json |
archec app |
the Arche app (the visual editor) on the .arche sources: YAML built from them, saves written back | archec app main.arche |
archec story, archec stories |
a story as one HTML file | archec story export main.arche demo -o demo.html |
archec site |
the whole project as one HTML file: code, requirements, diagrams, generated code, a simulation; offline | archec site main.arche -o project.html |
Requirements#
The options of these commands are on the Requirements page.
| Command | What it does | Example |
|---|---|---|
archec baseline, archec changes |
freeze the requirements; what changed since | archec baseline main.arche --name v1.0 |
archec approve |
sign-off: who approved an element, at which content | archec approve main.arche REQ-1 --as alice |
archec approvals |
the approvals, current or stale | archec approvals --stale |
archec issues |
failing cases and unverified requirements as issues | archec issues sync main.arche --dry-run |
archec status |
each requirement, what satisfies it, where it is built, and what proves it today: current, out of date or nothing | archec status main.arche --req REQ-FAN |
archec cert |
the trace matrix a standard asks for, and its gaps | archec cert main.arche --standard iso26262 |
archec qualify |
the tool-qualification kit for the archec features you rely on (ISO 26262-8, DO-330) | archec qualify --use check,gen-c --asil C -o qualification |
archec polarion |
a Polarion project's work items as requirements, from an export or the server (pull); the tagged ones sent back (push), new ones created and renamed to their Polarion ids (new: the next draft id) | archec polarion pull main.arche |
archec reqif |
the requirements to and from ReqIF 1.2 | archec reqif main.arche -o requirements.reqif |
archec doc, archec latex |
the specification: LaTeX, a web page, Markdown or your template | archec doc main.arche -o spec.html |
archec diagram |
a view, system, state machine or scenario as Mermaid, D2 or SVG | archec diagram main.arche --list |
Generate#
The options of these commands are on the Generate page.
| Command | What it does | Example |
|---|---|---|
archec gen, archec generate |
source code from the model, by --target | archec gen main.arche --target embassy -o generated |
archec generator, archec generators |
a code generator of your own | archec generator new my-gen --templates |
archec plugin, archec plugins |
the plugins found and what each brings: generators, importers, exporters | archec plugin list main.arche |
archec fmi |
an FMI 2.0 co-simulation FMU of the equations | archec fmi main.arche Plant -o fmu --build |
archec kicad |
a system's wiring as a KiCad netlist | archec kicad main.arche -o board.net |
archec sysml |
the architecture in SysML v2 text | archec sysml main.arche -o model.sysml |
archec export |
the resolved model as JSON, or a file of another tool by a plugin's exporter | archec export main.arche -o model.json |
archec api |
the model over the SysML v2 REST API | archec api serve main.arche --port 9000 |
archec capella |
a Capella project, or a Capella model in arche-lang | archec capella main.arche -o capella-out |
archec database, archec db |
the model's databases: their layout, what changed since a baseline, a git revision or a file, and the migration each provider writes from it; destructive changes marked, not applied | archec database migrate main.arche --since v1.0 |
Import#
The options of these commands are on the Import page.
| Command | What it does | Example |
|---|---|---|
archec import |
an Arche project, FMU, SysML v2 model, CAN DBC, ASN.1 types, robot, Python functions, a table as elements of a kind, or what a plugin reads, in arche-lang | archec import robot.urdf -o robot.arche |
Refactor#
The options of these commands are on the Refactor page.
| Command | What it does | Example |
|---|---|---|
archec refactor |
rewrites that keep the project the same: move-traces, move-definition, translations… | archec refactor move-traces main.arche --dry-run |
archec refactor <name> runs one of these:
| Refactor | What it does | Example |
|---|---|---|
move-traces |
each trace written apart, moved to where it starts | archec refactor move-traces main.arche --dry-run |
name-components |
a component named by its Arche id gets a name from its label | archec refactor name-components main.arche --dry-run |
translations |
the inline texts of a language moved into one translations file | archec refactor translations main.arche --extract en |
extract-component |
a component moved into the component library | archec refactor extract-component main.arche Rover.lidar --name Lidar |
rename |
an element renamed everywhere, and your code in the generated C, Rust and Go carried to the new name | archec refactor rename main.arche Brake.apply press |
move-definition |
a top-level definition (a component, a message, a requirement…) moved to another file, new or not, and included | archec refactor move-definition main.arche Pump --to parts/pump.arche --dry-run |
Code and model#
The options of these commands are on the Code and model page.
| Command | What it does | Example |
|---|---|---|
archec recover |
a model of existing code: parts from folders, names and coupling, links from imports | archec recover src -o recovered.arche |
archec conform |
the code's imports against the model's links: convergence, divergence, absence | archec conform main.arche --src . |
archec arch-diff |
the architecture of two revisions compared: parts, links, files moved; or two variants of a product line (main.arche --variant A --against B) | archec arch-diff src main..HEAD --md |
archec impact |
why each part of a diff exists: hunk → part → functions → requirements and tests; hunks no part names; the architecture change | archec impact main..HEAD --md |
archec brief |
one part's context before changing it: its interface, neighbours, requirements and tests, files, regions, budgets; --task for archec guard | archec brief main.arche Rover.ctrl --md |
archec agent-context |
the architecture, allowed dependencies and conventions, between markers in CLAUDE.md or AGENTS.md | archec agent-context main.arche -o CLAUDE.md |
Libraries#
The options of these commands are on the Libraries page.
| Command | What it does | Example |
|---|---|---|
archec lib, archec libs |
the libraries a project uses; lock, fetch | archec lib main.arche lock |
Boards#
The options of these commands are on the Boards page.
| Command | What it does | Example |
|---|---|---|
archec board, archec boards |
the known boards: list, show, add, new, check, extract | archec board list |
archec device, archec devices |
the store's devices and their drivers: list, show, add | archec device list --family i2c |
archec pins |
each board's pin map, and the pin plan's warnings | archec pins main.arche |
Store#
The options of these commands are on the Store page.
| Command | What it does | Example |
|---|---|---|
archec store |
the Arche Store: search, publish, outdated, serve… | archec store search lidar |
archec add |
a store package, checked and signed, into the project | archec add main.arche acme/lidar@^1 |
archec audit |
every piece of code, and where it came from | archec audit main.arche |
archec publish |
the same as archec store publish | archec publish ./my-board --dry-run |
archec search |
the same as archec store search | archec search lidar |
archec shelf, archec shelves |
the store's shelves of ready-made pieces, each with the same card: list, show, add | archec shelf units |
Provenance#
The options of these commands are on the Provenance page.
| Command | What it does | Example |
|---|---|---|
archec provenance |
who wrote the code: archec gen, an AI assistant or a person, by part and file | archec provenance main.arche --since main~10 |
archec guard |
an assistant's edit or a commit checked against the model: its part, generated code, links, approvals | archec guard install |
archec debt |
comprehension debt by part: AI-written, untraced, not signed off, and who knows it | archec debt main.arche --since main~20 |