Developers

CLI reference

The pandadesk command line: login, the skill, and every MCP tool as a command.

pandadesk is a small command-line tool with no dependencies (Node.js 18 or newer). Every tool on the PandaDesk MCP server is a command, and the list comes from the server, so the CLI always matches the MCP tools.

Install and log in

npx pandadesk login            # paste a token from Connect your AI agent in the dashboard
npx pandadesk login --token pda_…

The token and host are saved in ~/.config/pandadesk/config.json, readable only by you. PANDADESK_TOKEN and PANDADESK_HOST environment variables override them, and so do --token and --host on any command. That's useful in CI, or for a self-hosted PandaDesk.

Built-in commands

Command What it does
pandadesk login [--token …] [--host …] Save a token after checking it works
pandadesk logout Forget the saved token
pandadesk tools List every command
pandadesk <tool> --help Show a command's options
pandadesk skill install [--dir …] Install the PandaDesk skill for Claude Code (~/.claude/skills/pandadesk)
pandadesk mcp claude-code / cursor Print the setup to connect that agent with your saved token
pandadesk --version Print the CLI version

Passing arguments

Options match the tool's arguments. --brand-color, --brand_color and --brandColor all set brandColor. Numbers, booleans, arrays and objects are read as JSON. You can also pass all the arguments at once with --json.

npx pandadesk update_appearance --workspace my-app --brand-color "#4f46e5" \
  --starter-questions '["What does it cost?","Talk to someone"]'

npx pandadesk add_website --json '{"workspace":"my-app","url":"https://docs.example.com/sitemap.xml"}'

Output is the tool's JSON result. Add --raw for compact JSON (handy with jq). Errors print to stderr and exit with status 1.

Examples

# Set up a site
npx pandadesk create_workspace --name "Acme" --website https://acme.com
npx pandadesk add_website --workspace acme --url https://docs.acme.com
npx pandadesk get_knowledge_status --workspace acme
npx pandadesk get_embed_code --workspace acme
npx pandadesk check_install --workspace acme --url https://acme.com
npx pandadesk test_question --workspace acme --question "How do I reset my password?"

# Work the inbox (Pro)
npx pandadesk list_conversations --workspace acme --status needs_reply
npx pandadesk get_conversation --workspace acme --conversation-id <id>

All commands

Command Plan What it does
list_workspaces All The PandaDesk workspaces (one per website/app) this token can use, with plan, setup progress, whether the chat is live, and the public key.
create_workspace All Create a new workspace (one per website or app): its own knowledge, chat, inbox and help center.
get_setup_status All Where a workspace is in setup (basics, knowledge, a first AI answer, allowed website, chat live), the plan, and what to do next..
update_workspace All Change the workspace's name (shown in the chat header and help center unless overridden)..
allow_website All Let the chat run on a website origin (scheme + host + port, e.g.
remove_website All Stop the chat from loading on a website origin..
update_security All Signed-identity mode (report_only shows unsigned names as Unverified; enforced drops them), the most AI answers this workspace gives per day (default 500; 0 turns AI answers off, so every question goes to the team), and the countries the chat is turned off for (two-letter codes like PK; the messenger doesn't appear there; [] clears the list)..
get_identity_secret All The secret your backend uses to sign who is logged in (see get_embed_code → signedInUsers).
get_signing_secret All The secret that proves a request came from PandaDesk: every lookup call and webhook carries a PandaDesk-Signature header made with it.
get_appearance All Brand color, greeting, bot name and avatar, header text, starter questions, and the bubble (icon, shape, label, corner)..
update_appearance All Change any part of the chat's look; fields you leave out stay as they are.
set_chat_image All Use an image from a public https URL as the bot avatar (kind avatar) or the chat bubble icon (kind launcher, which also switches the bubble to it).
get_embed_code All The script tag to add the chat to a site, ready-made for HTML, Next.js, React, WordPress, Shopify and site builders, plus optional signed-in-user code for the browser and the server (Node and Python)..
check_install All Fetch a page of the site and check the PandaDesk snippet is there with this workspace's key, the origin is allowed, and whether the chat has actually loaded for a visitor on an allowed site.
list_teammates All People with access to this workspace's inbox and their role (admin or agent).
invite_teammate All Email someone a link to join this workspace's team.
set_teammate_role All Make a teammate an "admin" or an "agent".
get_knowledge_status All Show what the AI can answer from and how imports are going: website sources (status, pages, last sync, errors), file and text documents by status, failed documents with their errors, articles and pinned answers, and how many passages are searchable and embedded for search by meaning.
add_website All Crawl a docs site, help center or marketing site (or a sitemap URL) so the AI can answer from its pages.
resync_website All Crawl a website source again now (it also re-syncs daily on its own).
remove_source All Remove a website source (or the team-replies source) and every page imported from it.
add_text All Add a document from text you already have (Markdown or plain text): an FAQ, a policy, product notes, a README.
add_file_from_url All Download a PDF, DOCX, Markdown or TXT file (up to 10 MB) from a public URL and add it as knowledge, as if it were uploaded in the dashboard.
list_documents All List imported documents (crawled pages, files, text, approved team replies), newest first, optionally filtered by status or source..
get_document All Read one imported document's full text as the AI sees it (a text or file document, a crawled page or an approved team reply).
update_document All Change a text or file document in place, keeping its id: pass edits (each find must appear exactly once and is replaced) for a small change, or content to replace the whole text.
retry_document All Process a document again: a failed page is fetched again, a file re-extracted (if its upload is still held) or re-chunked from its text..
delete_document All Remove one imported document and its passages.
list_articles All List the workspace's help-center articles (published and drafts), with their public URLs..
get_article All Read one help-center article in full (Markdown body)..
create_article All Write a help-center article.
update_article All Change an article's title, body, collection, slug or status.
delete_article All Delete a help-center article.
list_pinned_answers All List pinned answers: exact official answers to specific questions.
save_pinned_answer All Create (no id) or update a pinned answer: the exact reply the AI gives when a customer asks this question (or close to it).
delete_pinned_answer All Delete a pinned answer..
list_unanswered_questions All Questions customers asked that the AI couldn't answer from the knowledge, most asked first.
dismiss_unanswered_question All Remove a question from the unanswered list (e.g.
search_knowledge All Run the same search the AI agent runs for a customer question and return the passages it would see (pinned answers first).
set_learn_from_replies All Turn on or off proposing knowledge from resolved conversations the team answered.
list_knowledge_proposals All Knowledge proposed from resolved conversations, waiting for approval.
approve_proposal All Approve a knowledge proposal, optionally with an edited title and content.
reject_proposal All Discard a knowledge proposal..
get_agent_settings All Read how the AI agent is configured: response guidelines (tone and style), guardrails (things it must not do) and scenarios (playbooks for specific situations)..
update_agent_settings All Change the AI agent's guidelines, guardrails and scenarios.
list_lookups All List lookups: HTTP endpoints on the customer's own backend the agent can call to fetch a signed-in customer's data (an order's status, their plan).
save_lookup All Create (no lookup_id) or update a lookup the agent can call.
delete_lookup All Delete a lookup.
test_lookup All Call a lookup's endpoint the way the agent would, with the arguments you give and as a given signed-in customer (their user id from your backend), and return the HTTP status, the response the agent would read, and the exact request sent (URL, body and headers, signature included; your auth header masked).
test_question All Ask the real AI agent a question as a customer would, with the current knowledge, settings and lookups, without creating a conversation.
list_conversations Pro List conversations in the inbox, most recent activity first.
get_conversation Pro Read one conversation: the customer and their contact record, the page they chatted from, the AI summary, every message in order, reply drafts waiting for approval, and the team's private notes (never shown to the customer).
search_help_center All Search the workspace's published help-center articles and pinned (official) answers, e.g.
create_draft_reply Pro Propose a reply to a customer.
send_reply Pro Send a reply to the customer now, as the token's owner.
set_conversation_status Pro Resolve, reopen, mark pending (waiting on the customer) or snooze a conversation.
assign_conversation Pro Assign a conversation to a teammate by email, to "me" (the token's owner), or unassign it with null.
label_conversation Pro Add or remove a label on a conversation, by name.
add_note Pro Add a private note for the team to a conversation or a contact.
list_contacts Pro People who chatted, most recently seen first.
get_contact Pro One contact by id or email: identity, last visit (page, browser, local time), their conversations, and the team's private notes about them..
block_contact Pro Blocked contacts' new chat messages are refused with a polite notice.
get_report Pro How the AI and the team handled conversations started in the last 7, 30 or 90 days: conversations, share handled by the AI alone, median first team reply and time to resolve (seconds), AI answers, unanswered questions, lookups, CSAT, a per-day breakdown, and conversations by channel (widget, WhatsApp, Instagram, Messenger)..
list_webhooks All The workspace's webhooks: URL, subscribed events, whether it's on, and the last delivery result..
add_webhook All POST signed JSON events to an https URL when something happens in a conversation.
delete_webhook All Stop sending events to a webhook and remove it..
get_business_hours All When the team is in (time zone and weekly hours), the away message, and auto-close (hours of quiet before a conversation is resolved)..
set_business_hours All Set the team's hours: enabled, an IANA time zone, open/close per weekday (24-hour HH:MM; leave a day out to close it), and an optional away message.
set_agents_can_send All Turn on or off whether connected AI agents (MCP and CLI) may send replies to customers directly with send_reply.
shopify_status All List the Shopify stores connected to this workspace: products synced, last sync, errors, and whether order status is on.
shopify_sync All Re-sync a connected Shopify store's products now (they also sync daily, and on every product change through webhooks)..
list_integrations All List the integrations this workspace can use (Shopify, WooCommerce, Stripe, Cal.com, Calendly, Slack), whether each is connected, its settings (never its key), and any error that needs a reconnect..
connect_stripe All Connect Stripe with a restricted key (rk_live_… or rk_test_…; Read on Customers, Subscriptions, Invoices and Products, Write on Customer portal).
connect_calcom All Connect Cal.com with an API key and pick the event type customers book (its id from the returned eventTypes).
connect_calendly All Connect Calendly with a personal access token and pick the event type (its uri from the returned eventTypes).
connect_slack All Post alerts to a Slack channel through an incoming webhook URL (https://hooks.slack.com/services/…).
disconnect_integration All Disconnect an integration by kind.
list_forms All List the lead forms the AI agent can show in the chat (show_form), with their fields, when to use each, and how many were sent..
save_form All Create a lead form (or update one by id).
delete_form All Delete a lead form by id.
get_store_status All The workspace's connected stores (WooCommerce through the WordPress plugin): products synced, last sync, errors, and connected WordPress sites without a store yet.
sync_store_products All Re-sync a connected WooCommerce store's products now (runs in the background; check get_store_status).
list_channels All The WhatsApp numbers, Instagram accounts and Facebook pages connected to the workspace, with any error (e.g.
get_channel_status All One connected channel's health (by channel_id from list_channels), or for a conversation (conversation_id) which channel it's on and whether Meta's 24-hour window is open: outside it, replies can't reach the customer on WhatsApp, Instagram or Messenger until they write again..

Full arguments for each command are in the MCP tools reference.