| title | Revdoku CLI |
|---|---|
| sidebarTitle | Command-line tool |
| description | Install the revdoku command-line tool to publish your portal, write articles and answer support tickets from your terminal or CI. |
revdoku works with your support portals from the terminal and CI jobs: connect GitHub, publish, and read and answer support tickets. It prints the JSON of the Revdoku API.
You need macOS, Linux or Windows with WSL, and Bash, curl, OpenSSL, jq, base64 and find. For example, install jq with brew install jq on macOS.
curl -fsSL https://github.com/revdoku/revdoku/releases/latest/download/install-cli.sh -o install-cli.sh
bash install-cli.sh
export PATH="$HOME/.local/bin:$PATH"
revdoku --versionThe installer checks the SHA-256 checksum of the executable before it installs it in ~/.local/bin. --dir /your/bin chooses another folder. To update, run the latest installer again.
To pin a version, download revdoku and SHA256SUMS from one release, and check the file before you run it:
test "$(openssl dgst -sha256 revdoku | awk '{print $NF}')" = "$(awk '$2 == "revdoku" { print $1 }' SHA256SUMS)" && chmod +x revdokurevdoku login # sign in in the browser
revdoku status # the account and the connection
revdoku ls # your projectsOn a server or in CI, set REVDOKU_API_KEY to an API key from the dashboard (Connect → Connect via API) in place of revdoku login.
Most commands work on one project. Pass --project-id prj_..., or set REVDOKU_PROJECT_ID.
# Find the docs folder, connect it, then publish.
revdoku github scan acme/docs --project-id prj_...
revdoku github connect acme/docs --repo-path docs --project-id prj_...
revdoku publish --project-id prj_...
revdoku site --project-id prj_...When the GitHub account is not connected yet, github connect prints the link that a person opens to install the Revdoku GitHub App.
revdoku tickets --status open --project-id prj_...
revdoku ticket-messages tkt_... --project-id prj_...
# The AI writes a draft from your docs. Nothing is sent.
revdoku ticket-draft tkt_... --project-id prj_...
revdoku ticket-reply tkt_... --text "Thanks! Here is how…" --project-id prj_...
revdoku ticket-update tkt_... --status solved --project-id prj_...| Command | What it does |
|---|---|
status |
The connection, the account, every account that the connection reaches (status.accounts) and the versions. accounts prints the same answer. |
account limits |
The limits of the plan and the credits. |
account create-client NAME |
Create a client account of an agency. --client-name names the client. |
| Command | What it does |
|---|---|
ls |
List projects. --status, --query, --limit and --cursor filter and page. |
create |
Create a project. --username names its site and support address, --title names the project. |
update |
Change --title or --description. |
archive, unarchive |
Archive or unarchive a project. |
| Command | What it does |
|---|---|
tickets |
List tickets, newest activity first. Filter with --status, --channel, --label, --updated-after TIME, --number N and --requester EMAIL. |
ticket ID |
Read one ticket. |
ticket-messages ID |
List the messages of a ticket. --message-id ID reads one message. |
ticket-draft ID |
Let the AI reply drafter write a reply, and wait for it. It sends nothing. --read shows the newest draft. |
ticket-reply ID |
Reply to the customer, with --text, --text-file or --html-file. --attach FILE_ID attaches a project file. |
ticket-update ID |
Change --status, --note (with --expected-note, the note that you read) or labels (--add-label, --remove-label). |
ticket-download ID |
Download an attachment (--message-id, --attachment-id) or the original email, to --output FILE. |
| Command | What it does |
|---|---|
webhook, webhook-set, webhook-delete |
Read, set (--webhook-url, --rotate-secret) or turn off the webhook of ticket events. |
events-subscription |
Get a short-lived token for live ticket events. |
| Command | What it does |
|---|---|
files |
List files. --folder _docs/guides lists one folder. |
read PATH |
Read a file. --output FILE saves it. |
versions PATH |
List the versions of a file. |
scan URL... |
Scan a website: the AI writes one docs page into _docs/ per page. --max-pages N limits them. --read shows the newest scan, --stop stops it. |
| Command | What it does |
|---|---|
publish |
Publish the site, and wait until it is ready. --support form|form_email|email|link|none and --support-link URL choose how visitors reach your team. |
preview |
Make a 24-hour preview. --branch NAME previews a branch of the connected repository. |
site |
Show the site: its address, status and republish_reasons. --preview shows the newest preview, --previews every preview with its branch. |
settings |
Show the site settings. |
settings set --file FILE |
Change the settings in a JSON file. null removes a setting. Then publish again. |
unpublish |
Take the site offline. |
{"layout": "notebook", "ask": {"title": "Questions"}, "primary_color": "#2563eb"}| Command | What it does |
|---|---|
github |
Show the connected repository and the status of its copy. |
github accounts, github repos ID |
The connected GitHub accounts, and the repositories of one. |
github setup-link |
Print the links that a person opens to add a GitHub account. |
github scan [OWNER/NAME] |
Find the docs folders of a repository. Nothing changes. |
github connect OWNER/NAME |
Copy a repository into the project. --repo-path, --branch. A project with files needs --project-files replace. |
github sync |
Sync now, and wait for the copy. |
github set --auto-publish false |
Publish by hand after each push. |
github branches |
List the branches that a preview can show. |
github disconnect |
Stop the sync. Confirm with --confirm-delete PROJECT_ID. The files stay. |
| Option | Meaning |
|---|---|
--project-id ID |
The project. Or set REVDOKU_PROJECT_ID. |
--account-id ID |
Another account that the connection reaches. |
--no-wait |
Answer at once, without waiting for background work. |
--api-key KEY |
An API key. Or set REVDOKU_API_KEY. |
revdoku --help lists every command and option.
Each command prints the JSON of the API on standard output. Notes for people go to standard error.
publish, preview, scan, github connect, github sync and ticket-draft start work in the background and wait for it. The exit code is 0 when it is ready, 1 when it failed and 2 when it still runs after 5 minutes. Read it later with site, github, scan --read or ticket-draft ID --read.
Commands that change something never retry by themselves. After an unknown result, read the resource before you run the command again. webhook-delete and github disconnect need --confirm-delete PROJECT_ID. A project or a ticket message is deleted in the dashboard.
Delete the revdoku executable. To also remove your saved sign-in, delete ~/.revdoku/. Your projects stay.
For AI apps, see the skill and plugin guide.