stockdesk-cli
v0.2.4
Published
StockDesk CLI and MCP server for custom Dashboard components.
Readme
stockdesk-cli
Public prerelease CLI and MCP server for StockDesk custom Dashboard components.
Install
npm install -g stockdesk-cli@latestCommands
stockdesk --version
stockdesk -V
stockdesk auth login
stockdesk auth logout
stockdesk auth whoami
stockdesk components render ./component.tsx --out ./preview.html
stockdesk components publish ./component.tsx --name "Demo Component"
stockdesk components delete COMPONENT_ID
stockdesk components add-to-desk COMPONENT_ID DESK_ID
stockdesk install skill
stockdesk mcpThe CLI defaults to https://stockdesk.app. It stores auth per StockDesk target
URL and automatically refreshes WorkOS access tokens with the saved refresh
token before API calls. Use the default target for production publishing:
stockdesk auth login
stockdesk components publish ./component.tsx --name "Demo Component"To switch accounts, log out of the selected target and then log in again:
stockdesk auth logout --stockdesk-url http://localhost:3000
stockdesk auth login --stockdesk-url http://localhost:3000Use stockdesk auth logout --all to clear saved auth for every target.
For local development against a bypass-enabled StockDesk dev server:
stockdesk auth login --dev-bypass --tier max --stockdesk-url http://localhost:3000--api-url is also supported. Both flags point to the StockDesk app server, not
to WorkOS.
Agent Skill
Install the bundled StockDesk: Components skill for Codex, Claude Code, and
Cursor:
stockdesk install skillInstall for one agent:
stockdesk install skill --agent codex
stockdesk install skill --agent claude
stockdesk install skill --agent cursor
stockdesk install skill --agent agentsBy default, the command errors if a target skill folder already exists. Use
--force to overwrite an existing install, --dry-run to preview paths, or
--scope project to copy into the current repo's agent skill folders instead
of user-level config. The shared Agent Skills directory is opt-in with
--agent agents or an explicit --agent all.
