CLI
Inspect Screendesk evidence from the terminal, scripts, CI, and coding agents.
The Screendesk CLI, sdesk, brings customer-reported debugging evidence into your terminal, scripts, CI jobs, and coding-agent workflows.
Give it a Screendesk recording or bug report URL to retrieve structured report details, console logs, network requests, user events, metadata, transcripts, screenshots, and video frames. Use the same commands manually while debugging or return compact JSON for a script or coding agent.
Use the CLI when you want explicit, repeatable commands that can be inspected, composed, rerun, and automated.
Fastest path: install sdesk, run sdesk auth login, then inspect a report URL.
The CLI calls the Screendesk Developer API directly. It does not wrap MCP, but it uses the same workspace permissions, redaction rules, and report services.
Install the CLI
Run the install command in Install.
Prefer an interactive investigation inside an AI client? Use Screendesk MCP.
Why use the CLI
The CLI closes the gap between a customer report and the repository where you will fix it. It is useful for:
Terminal-first debugging — inspect a report without switching between dashboards and developer tools;
Coding agents — give agents stable commands and machine-readable JSON instead of copied prose or screenshots;
Focused evidence retrieval — request only errors,
5xxresponses, a time range, a host, or another relevant slice of a large report;Cross-report investigation — search reports, find related failures, compare environments, and summarize recurring errors;
Repeatable triage — rerun the same query during an incident or across a release window;
Safe report updates — add comments or update bounded metadata with explicit confirmation and retry-safe idempotency keys.
CLI or MCP?
Screendesk CLI (sdesk)
Shell workflows, scripts, CI, reproducible queries, and command-oriented coding agents
Screendesk MCP
Conversational investigation in Claude Code, Codex, Cursor, VS Code, and other MCP clients
Both use workspace-scoped credentials, preserve Screendesk permissions, and apply the same redaction rules. Many teams use MCP for exploration and the CLI for repeatable or automated follow-up.
Install
The installer:
detects macOS or Linux;
supports
amd64andarm64;downloads the latest public release from the official
screendesk/cli-releasesrepository;verifies its SHA-256 checksum;
installs
sdeskto~/.local/binby default.
Verify the installation:
If your shell cannot find sdesk, add ~/.local/bin to your PATH and open a new terminal.
Authenticate
Browser OAuth is recommended for interactive use:
Your browser opens so you can select a workspace and authorize read access.
Request read-write access only when comments or report updates are needed:
Create a token from Personal Settings → MCP Access and enable Screendesk CLI.
Then run:
Paste the token when prompted. The token is read from standard input instead of a process argument.
Use a PAT for headless environments, CI, WSL, or systems where browser OAuth is unavailable.
For one process, provide a CLI-enabled token through SCREENDESK_TOKEN:
This overrides stored credentials for that process.
Check the active workspace:
Run diagnostics:
Install the coding-agent skill
The CLI includes a Screendesk skill that teaches Codex how to inspect reports, load evidence selectively, use structured JSON, and confirm writes.
Inspect the installed skill:
After installing the skill, give Codex a Screendesk URL and ask it to investigate. The skill guides the agent through report resolution, evidence retrieval, analysis, and safe writes.
A practical debugging workflow
1. Resolve the report
Start with the Screendesk URL from a support ticket, issue, or team message:
You can use either a full Screendesk URL or a report UUID. The response includes the report details, comments, linked issues, labels, assignees, and a summary of available evidence.
2. Inspect the failure
These focused queries are often the fastest route to a concrete failure. You can narrow evidence by text, timestamp, HTTP method, host, content type, event type, or status.
3. Reconstruct the user's path
Use events to recover clicks and navigation, metadata to reproduce the environment, the transcript to understand the user's intent, and existing analysis as another source of context.
4. Inspect what the user saw
Screenshots and sampled frames are downloaded as authenticated media so you or a multimodal coding agent can inspect the visible state at important moments.
5. Correlate the evidence with the codebase
Pass the JSON and downloaded media to your coding agent, or let an agent run the commands directly. Useful evidence-to-code connections include:
an exception message to the class or component that raises it;
a failed request URL to its route, controller, handler, or client;
a network response field to the parser or validation that consumes it;
the last user event to the UI action that initiated the failure;
a browser or device difference to compatibility-specific code.
Example request for a coding agent:
6. Check the scope of the issue
Once you have a likely signature, look beyond the original report:
This helps determine whether the issue is isolated, environment-specific, or a recurring regression.
Cross-report analysis
Find related reports
Results include explainable match reasons such as:
shared normalized error signatures;
matching source URL;
matching browser or operating system;
matching recording source;
shared labels.
Summarize recurring errors
The result contains normalized error signatures, occurrence counts, affected-report counts, and representative report links.
Compare reports
Compare between two and five reports:
Search the workspace
Search recordings and bug reports:
Useful filters include:
List folders and members:
Use the CLI in scripts and CI
Use --json whenever another program will consume the result. JSON output is stable to parse and avoids scraping terminal formatting.
For complete collections, add --all so the CLI follows every pagination cursor:
For headless environments, provide a CLI-enabled personal access token through the SCREENDESK_TOKEN environment variable. Keep the token in your CI provider's secret store and grant read-only access unless the job must perform a confirmed write.
Common automation ideas include:
list new error-bearing reports after a deployment;
summarize recurring console and network failures for incident review;
compare reports from before and after a release;
download evidence into an isolated debugging workspace;
feed structured report context into an internal coding-agent workflow.
Print the CLI's versioned, machine-readable command contract when an agent or integration needs to discover the available commands:
Update a report safely
CLI writes require:
a read-write CLI credential;
explicit
--yesconfirmation;an idempotency key.
Create a comment
Add a timestamped video comment:
Update report fields
Approved fields are:
title;
description;
folder;
labels;
assignees.
Reuse the same idempotency key when retrying the same uncertain write. Do not reuse a key for a different intended change.
Multiple workspace profiles
Authenticate a named profile:
List profiles:
Select the default:
Run one command against another profile:
Delete a profile and its stored credential:
JSON and pagination
Interactive terminal output is human-readable. Use --json for scripts and agents:
Collection responses use:
Follow every pagination cursor with --all:
Command reference
sdesk auth login
Authenticate with browser OAuth
sdesk auth login --token
Read a PAT from standard input
sdesk auth status
Show the active workspace and grant
sdesk auth logout
Remove stored credentials
sdesk get report
Get report details and evidence availability
sdesk get metadata
Get browser, device, network, and technical metadata
sdesk get console
Get filtered console logs
sdesk get network
Get redacted network requests
sdesk get events
Get captured user events
sdesk get transcript
Get timestamped transcript segments
sdesk get analysis
Get existing analysis
sdesk get screenshots
Download screenshots and thumbnails
sdesk get frames
Generate or download sampled video frames
sdesk list reports
Search accessible reports
sdesk list folders
List accessible folders
sdesk list members
List active workspace members
sdesk find related
Find related reports with match reasons
sdesk analyze recurring-errors
Aggregate recurring error signatures
sdesk compare reports
Compare two to five reports
sdesk create comment
Create a confirmed comment
sdesk update report
Update approved report fields
sdesk doctor
Diagnose profile, credential, and API connectivity
sdesk skills install
Install the bundled Codex skill
sdesk upgrade
Install the latest checksummed release
sdesk uninstall --yes
Remove the CLI executable
sdesk version
Print the CLI version
Upgrade or remove
Upgrade:
Uninstall:
Security
OAuth and PAT credentials are bound to one workspace.
Stored credentials use the operating system credential store when available.
The fallback credential file uses restrictive permissions.
Network credentials, cookies, sensitive headers, and URL parameters are redacted.
Private folder and report permissions are preserved.
CLI access is audited without storing evidence bodies or credentials.
Report output may include workspace member, reporter, customer, comment author, and linked-issue details that the signed-in user can already access.
Exact visitor IP addresses are not returned.
Tokens should never be printed, committed, or passed as command-line arguments.
Troubleshooting
sdesk is not found
Add ~/.local/bin to your PATH, then restart the shell.
Authentication fails
If the grant was revoked, authenticate again.
The wrong workspace is active
A report returns not found
The active profile may point to another workspace, or your user may not have access to the report's folder.
A write command is forbidden
Authenticate with read-write access:
PAT users must create a token with Screendesk CLI → Read and write access.
Last updated
Was this helpful?