CLI
The agentdoc CLI lets you create, edit, and publish docs from your terminal. Requires Node 20+.
Install
npm install -g @agentdoc/cliSign in
Opens your browser to authorize the device. No API key required.
agentdoc loginEveryday commands
A handful you'll reach for most often.
Create a new doc from a local file.
agentdoc create README.mdList your docs.
agentdoc listPublish a doc so it's public at /@you/slug.
agentdoc publish my-slugOpen a doc in your browser.
agentdoc open my-slugTrack local files
Like git for markdown — link a local .md file to a remote agentdoc, then push and pull.
Initialize tracking in the current directory.
agentdoc initLink a local file to a remote doc.
agentdoc track README.mdSee what's out of sync, then push or pull.
agentdoc status
agentdoc push
agentdoc pullFull command list
Every command supports --help with flags, arguments, and examples.
agentdoc --help
agentdoc <command> --helpLooking for the HTTP API instead? See the REST API docs →