OrgSpec CLI
OrgSpec CLI is a standalone file utility for organisation structure data. It does not require an Orgonaut account for local commands.
Use it when you need to turn HR exports or spreadsheets into portable org-structure files, validate them, render diagrams, compare changes, or prepare data for Orgonaut.
OrgSpec 0.2 also describes the operating model around the chart: Work activities, business capabilities and measures, governed AI Solution versions, obligations, and deployments. It keeps people, agents, robots, structure, work, outcomes, and enabling solutions in one portable document. OrgSpec 0.3 adds optional, confidential costs.
Install
curl -fsSL https://app.orgonaut.co/orgspec/install.sh | sh
The installer detects macOS or Linux and installs the matching binary as orgspec.
Basic workflow
orgspec init --out org.orgspec.yaml
orgspec validate org.orgspec.yaml
orgspec render org.orgspec.yaml --format mermaid --out org.mmd
orgspec render org.orgspec.yaml --format svg --out org.svg
Import a CSV
orgspec import people.csv \
--mapping manager_email \
--format json \
--out org.orgspec.json \
--org-id acme \
--org-name "Acme Ltd"
Supported initial mapping presets are:
manager_emailmanager_iddepartment_path
Diff two org files
orgspec diff january.orgspec.json february.orgspec.json --format markdown --out org-diff.md
orgspec diff january.orgspec.json february.orgspec.json --format json --out org-diff.json
Diffs detect actor changes, actor-kind changes, unit moves, reporting changes, placement changes, and position or vacancy changes. For OrgSpec 0.2 files, diffs also report changes across Work, Capability, and Solution collections. When either file has costs (OrgSpec 0.3), the diff starts with the monthly cost before and after, per currency, and lists each changed cost line.
Costs
OrgSpec 0.3 adds an optional costs collection: salaries, day rates, AI agent running costs and budgets. Each line applies to exactly one actor, position or unit.
orgspec: "0.3"
costs:
- { id: band-backend-engineer, position: position-backend-engineer, type: salary, amount: 82000, currency: EUR, period: year }
- { id: cost-triage-agent, actor: triage-agent, type: agent_run_rate, amount: 600, currency: EUR, period: month }
- A person's own cost replaces the cost of the position they hold, so a seat is never counted twice.
- The cost of a position nobody holds is planned cost, not spend. Budgets are also kept apart from spend.
- Costs are confidential. Remove them before sharing a file with
orgspec strip org.orgspec.yaml --costs --out shared.orgspec.yaml. Exports leave them out unless you add--include-costs.
Work, Capabilities, and Solutions
Use orgspec: "0.2" when a document includes operating-model data. The main collections are:
work_categories,work_activities, andwork_assignmentscapabilities, contextualcapability_assessments, Work mappings, measures, and dated valuessolutions, immutable version specifications, claims, obligations, and contextual deployments
Each document represents one state or planning context. Scenario and snapshot IDs are intentionally excluded. A consuming tool decides whether the file becomes a Live model, a proposed scenario, or another comparison point.
A Solution is a reusable governed asset, not an actor. A deployment can reference an agent_actor when the exact solution version powers or supports an AI actor in the org model.
Import into Orgonaut
orgspec validate org.orgspec.yaml
Open Orgonaut, go to Imports, choose New Import, and upload org.orgspec.yaml directly. Canonical OrgSpec YAML is the primary import format. Canonical OrgSpec JSON is also supported.
The wizard validates the document and previews actor, unit, position, and placement counts before you choose the Live Baseline or a new scenario as the target:
- OrgSpec actor
personmaps to Orgonaut actorhuman agentandrobotactor kinds are preserved- units map to Orgonaut org units
- department and team units include metadata rows where applicable
- placements convert allocation ratios to percentages
- the target tenant and Live/scenario import context are supplied by Orgonaut, not stored inside the OrgSpec file
- stable OrgSpec IDs are retained so later imports update matching records
- unsupported protocol fields are retained as OrgSpec metadata
- OrgSpec 0.2 and 0.3 operating-model collections are validated and retained on the import run/bridge; the current structural importer does not yet materialize them into Work, Capability, and Solution records
- OrgSpec 0.3 costs on people and agents become their pay records. A cost on a position becomes its target pay, and the pay of anyone holding it who has no cost of their own. Unit budgets stay in the file. Costs without a start date count as already in effect
For existing automation, Orgonaut continues to accept the versioned bridge format:
orgspec export org.orgspec.yaml --format orgonaut --out orgonaut-import.json
orgspec export org.orgspec.yaml --format orgonaut --include-costs --out orgonaut-import.json
The bridge is an advanced compatibility payload, not the preferred manual upload. If an entity cannot be imported, Orgonaut quarantines the source record. Correct the canonical OrgSpec document, validate it, and import it again.
Versioned installs
Install the latest release:
curl -fsSL https://app.orgonaut.co/orgspec/install.sh | sh
Install a specific release:
curl -fsSL https://app.orgonaut.co/orgspec/install.sh | ORGSPEC_VERSION=v0.3.0 sh
Install to a user-writable directory:
curl -fsSL https://app.orgonaut.co/orgspec/install.sh | ORGSPEC_INSTALL_DIR=$HOME/.local/bin sh
Notes
- OrgSpec is a portable file format and CLI utility. It is distributed as a binary from Orgonaut-hosted release artifacts.
- Local commands do not make network calls.
- Scenario and snapshot concepts are intentionally outside the OrgSpec file format.
- Orgonaut bridge exports are import-preparation files, not the canonical OrgSpec schema.
Free tools on the website
The OrgSpec validator and Compare two org charts run this CLI's own validation and diff code in your browser, so their results match orgspec validate and orgspec diff. Bring your org chart builds OrgSpec 0.3 files from an HR export, a template or a description.