Installation
Archidocs is one command-line tool, archidocs, published to npm. The same package runs the checks, the viewer and the MCP server.
Requirements
Section titled “Requirements”- Node.js 22.18 or later. Run
node --versionto 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.
Install
Section titled “Install”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:
npm install --global archidocsAs a dev dependency, from the Workspace repo’s root:
npm install --save-dev archidocsRun a dev dependency with npx, as in npx archidocs check.
Globally:
pnpm add --global archidocsAs a dev dependency, from the Workspace repo’s root:
pnpm add --save-dev archidocsRun a dev dependency with pnpm exec, as in pnpm exec archidocs check.
There is nothing to install. Put npx before each command, as in npx archidocs check. The first time, npx downloads the latest version. It then runs that copy from its cache. npx archidocs init pins the version it ran in the commands it writes for agents, as in npx -y archidocs@1.2.0 mcp.
To run one version, name it:
npx archidocs@1.2.0 checkCheck the install
Section titled “Check the install”archidocs versionarchidocs 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:
archidocs version --format json{"version":"1.2.0","schemaVersion":1}Upgrade
Section titled “Upgrade”Install again with the package manager you used:
npm install --global archidocs@latestFor a dev dependency, drop --global and run it from the Workspace repo’s root.
pnpm add --global archidocs@latestFor a dev dependency, drop --global and run it from the Workspace repo’s root.
npx keeps running the copy in its cache, even after a new release. To fetch the newest release, name it:
npx archidocs@latest versionThen run archidocs init again from the Workspace repo’s root:
archidocs initIt 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.mdUpdated .claude/skills/archidocs-authoring/SKILL.mdUpdated .github/skills/archidocs-authoring/SKILL.md
Check the server your coding agent will start:
archidocs mcp --workspace archidocs --checkThe Changelog lists what changed in each version. Upgrading says what a version number promises, and how to upgrade CI at the same time.
Pin a version in CI
Section titled “Pin a version in CI”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.
- uses: chalharb/archidocs@v1 with: version: 1.2.0When version is empty, the Action runs the version it was checked out at. See the GitHub Action reference.
include: - remote: https://raw.githubusercontent.com/chalharb/archidocs/v1/templates/gitlab/archidocs.gitlab-ci.yml inputs: version: 1.2.0The template runs latest when version is not set. See the GitLab template reference.
Uninstall
Section titled “Uninstall”npm uninstall --global archidocsFor a dev dependency, drop --global.
pnpm remove --global archidocsFor a dev dependency, drop --global.
Nothing is installed. npx keeps its copy in the npm cache, and npm clears old entries on its own.
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.