Connecting an Agent

Command reference

Every mapwright command, for whenever you want to look something up.

You won't need most of this. Once your AI assistant is connected (see getting started), it runs these commands on your behalf, you don't have to type them yourself. This page is here for whenever you're curious what it's actually doing, or want to try something directly.

Every command also works with a --json flag at the end, which prints the result in a format built for programs rather than people. You can safely ignore that unless you're scripting something yourself.

Getting connected

CommandWhat it does
mapwright auth loginConnects using a key from your account's API Keys page
mapwright auth logoutDisconnects this device
mapwright auth whoamiShows which account you're connected as
mapwright init --project "<name>"Links the current folder to an existing project
mapwright project create "<name>"Creates a brand new project, with its starting map already in place, and links to it
mapwright projectsLists every project on your account
mapwright statusChecks that everything is connected properly

Working with the map

CommandWhat it does
mapwright mapShows the full map as a tree
mapwright search "<query>"Finds anything on the map matching your search, including inside specs
mapwright feature create "<title>" --category featuresAdds a new card to the map, the same as clicking "+ Add Card" in the app
mapwright feature update <card-id> --summary "..."Updates an existing card's summary or notes

Working with specs

CommandWhat it does
mapwright prd <feature-id>Reads an existing spec for a feature
mapwright prdsLists every spec across the whole project
mapwright prd sync <spec-id> --file <path>Replaces a spec's content with an edited version from a file

Generating a brand new spec isn't on this list on purpose. That's a browser-only action, explained in getting started.

Working with the task list

CommandWhat it does
mapwright tasksLists every task in the project, in build order
mapwright task nextShows the single next task to work on
mapwright task update <task-id> --status in_progressUpdates a task's status, priority, or estimate