Skip to content

Installation

Archidocs is one command-line tool, archidocs, published to npm. The same package runs the checks, the viewer and the MCP server.

  • Node.js 22.18 or later. Run node --version to see yours.
  • git. A Workspace, the repo that holds the whole architecture, is a git repo. Archidocs reads its history to show past Revisions, the Workspace as it was at a commit.

You don’t have to install it: npx archidocs runs it on demand. Install it globally to use a bare archidocs in any repo. Or add it as a dev dependency of the Workspace repo, so everyone who clones the repo runs the same version.

archidocs init writes the agent skill and prints the MCP server command in the form that runs in your repo: npx archidocs when package.json lists archidocs, npx -y archidocs@<version> when you ran init through npx or pnpm dlx, and a bare archidocs from a global install. Run init again after you change how you install it.

Globally:

Terminal window
npm install --global archidocs

As a dev dependency, from the Workspace repo’s root:

Terminal window
npm install --save-dev archidocs

Run a dev dependency with npx, as in npx archidocs check.

Terminal window
archidocs version
archidocs 1.2.0 (Bundle schemaVersion 1)

The first number is the CLI’s version. The Bundle schemaVersion is the version of the Workspace Bundle format. That is the JSON file that archidocs build writes for the viewer. For scripts, add --format json:

Terminal window
archidocs version --format json
{"version":"1.2.0","schemaVersion":1}

Install again with the package manager you used:

Terminal window
npm install --global archidocs@latest

For a dev dependency, drop --global and run it from the Workspace repo’s root.

Then run archidocs init again from the Workspace repo’s root:

Terminal window
archidocs init

It rewrites the agent skill files that the new version changed, and adds any setup that is missing. It leaves your Model alone. When the skill changed, it prints:

Updated .agents/skills/archidocs-authoring/SKILL.md
Updated .claude/skills/archidocs-authoring/SKILL.md
Updated .github/skills/archidocs-authoring/SKILL.md
Check the server your coding agent will start:
archidocs mcp --workspace archidocs --check

The Changelog lists what changed in each version. Upgrading says what a version number promises, and how to upgrade CI at the same time.

Both CI templates take a version input, the npm version of archidocs to run. Pin it so that a new release changes your pipeline only when you change the input.

.github/workflows/architecture.yml
- uses: chalharb/archidocs@v1
with:
version: 1.2.0

When version is empty, the Action runs the version it was checked out at. See the GitHub Action reference.

Terminal window
npm uninstall --global archidocs

For a dev dependency, drop --global.

Uninstalling leaves the Workspace’s files in place: the archidocs/ folder, and the agent skill files that archidocs init wrote.

  • Quick start: from an empty repo to your first System in the viewer, in about five minutes.

Documents the beta branch at cd98671, ahead of the latest release, v1.4.0.