Workspace CLI

These commands act on the whole workspace. Create a new one, check what changed, lint or sync every app and library at once, or make a machine-token key.
Create a new workspace with its first app, agent rules and MCP config.
Sync, lint, typecheck and build what changed in one run, printing only what failed.
Format and lint one app, library or package with Biome.
Sync every app and library, then lint every app, library and package.
Run akan sync on every library, then on every app.
Make the Ed25519 key a server signs machine tokens with.
Words Used On This Page
workspace root
The repo's top folder, the one holding package.json, tsconfig.json and an apps/, libs/ or pkgs/ folder.
sync
Rescans an app or library and rewrites its generated files. akan sync <app|lib> does one.
Biome
The formatter and linter Akan uses. Its rules live in biome.json at the workspace root.
Which One To Run
The upkeep commands differ in scope and in which checks they run.
Command
sync
lint
typecheck
build
What changed
verify
✓
✓
✓
✓
You or an agent finished an edit. It checks what git reports as changed.
One target
lint
✓
✓
You changed one app, library or package. A package is linted without a sync.
Whole workspace
lint-all
✓
✓
Before a wide check, where generated files, app code and libraries must agree.
sync-all
✓
Generated files look stale, or you changed the shared workspace setup.
✓Runs itSkips it

create-workspace

Create a new workspace and its first app in one go. It runs these steps in order:
  1. Write the workspace files into <dir>/<workspaceName>, with --registry saved to .npmrc.
  2. Run bun install. --init false skips it.
  3. Install the util and shared libraries, only with --libs true.
  4. Create the first app, named by --app.
  5. Write the agent rules and the MCP config. --agent-install and --mcp-install turn them off.
  6. Make the first git commit. If git fails, the workspace still works; commit by hand.
It ends by printing the next step: cd <dir>/<workspaceName> && akan start <app>.
Signature
Arguments
workspaceNameStringrequired
Organization or workspace name, lowercased with spaces as hyphens. Asked for when omitted.
Options
--appStringrequired
Name of the first app, lowercased with spaces as hyphens. Asked for when omitted.
--dirStringdefault .
Parent folder, relative to where you run it unless absolute. Defaults to local if USE_AKANJS_PKGS=true.
--libsBooleandefault false
Also install shared and util. Leave it off, as recommended, to start from an empty workspace.
--initBooleandefault true
Run bun install once the files are written.
--registryStringdefault https://registry.npmjs.org
npm registry for the Akan packages, saved to .npmrc. AKAN_NPM_REGISTRY sets the default.
--ownerStringdefault $GITHUB_OWNER
GitHub owner of the repo. When set, README.md gets an Open in GitHub Codespaces badge.
--mcp-installBooleandefault true
Register the Akan MCP server for Cursor, Claude Code and Codex in their project config files.
--agent-installBooleandefault true-A
Write AGENTS.md, CLAUDE.md and .cursor/rules/akan.mdc for coding agents.
Notes
where to run
Any folder works, because this command creates the workspace root.
MCP config files
Cursor reads .cursor/mcp.json, Claude Code .mcp.json, and Codex .codex/config.toml.
framework version
There is no --tag. Move a workspace to another release channel with akan update --tag <tag>.
create-akan-workspace
bunx create-akan-workspace installs the matching @akanjs/cli globally, then runs this command.
Examples

verify

Check a change in one run: sync, lint with fixes, typecheck, a fast build of each changed app, and the SSR check for a .tsx change. It prints one line when everything passes and one line per problem otherwise, so it is the one command to run after an edit.
Signature
Arguments
targetsString
Apps, libraries or packages, comma-separated, checked whole. Left out, what git reports as changed.
Options
--filesString-F
Check these files, comma-separated, instead of the git changes.
--lint-onlyBooleandefault false
Lint only, the quick pass between edits: no sync, typecheck, build or SSR check.
--buildBooleandefault true
Build each changed app once lint and typecheck pass. --no-build leaves it out.
--maxNumberdefault 20
How many problem lines to print. 0 prints every one.
--formatStringdefault texttext | json
json prints the whole result as one JSON line.
Notes
output
One verify ok line on a pass; on a failure, file:line:col CODE message per problem.
fixed N files
Lint rewrote those files on disk, so read them again before the next edit.
repeated problems
The same code and message in several places prints once, with (×N: …) listing where.
warnings
Print after the errors and never fail the run, the SSR check's included.
akan.comment.added
A warning per code comment added since the last commit, so each one gets a second look. --lint-only skips it.
build
Skipped while lint or typecheck reports an error.
exit code
0 passes, 1 fails, and 2 means a target is not in the workspace.
Examples

lint

Format and lint one app, library or package with Biome. Fixes are written by default, and an app or library is synced first. After Biome come the three checks under Notes.
Signature
Arguments
app|lib|pkgStringrequired
App, library or package name. Picked from a list when omitted.
Options
--fixBooleandefault true
Write the formatter and lint fixes. With --fix false it only reports.
--max-diagnosticsNumberdefault 200
How many diagnostics Biome prints before it truncates. 0 removes the limit.
Notes
theme contrast
Fails when a color pair in page/styles.css misses the WCAG contrast threshold.
recipes
Fails when a recipe in ui/Recipe has no variant or flag to choose.
agent index
Fails when the recipe index in an app's or library's AGENTS.md is stale. akan sync fixes it.
Examples

lint-all

Sync every app and library, then lint every app, library and package. Each one gets the same checks as lint. Run it before a wide check where generated files, app code and shared libraries must agree.
Signature
Options
--fixBooleandefault true
Write the formatter and lint fixes. With --fix false it only reports.
--max-diagnosticsNumberdefault 200
How many diagnostics Biome prints before it truncates. 0 removes the limit.
Examples

sync-all

Run akan sync on every library, then on every app. Use it when generated files look stale, or after a change to the shared workspace setup.
Signature
Examples

machine-keygen

Write a new Ed25519 private key for machine tokens to <out> and print its public key. The server that issues tokens takes the private key as AKAN_MACHINE_PRIVATE_KEY; one that only verifies them takes AKAN_MACHINE_PUBLIC_KEY.
Signature
Arguments
outStringrequired
File the private key is written to, with mode 600. An existing file is refused, never overwritten.
Examples

Rules Every Command Shares

  • Run from the workspace root. Every command here except create-workspace runs from the folder holding package.json, tsconfig.json and an apps/, libs/ or pkgs/ folder.
  • Boolean options. --fix on its own means true. To turn an option off, give the value: --fix false.
  • Short flags. Each option also answers to its first letter (-f for --fix) unless its row shows another letter, such as -A.
  • Verbose output. -v shows the output of each process the command runs, which a spinner normally hides.
Related Pages

Released under the MIT License

Connect your AI to these docs

MCPhttps://akanjs.com/mcp
Copyright © 2026 Akan.js All rights reserved.System managed bybassman