Skip to content
Connect an agent

Command reference

Command reference

Every command of the Plotwork command line, plotwork, with a page for each. The pages say the same as plotwork <command> --help, which prints the options, defaults, examples, and exit codes of one command in a terminal.

TL;DR

QuestionAnswer
How do I run a command?npx -y @buun_group/plotwork@0.10.0 <command>, with no install, or plotwork <command> once the package is installed. See Overview.
Which command keeps pictures in step?plotwork sync, and plotwork sync --check in CI.
Which commands read the repository settings?sync, validate, check, render, outline, generate, embed, publish. See Configuration.
What do the exit codes mean?0 all is well, 1 a problem in a diagram, 2 a mistake in the command line.
Where is the help in a terminal?plotwork --help lists every command; plotwork <command> --help prints one.

Commands

CommandWhat it does
plotwork syncDraw the pictures under every diagram fence of Markdown files; --check fails when one is stale
plotwork validateCheck every diagram of a Markdown or .diagram file; --strict also fails on warnings
plotwork checkCheck every diagram against a team's style rules; fails on a broken rule at level error
plotwork renderDraw the first diagram of a file, or a view link, to an SVG that carries its source
plotwork readPrint the source a Plotwork SVG, a view link, or a hosted link carries, to edit it
plotwork outlinePrint a plain-text outline of every diagram, to check what it says
plotwork generateMake the diagrams the settings' sources name from their files; --check fails on drift
plotwork import-sourceTurn SQL, OpenAPI, Terraform, Compose, CSV, a git log, and more into Plotwork source
plotwork importConvert Mermaid to Plotwork: a .mmd file, or every mermaid fence of a Markdown file
plotwork exportPrint paste-ready text of the first diagram for Confluence or Notion
plotwork embedPrint a snippet that shows a picture in a web page or a React app with the viewer @plotwork.official/viewer
plotwork publishSave every diagram of a .diagram or Markdown file to Plotwork, where your organisations' Publishing settings decide, and print the link
plotwork iconsSearch the bundled icons by name
plotwork board listList the live whiteboards the key may open, newest change first
plotwork board openShow a board: its tabs and their versions, who is on it now, and each tab's revisions
plotwork board pullWrite a tab's source to a file, and record the version it pulled beside it
plotwork board pushSend a file as the new source of a tab, against the version it was pulled at; a conflict is explained, never overwritten
plotwork board editChange a tab with typed edit operations, which the board rebases on the current source
plotwork board add-tabAdd a tab: an empty diagram of a kind, or the source of a file
plotwork board importImport a file, a hosted link, or a library diagram as a new tab, and print what the converter left out
plotwork board saveSave a tab to the organisation's library, as a new diagram or a new version of the one it came from
plotwork board revision createMake a revision of a tab to work in; main does not change until a person merges it
plotwork board revision listList a tab's revisions the key may see, with how far each is behind main
plotwork board revision compareSay what merging a revision would change on main, and the conflicts in the way
plotwork board revision request-mergeAsk for a revision to be merged; a person who manages the board merges or declines it
plotwork board watchPrint each change to a board, or one tab, as it happens; Ctrl-C stops it
plotwork board waitWait up to 25 seconds for a message from the member who connected the agent, as wait_for_board_messages does
plotwork board replyAnswer a message of the agent's own thread on a board

See also

DocWhy
Quick startThe first diagram, from install to a checked pull request
Exit codes and output formatsWhat every code and format means
Tool referenceThe same operations for an AI agent, over MCP