CLI reference

Every alkahest command at a glance.

Every command, one line each. Run alkahest <command> --help for flags and subcommands.

Core

CommandWhat it does
alkahest scanParse the source and build .alkahest/map.json (local, static analysis).
alkahest viewOpen the local map in your browser — no account needed.
alkahest login --token alk_…Link the CLI to your account (tokens: alkahest.app → Publish tokens).
alkahest publishUpload the map and get/update the shareable link. --map <slug> targets one of several code maps; --slug targets a project explicitly. Prints a "⏳ waiting on you" line when decisions or assignments await you.
alkahest updateUpdate the CLI to the latest release (--check to only look).

Issues

alkahest issues … — the dependency-first tracker from the terminal:

SubcommandWhat it does
pullList issues with derived state (ready / blocked / done / awaiting decision).
add <title>File an issue (--type, --status, --parent, --blocks, …).
status / priority / due / assignTriage fields.
done <id>Mark complete.
link / rmAdd or remove blocks / contains / relates edges.
map <id>Put an issue on an issue map, or take it off (--map <slug>, --remove).
comments <id>Read an issue's thread.
comment / reply / resolveWrite to the thread; resolve closes a decision question.

Notes

SubcommandWhat it does
notes add <title>Create a note (--body / --body-file markdown, --folder for a tree path).
notes list / showBrowse and read.
notes updateEdit title/body, move it in the tree (--folder / --unfile).
notes link <slug> <target>Connect a note to an issue:<id> or code:<node>. Note ↔ note links are just [[Title]] refs in the body — write them in the text.
notes map <note> --map <slug>Move a note to another notebook (a note lives on exactly one note map).
notes import <dir>Mirror a folder of Obsidian-style .md files — one note per file, frontmatter becomes properties, [[wikilinks]] render as links. Re-run to sync (guide).

Maps & projects

CommandWhat it does
alkahest maps list / createSee a project's maps, add one (`--type code
alkahest projectsList projects you can publish to.
alkahest historyThe publish timeline (versions + node diffs).
alkahest comments pullRead code-map comments from the terminal.

Agent plumbing

CommandWhat it does
alkahest mcpRun the MCP server — see Set up your agent.
alkahest hookPrint shell-hook helpers for agent integrations.