Skip to content

CLI commands

The CLI commands for publishing, source work, access, and authentication.

On this page

Use the dsp CLI to create, inspect, update, organize, and share files from a terminal or script. For files in Spaces, start with the file, folder, and space commands. See Spaces and files for the complete workflow. Run dsp --help to see the commands in your installed version.

To install the CLI, sign in, and publish your first file, see Publish from your terminal.

--actor-type and --actor-name are global flags for regular CLI commands. The tables document them under publish and share to keep this page readable. The dsp mcp server is the exception: it gets agent identity from the connected MCP client instead of these flags or their environment variables.

For regular CLI commands, use --client-source <name> to label the distribution that sends a request. This flag does not change access.

Organization policy can reject Public publishing or new outside recipients. In that case, choose Company or Private, remove outside recipients, or ask an Owner to change the setting in Organization Security. The CLI does not expose commands for changing those controls. See Organization artifact access.

publish

$ dsp publish [path]

Publish an HTML or Markdown file. Use a single dash for stdin (requires --id).

FlagValueDescription
--name <name>stringDisplay name override. Optional – defaults to the filename without the extension on first publish. On update (with --id), renames the artifact and re-derives the slug.
--id <shortId>stringUpdate an existing artifact (bumps to the next version).
--base-version <n>positive integerRequired with --id. Pass the current artifact version you edited from.
--publicbooleanMake the artifact publicly accessible (alias for --visibility public).
--companybooleanRestrict the artifact to your organization (alias for --visibility company). Organization-scoped service keys use this default.
--visibility <level>public | company | privateVisibility level. User-scoped publishes default to private; organization-scoped service publishes default to company. Private is available on every plan.
--share <email>repeatable stringInvite a person by email. May be passed multiple times.
--share-with <emails>comma-separated stringSame as repeated --share, in one flag.
--clear-sharesbooleanRemove every invited email address (update only).
--theme <theme>string (default github)Markdown theme. Ignored for HTML publishes.
--reloadbooleanRefresh open viewer tabs when the new version is ready. Off by default – viewers instead get a Refresh to vN action they can dismiss. An open comment form delays automatic refresh until it is no longer active and is empty.
--actor-type <type>human | agentOverride the auto-detected actor classification. The CLI infers human when a stdio handle is a TTY, agent otherwise; flip it when a human is piping output or a custom script wants to declare agent identity. Equivalent env var: DISPLAYDEV_ACTOR_TYPE. See Actor for what each value means.
--actor-name <name>ASCII string ≤128 charsDisplay name stamped on the artifact's version history alongside the actor classification (e.g. claude-code@1.0.45, ci-deploy-bot, manual-cleanup-batch-3). Equivalent env var: DISPLAYDEV_ACTOR_NAME.

If dsp runs without a saved credential or DISPLAYDEV_API_KEY, publish returns a preview URL plus a single-use claim URL – see Publish without an account.

When updating an artifact, fetch the current baseline with dsp get-metadata <shortId>. Use dsp search <query> --in <shortId> and dsp read <shortId> to inspect the source, then use dsp edit for one exact replacement. Use dsp export when you need the complete local file and dsp publish --id when you need to replace the complete source.

An update must keep the format established for the artifact. Use a .md file for a Markdown artifact and a .html file for an HTML artifact. Publish a new artifact when converting between Markdown and HTML.

make-copy

$ dsp make-copy [shortId][@version]

Make an independent copy; a short ID uses server defaults.

FlagValueDescription
--name <name>stringName for the new artifact. Defaults to Copy of <source name>.
--visibility <level>public | company | privateVisibility for the new artifact. Defaults to the source artifact's current visibility.
--share <email>repeatable stringInvite a person to the new artifact. May be passed multiple times.
--share-with <emails>comma-separated stringSame as repeated --share, in one flag.
--jsonbooleanWrite the copy result and selected source version as one JSON value.

Append @<version> to copy a retained historical version. Without it, the command copies the current version. The new artifact starts at version 1 without discussions. People invited to the source are not carried over; only addresses passed with --share or --share-with are invited to the copy.

A short ID alone uses server defaults: current version, Copy of <source name> and source visibility. Pass --visibility private for a private copy. An eligible public artifact from another organization can be copied on every plan, using only its current version. --json includes sourceVersion, the version actually copied. Confirm the active destination first; the same operation key cannot be reused with a different destination or inputs. A not-found result can mean missing or unavailable content. See Make a copy for browser recovery.

share

$ dsp share [shortId]

Legacy sharing command. Use dsp file share, change-access, or remove-access for Space files.

The server refuses the legacy sharing command. Use Spaces sharing to manage access.

FlagValueDescription
--visibility <level>public | company | privateLegacy visibility selector.
--add-users <emails>comma-separated stringLegacy addition list.
--remove-users <emails>comma-separated stringLegacy removal list.

At least one of --visibility / --add-users / --remove-users must be provided.

rename

$ dsp rename [shortId]

Rename a published artifact. The slug re-derives from the new name; old URLs still resolve via shortId.

FlagValueDescription
--name <name> (required)stringNew display name.

list

$ dsp list

Browse artifacts in your organization without a text query.

FlagValueDescription
--author <a>repeatable stringFilter by author. Each value can be an email, user ID, or me. Multiple values are ORed. me requires a user-scoped credential – passing it under an organization API key is rejected.
--visibility <list>comma-separated public | company | privateFilter by visibility. Only private artifacts you created appear.
--since <date>ISO date-timeOnly artifacts updated on or after this point.
--sort <col>updated_at | view_count | nameSort column. Defaults to updated_at.
--dir <direction>asc | descSort direction. Defaults: desc for updated_at / view_count, asc for name.
--cursor <token>opaque stringPagination token from a prior response. Drop the cursor when filters change.
--limit <n>integer 1–100Max rows to return. Defaults to 50.
--jsonbooleanWrite the stable JSON response.

Output is one row per line on stdout (shortId vN name url). When more pages are available, stderr prints a ready-to-run continuation command while stdout stays clean for pipes.

$ dsp search [query]

Search Spaces files by text or filters, or legacy artifact names. Use --in for exact legacy source text.

FlagValueDescription
--organization-id <id>organization IDChoose one permitted organization for cross-file search. You cannot combine it with --in. It never widens the credential's access.
--in <shortId>shortId or shortId@versionSearch exact legacy source text inside one artifact. Append a version to pin it. Use dsp file search for a native file.
--cursor <token>opaque stringContinue a date-sorted Spaces search or a legacy name search. Keep the query and refinements the same.
--location-id <id>Up to 20 comma-separated Space or folder IDsSearch any selected location and its descendants. Use either this flag or --space-id.
--space-id <id>Space IDFilter Spaces search to a visible Space.
--type <mime>MIME typeFilter Spaces search by file type. text/markdown includes Markdown documents uploaded as TextPack.
--modified-after <timestamp>UTC date and timeInclude files modified at or after this time.
--modified-before <timestamp>UTC date and timeInclude files modified before this time.
--created-by <user-id>user IDFilter Spaces search by original creator.
--sort <order>relevance, modified-desc, or modified-ascChoose the order for Spaces search.
--offset <bytes>non-negative integerContinue a legacy source search. Requires --in.
--limit <n>positive integerRequested maximum results. Legacy name search accepts 1–100. Legacy source search returns at most 50 matches per page. Spaces applies its own bounded result limit.
--jsonbooleanWrite the response as one JSON value.

In Spaces organizations, a cross-file query searches file names and indexed text. Use 2–200 characters: literal words, final-word prefixes, or quoted phrases.

Omit the query when a Spaces location, creator, type, or date filter is set. Filter-only searches default to modified-desc and accept either modification order. Check dsp search --help for --location-id if your CLI rejects folder scope.

bash
dsp search "quarterly plan" --location-id <folderId>
dsp search --location-id <folderId>,<anotherFolderId> --type text/markdown --json

Results include current file IDs, URLs, available excerpts and indexing coverage. Relevance shows a bounded set. For more pages, sort by modification date and pass the returned cursor with the same query, filters and limit. Narrow the query if results are limited and there is no cursor. A recent save or move can take time to appear. Read a result with dsp file read <fileId>.

Legacy organizations retain name search and its returned continuation cursor. With --in, search finds literal legacy source text and returns byte offsets, line hints, and bounded context. Continuation pins that artifact's numbered version. Do not pass IDs from Spaces to --in. Do not retry a Spaces failure as legacy search.

find

$ dsp find [query]

Deprecated compatibility command. Use dsp list to browse or dsp search to search.

find keeps the previous optional-query behavior for existing scripts and prints a migration notice to stderr. New scripts should use list or search.

get-metadata

$ dsp get-metadata [shortId]

Print artifact metadata, retained versions, the current heading outline, and open comment threads as JSON.

The command has no command-specific flags. Sections you cannot read are omitted. Use dsp read for bounded source context.

dsp get-metadata <shortId> returns artifact metadata, retained versions, the heading outline, and open threads when permitted. It replaced the former dsp get <shortId> --include versions command.

read

$ dsp read [shortId]

Print one bounded UTF-8 source range. Pin a version by appending @ and a number, e.g. dsp read abc123@2.

FlagValueDescription
--offset <bytes>non-negative integerZero-based UTF-8 byte offset. Defaults to 0.
--limit <bytes>integer 4–262144Maximum bytes returned. Defaults to 65536.
--jsonbooleanWrite content and continuation metadata as JSON.

Without --json, stdout contains only source text. Progress and the version-pinned continuation command go to stderr.

edit

$ dsp edit [shortId]

Publish a new version by replacing one exact, unique source passage.

FlagValueDescription
--base-version <n> (required)positive integerCurrent version that the edit is based on.
--old <text>stringExact source passage to replace. Use either this flag or --old-file.
--old-file <path>pathRead the exact source passage from a UTF-8 file. Useful for multiline text.
--new <text>stringReplacement text. An empty string deletes the old passage. Use either this flag or --new-file.
--new-file <path>pathRead replacement text from a UTF-8 file.
--jsonbooleanWrite the stable JSON response.

The old passage must occur exactly once. Both values are limited to 262144 UTF-8 bytes. If a newer version was published, inspect that version with read or scoped search, reconcile the change, and retry with its version number.

export

$ dsp export [shortId]

Print the published source bytes to stdout. Pin a version by appending @ and a number, e.g. dsp export abc123@2.

FlagValueDescription
--format <format>original | markdown (default original)original returns the bytes as published. markdown converts an HTML artifact to Markdown.

export is the complete-file path for local CLI workflows. Remote MCP uses bounded read instead.

delete

Display rejects the legacy deletion command. To free storage in Spaces, use dsp space delete-trash for items already in Trash. To keep an item restorable during the Trash retention window, use dsp file trash or dsp folder trash.

$ dsp delete [shortId]

Legacy deletion command. Use dsp file trash for Space files.

FlagValueDescription
--confirmbooleanRequired to submit the legacy request.

login

$ dsp login

Authenticate with Display – email code, single sign-on device flow, or API key.

FlagValueDescription
--email <email>stringEmail address. Required for email-code or single sign-on in non-interactive runs; not used with --api-key.
--code <code>6-digit stringEmail code. Pair with --email.
--api-key [key]string (optional value)Authenticate with an API key. Without a value, prompts (TTY) or reads stdin (non-TTY).
--jsonbooleanMachine-readable structured output instead of prose.

whoami

$ dsp whoami

Show the account and organization for the active credential.

Use dsp whoami --json in scripts. The result includes user with its ID and email, organization with its ID and name, membership with its role, and keyType (user or org). For an organization key, user and membership are null. If the command fails, it exits nonzero and prints the error to stderr.

mcp

$ dsp mcp

Start the MCP server over stdin/stdout. Your agent starts this process – you don't run it yourself. See MCP server for host configuration.

No additional flags. The server's behavior depends on whether the CLI has a saved credential. It gets agent identity from the connected MCP client's name and version. See MCP tools.

Authentication

The CLI reads (in order):

  • DISPLAYDEV_API_KEY – environment variable. Highest precedence.
  • The saved session written by dsp login.

Set DISPLAYDEV_ACTOR_TYPE (human or agent) and DISPLAYDEV_ACTOR_NAME to declare actor identity once across regular CLI invocations, equivalent to passing --actor-type and --actor-name. The CLI infers --actor-type from whether a stdio handle is a TTY; override when a human is piping output or a script wants to declare an agent. dsp mcp ignores these settings and uses the connected MCP client's identity.

Exit codes

  • 0 – success.
  • 1 – generic failure (auth invalid, server error, network issue).
  • 2 – usage error (missing required flag, malformed argument).
  • 3 – plan limit reached (gated artifacts or storage); the upgrade link is printed.
  • 4 – artifact not found or no permission.

space

Space and folder contents accept --sort name|modified|format|owner and --dir asc|desc. format sorts the displayed Type label, including labels for arbitrary file formats; --type remains a separate filter. Only Name keeps folders first, in either direction. Equal Type or Owner values follow Name in the selected direction, and missing owners stay last.

Space and folder child lists also support --sort createdBy for the displayed creator name. Use --dir asc or --dir desc. Equal creator names follow item Name in that direction. Unknown creators stay last. This option is not available in Home, Shared with me, the Space directory, or Trash.

Home (dsp file list --view home) and Shared with me (--view shared-with-me) also accept format and owner. dsp file list returns files only. Use dsp folder find --view home for Home folders, or --view shared-with-me for shared folders. The dashboard Home shows suggested templates and 10 ordinary Recent files. Its Recent page shows the full ordinary-file collection. The unfiltered Home agent collection still includes folders. Shared with me mixes folders and files. The Space directory, Trash and fixed-order name search retain their existing sort choices. Pass each cursor back with the same query. If it is rejected after an item changes or becomes inaccessible, restart without a cursor.

Use --created-by <userId> to filter by the original creator. This works with dsp space list-contents, dsp folder list, dsp file list in Home or Shared with me, and dsp folder find in Home or Shared with me. Add --include-creators to include a creators array of accessible creator choices across all matching pages, before the creator filter. Each choice has userId, name, and image. Use its userId for --created-by; remove the cursor when changing the creator. Items with no recorded creator match an unfiltered list. Creator filtering is unavailable in the Space directory, Trash, and fixed-order name search.

$ dsp space

Browse and manage Spaces

CommandInputs and options
dsp space create--name <name> (required); --idempotency-key <key> (required)
dsp space list-admin--deleted <boolean>; --cursor <cursor>; --limit <number>
dsp space list-members <spaceId>--cursor <cursor>; --limit <number>
dsp space add-member <spaceId>--user <id>; --email <email>; --group <id>; --role <role> (required); --idempotency-key <key> (required)
dsp space change-member-role <grantId>--role <role> (required); --if-match <etag> (required); --idempotency-key <key> (required)
dsp space remove-member <grantId>--if-match <etag>; --idempotency-key <key> (required)
dsp space list--sort <column>; --dir <direction>; --cursor <cursor>; --limit <number>; --type <type>; --query <text>
dsp space get <spaceId>No command-specific options.
dsp space list-contents <spaceId>--sort <column>; --dir <direction>; --cursor <cursor>; --limit <number>; --type <type>; --query <text>; --modified-after <timestamp>; --modified-before <timestamp>
dsp space get-settings <spaceId>No command-specific options.
dsp space rename <spaceId>--name <name> (required); --idempotency-key <key> (required)
dsp space set-header-visibility <spaceId>--value <value> (required; inherit, open or collapsed); --idempotency-key <key> (required)
dsp space set-members-only <spaceId>--enabled <boolean> (required); --idempotency-key <key> (required)
dsp space delete <spaceId>--confirm; --idempotency-key <key> (required)
dsp space delete-with-contents <spaceId>--confirm; --idempotency-key <key> (required)
dsp space restore <spaceId>--idempotency-key <key> (required)
dsp space list-trash <spaceId>--sort <column>; --dir <direction>; --cursor <cursor>; --limit <number>
dsp space delete-trash <spaceId> [itemIds...]Choose item IDs or --all. Use --preview to review. Confirmation requires --confirm, --if-match <etag>, and --idempotency-key <key>.
dsp space list-key-access <spaceId>--cursor <cursor>; --limit <number>; --json
dsp space allow-key <spaceId>--api-key <id> (required); --role <role> (required); --idempotency-key <key> (required); --json
dsp space change-key-access <grantId>--if-match <etag> (required); --role <role> (required); --idempotency-key <key> (required); --json
dsp space revoke-key <grantId>--if-match <etag>; --idempotency-key <key> (required); --json

A named person with current Manager access to the Shared Space can manage its key grants. An organization role alone is insufficient. --api-key takes a known organization-key ID, not its secret. A replacement key needs its own grant.

Permanently delete items from Trash

  1. Preview the items you want to delete.

    bash
    dsp space delete-trash <spaceId> <itemId> --preview

    To preview the entire Space Trash, use --all instead of item IDs.

  2. Review the eligible items, exclusions, and storage to free. The preview returns an ETag in etag. Keep this value for confirmation.

  3. Confirm the same Space and selection.

    bash
    dsp space delete-trash <spaceId> <itemId> --confirm \
      --if-match '"<etag-value>"' \
      --idempotency-key <request-key>

    Replace <etag-value> with the text between the returned ETag's double quotes. Keep the outer single quotes and the inner double quotes. These shell quotes preserve the exact ETag when the CLI reads it. If you previewed with --all, confirm with --all instead of item IDs.

After an error or uncertain response:

  • If the result is uncertain, retry within 24 hours with the same Space, selection, ETag, and request key.
  • If the preview is stale, review a new preview before confirming.
  • If deletion is paused for recovery, request a new preview after the pause ends.

Run dsp space --help for descriptions. Subcommands also provide offline --help.

Set a Space default with dsp space set-header-visibility <spaceId> --value collapsed --idempotency-key <key>. Use dsp file set-header-visibility for a document exception. The value inherit removes the explicit setting. For a Space, inherit uses Open. For a file, inherit uses its Space's default.

Inspect the setting with dsp space get-settings <spaceId> or dsp file get <fileId>. These commands return three fields:

  • headerVisibility: the configured choice, either inherit, open or collapsed.
  • defaultHeaderVisibility: the value that applies when the configured choice is inherit.
  • effectiveHeaderVisibility: the value after applying the configured choice to the default.

A reader's saved browser choice takes precedence over effectiveHeaderVisibility. See Header visibility.

folder

$ dsp folder

Browse and organize folders

CommandInputs and options
dsp folder get <folderId>No command-specific options.
dsp folder list <folderId>--sort <column>; --dir <direction>; --cursor <cursor>; --limit <number>; --type <type>; --query <text>; --modified-after <timestamp>; --modified-before <timestamp>
dsp folder create--parent-id <id> (required); --name <name> (required); --preview; --operation <operation>; --initial-grants <json>; --idempotency-key <key>
dsp folder rename <folderId>--name <name> (required); --idempotency-key <key> (required)
dsp folder list-access-requests <itemId>--cursor <cursor>; --limit <number>
dsp folder request-access <itemId>--role <role>; --message <message>; --idempotency-key <key> (required)
dsp folder share <itemId>--email <email>; --user <id>; --organization; --anyone; --api-key <id>; --group <id>; --role <role> (required); --discoverable <boolean>; --idempotency-key <key> (required)
dsp folder get-access <itemId>--cursor <cursor>; --limit <number>
dsp folder change-access--access-ref <json> (required); --if-match <etag> (required); --idempotency-key <key> (required); --role <role>; --discoverable <boolean>
dsp folder remove-access--access-ref <json> (required); --if-match <etag>; --idempotency-key <key> (required)
dsp folder find [nameQuery]--sort <column>; --dir <direction>; --cursor <cursor>; --limit <number>; --view <view>; --shared-by <userId>; --query <text>; --type <type>; --modified-after <timestamp>; --modified-before <timestamp>; --organization-id <id>
dsp folder trash <itemIds...>--idempotency-key <key> (required); --confirm
dsp folder restore <itemIds...>--idempotency-key <key> (required)
dsp folder copy <itemIds...>--parent-id <id> (required); --idempotency-key <key> (required); --initial-grants <json>; --json
dsp folder move <itemIds...>--parent-id <id> (required); --preview; --if-match <etag>; --idempotency-key <key>; --json

Run dsp folder --help for descriptions. Subcommands also provide offline --help.

file

$ dsp file

Create, inspect, search and edit native Space files

File and folder sharing accepts viewer, commenter, contributor, or editor. Contributors create and edit within the existing audience. Editors also manage people, groups, Company access, link access, and discovery, subject to sharing rules. Manager is assignable only at a Shared Space root. Existing direct file and folder Managers become Editors. Inherited Space Managers retain their role.

If sharing or request review is denied, ask an Editor or Space Manager to handle it. Do not change credentials or increase your own access to bypass the denial.

Use dsp file create to create a file in My Space, or supply --parent-id for a specific destination. Use dsp file update to replace its source without changing its name or access. Rename it separately with dsp file rename:

bash
dsp file get <fileId>
dsp file update <fileId> ./report.html \
  --content-type text/html \
  --base-revision <revisionId> \
  --idempotency-key <updateKey>
dsp file rename <fileId> \
  --name "Project update" \
  --idempotency-key <renameKey>

Use currentRevisionId from dsp file get as --base-revision. The example replaces an HTML file; use the actual media type for other files. If another save changes the file, reconcile your changes before retrying. After an uncertain result, retry the same operation with its original request key and inputs within 24 hours. See Read and update a file for recovery after older uncertain results.

Renaming requires Editor or inherited Space Manager access and preserves the file's contents and history. Use the file sharing commands to change who can access it.

CommandInputs and options
dsp file restore-revision <fileId>--revision <id> (required); --base-revision <id> (required); --idempotency-key <key> (required)
dsp file history <fileId>--cursor <cursor>; --limit <count>
dsp file get-revision <fileId>--revision <id> (required)
dsp file keep-revision <fileId>--revision <id> (required); --idempotency-key <key> (required)
dsp file delete-revision <fileId>--revision <id> (required); --idempotency-key <key> (required); --confirm
dsp file create [path]--content <text>; --filename <name>; --content-type <type>; --entry <path>; --idempotency-key <key>; --parent-id <id>; --preview; --operation <operation>; --name <name>; --theme <theme>; --initial-grants <json>; --convert-from docx; --output-format markdown|html; --source-item-id <id>; --source-revision-id <id>
dsp file get <fileId>No command-specific options.
dsp file read <fileId>--revision-id <id>; --offset <bytes>; --limit <bytes>
dsp file search <fileId> <query>--revision <id>; --offset <bytes>; --limit <matches>
dsp file export <fileId>--revision-id <id>; --output <path>; --overwrite
dsp file edit <fileId>--base-revision <id> (required); --idempotency-key <key> (required); --old <text>; --old-file <path>; --new <text>; --new-file <path>
dsp file update <fileId> [path]--content <text>; --filename <name>; --content-type <type> (required for ordinary files); --entry <path>; --idempotency-key <key> (required); --base-revision <id> (required); --convert-from docx; --source-item-id <id>; --source-revision-id <id>
dsp file list-access-requests <itemId>--cursor <cursor>; --limit <number>
dsp file request-access <itemId>--role <role>; --message <message>; --idempotency-key <key> (required)
dsp file share <itemId>--email <email>; --user <id>; --organization; --anyone; --api-key <id>; --group <id>; --role <role> (required); --discoverable <boolean>; --idempotency-key <key> (required)
dsp file get-access <itemId>--cursor <cursor>; --limit <number>
dsp file change-access--access-ref <json> (required); --if-match <etag> (required); --idempotency-key <key> (required); --role <role>; --discoverable <boolean>
dsp file remove-access--access-ref <json> (required); --if-match <etag>; --idempotency-key <key> (required)
dsp file list--sort <column>; --dir <direction>; --cursor <cursor>; --limit <number>; --view <view>; --shared-by <userId>; --query <text>; --type <type>; --modified-after <timestamp>; --modified-before <timestamp>
dsp file find <nameQuery>--cursor <cursor>; --limit <number>; --organization-id <id>; --type <type>; --modified-after <timestamp>; --modified-before <timestamp>
dsp file trash <itemIds...>--idempotency-key <key> (required); --confirm
dsp file restore <itemIds...>--idempotency-key <key> (required)
dsp file set-header-visibility <fileId>--value <value> (required; inherit, open or collapsed); --idempotency-key <key> (required)
dsp file rename <fileId>--name <name> (required); --idempotency-key <key> (required); --json
dsp file copy <itemIds...>--parent-id <id> (required); --idempotency-key <key> (required); --initial-grants <json>; --template-intent <save-as-template|use-template>; --name <name>; --source-revision-id <revisionId>; --json
dsp file set-template <id>--enabled <true|false> (required); --idempotency-key <key> (required); --json
dsp file move <itemIds...>--parent-id <id> (required); --preview; --if-match <etag>; --idempotency-key <key>; --json

Pass a local file path to dsp file create or dsp file update to upload a general file up to 150 MiB on Solo, Team, and Business. For files above 50 MiB, the CLI transfers the local file in parts. Use a path for those files because stdin is limited to the single-request size. HTML and Markdown can be up to 50 MiB on those plans. Free allows up to 10 MiB per file. Use dsp file export to download the exact original when source-text operations exceed 50 MiB.

Run dsp file --help for descriptions. Subcommands also provide offline --help.

group

$ dsp group

Manage organization groups and delegated membership

CommandInputs and options
dsp group list--json; --limit <number>; --cursor <cursor>; --search <text>
dsp group get <id>--json
dsp group create--json; --idempotency-key <key> (required); --name <name> (required); --description <description>
dsp group update <id>--json; --idempotency-key <key> (required); --name <name>; --description <description>
dsp group delete <id>--json; --idempotency-key <key> (required); --confirm
dsp group list-members <id>--json; --limit <number>; --cursor <cursor>
dsp group list-administrators <id>--json; --limit <number>; --cursor <cursor>
dsp group add-member <id>--json; --idempotency-key <key> (required); --user <id>; --email <email>
dsp group remove-member <id>--json; --idempotency-key <key> (required); --user <id> (required)
dsp group assign-administrator <id>--json; --idempotency-key <key> (required); --user <id> (required)
dsp group remove-administrator <id>--json; --idempotency-key <key> (required); --user <id> (required)

Group creation and deletion require an Owner. Group administrators can manage membership, including adding themselves. Assign that role deliberately.

Choose exactly one recipient for membership: --user or --email. For Space membership, choose one of --user, --email, or --group. File and folder sharing also accept --group. Group grants do not use --discoverable.

Run dsp group --help for descriptions. Subcommands also provide offline --help.

member

$ dsp member

Native member deactivation and advisory Manager coverage

CommandInputs and options
dsp member preview-deactivation <member-id>--cursor <cursor>; --limit <number>; --json
dsp member deactivate <member-id>--idempotency-key <key> (required); --confirm (required); --json

Preview deactivation as an Owner or Admin with authority over the selected member. The preview is advisory. Deactivation recalculates which Shared Spaces lose their final eligible person Manager.

Review the exact member before adding --confirm. Deactivation retains membership and content, deletes the member’s personal API keys issued for that organization and removes group memberships, and can proceed without a replacement Manager. Keys never count as person Manager coverage. Organization service keys remain. Reactivation does not restore deleted personal keys or removed group memberships.

Keep the original request key and inputs after an uncertain result. Retry within 24 hours. A replay reports the original committed Manager losses, even if coverage later changes. If an older result omits those losses, inspect current administration instead of treating the missing field as an empty list.

Run dsp member --help for descriptions. Subcommands also provide offline --help.

access-request

$ dsp access-request

Review one pending access request

CommandInputs and options
dsp access-request approve <requestId>--idempotency-key <key> (required)
dsp access-request dismiss <requestId>--idempotency-key <key> (required)

Run dsp access-request --help for descriptions. Subcommands also provide offline --help.

$ dsp set-logo

Upload or replace the org logo (PNG or WebP, square, 32–1024px, ≤256 KB)

CommandInputs and options
dsp set-logo <file>No command-specific options.

Run dsp set-logo --help for offline descriptions.

$ dsp clear-logo

Remove the organization logo. Succeeds even if no logo is currently set.

CommandInputs and options
dsp clear-logoNo command-specific options.

Run dsp clear-logo --help for offline descriptions.

email-domains

$ dsp email-domains

Manage the verified email domains that identify your organization. Run `dsp email-domains <cmd> --help` for each.

CommandInputs and options
dsp email-domains listNo command-specific options.
dsp email-domains add <domain>No command-specific options.
dsp email-domains verify <domain>No command-specific options.
dsp email-domains remove <domain>No command-specific options.

Run dsp email-domains --help for descriptions. Subcommands also provide offline --help.

comment

$ dsp comment

Comment-related subcommands. Run `dsp comment <cmd> --help` for each.

CommandInputs and options
dsp comment add--artifact <shortId>; --file <id>; --kb-page <kbName...>; --body <text> (required); --anchor-json <json>; --parent <commentId>; --base-revision <id>; --idempotency-key <key>
dsp comment list--artifact <shortId>; --file <id>; --kb-page <kbName...>; --status <state>; --since <iso>; --thread <rootId>; --cursor <cursor>; --limit <count>
dsp comment edit <commentId>--body <text> (required)
dsp comment delete <commentId>No command-specific options.

Use --file <id> for a Spaces file. Do not combine it with --artifact or --kb-page. KB-page subjects remain unsupported.

For a native root, pass --base-revision from the current file read and --idempotency-key. Its anchor is optional. For a reply, pass --parent and omit the base revision and anchor. Legacy roots still require an anchor.

Native lists page roots and replies separately. Use --thread to select a root’s replies, then retain its filters and returned cursor. --since is a legacy filter.

After uncertain native creation, keep the same body, parent, anchor, base revision, and request key. Retry within 24 hours after checking current discussions. A replay returns the same comment identity with its current protected state. It can show later edits or deletion. For older uncertain results, reconcile existing discussions before another creation.

Native editing requires the same person or organization-key author and the original five-minute edit window. Deletion requires the author or an inherited Space Manager. Organization administration alone grants neither permission. Use the current action flags returned with each comment. Other comment changes are conditional operations, not immutable creation receipts.

Run dsp comment --help for descriptions. Subcommands also provide offline --help.

thread

$ dsp thread

Thread-level operations (resolve, reopen).

CommandInputs and options
dsp thread resolve <rootCommentId>No command-specific options.
dsp thread reopen <rootCommentId>No command-specific options.

Run dsp thread --help for descriptions. Subcommands also provide offline --help.

watch

$ dsp watch

Watch a subject for comment notifications.

CommandInputs and options
dsp watch--artifact <shortId>; --file <id>; --kb-page <kbName...>

Watches belong to the signed-in person. Spaces watches require current Commenter access or higher. Organization keys cannot subscribe.

Run dsp watch --help for offline descriptions.

unwatch

$ dsp unwatch

Unwatch a subject.

CommandInputs and options
dsp unwatch--artifact <shortId>; --file <id>; --kb-page <kbName...>

Run dsp unwatch --help for offline descriptions.

inbox

Run dsp login to use your personal Inbox.

CommandUse
dsp inbox --status unreadList unread groups. Use --status all to include read and archived groups.
dsp inbox unread-countCount unread groups.
dsp inbox activities <group-id>List the receipts and source references in a group.
dsp inbox read <group-id> --receipt-id <id>Mark an observed receipt as read. Repeat --receipt-id for several receipts, or use --all-current for the whole group.
dsp inbox archive <group-id>Archive the group and mark its current activity read.
dsp inbox read-allMark current activity as read. Filter with --kind or --before.

notifications

Use dsp notifications settings get to see your delivery preferences. For example, dsp notifications settings set --discussions-email off updates just that choice.

CommandUse
dsp notifications following --type threadList followed threads. Use --type artifact for files.
dsp notifications follow <file-id> --type artifact --scope comments_and_updatesFollow a file for comments and saved updates.
dsp notifications unfollow --target comment_thread:<thread-id>Unfollow a discussion. Repeat --target to select more follows.
dsp notifications share-email-reset <organization-id>Reset a share-email exception for your current verified address.

Import a Word file

In an organization using Spaces, convert a .docx file up to 10 MiB to a new Markdown document, or choose HTML:

bash
dsp file create ./report.docx --convert-from docx --name "Quarterly report" --idempotency-key <requestKey>
dsp file create ./report.docx --convert-from docx --output-format html --parent-id <folderId> --idempotency-key <requestKey>

For binary stdin, use - and --filename report.docx. Word conversion infers the media type. To use a saved Word file, omit the local path and supply --source-item-id <wordFileId> and --source-revision-id <wordRevisionId>. Supply an explicit --name as well so retries keep the same source and name.

To replace a standalone Markdown document at the same URL, read its current revision and use:

bash
dsp file update <markdownFileId> ./report.docx --convert-from docx --base-revision <revisionId> --idempotency-key <requestKey>

Word updates require a standalone Markdown target and omit --output-format. For HTML or Markdown with local images, import Word in the browser editor and Save. After an uncertain result, keep the original bytes or pinned source, destination, output choice, name, base revision and request key. Review a stale revision before retrying with a new base. Inspect the result with dsp file read, export or history.

Document templates

Use these commands in an organization that uses Spaces. Inspect the installed command's --help for supported options.

bash
dsp file list --view home --is-template true --format markdown
dsp file create --parent-id <folderId> --operation copy --preview
dsp file copy <fileId> --parent-id <folderId> --template-intent save-as-template --name "Weekly update" --source-revision-id <revisionId> --idempotency-key <requestKey>
dsp file copy <templateId> --parent-id <folderId> --template-intent use-template --name "This week's update" --source-revision-id <revisionId> --idempotency-key <requestKey>
dsp file set-template <fileId> --enabled false --idempotency-key <requestKey>

Home file lists accept --is-template true|false, --space-id <spaceId> and --format html|markdown. Use false with Modified descending for ordinary Recent files. Keep filters with their cursor. These options do not apply to Shared with me or folder lists.

A template copy requires exactly one source, a name, its current saved revision ID and an existing destination. Read the file first and review the destination preview. Save-as-template makes a separate designated file. Use-template makes an ordinary independent document. Its first revision contains the exact saved bytes. Edit the new document after creation. Ordinary copies do not inherit designation.

set-template changes the existing file's designation without saving a content revision. Removing designation preserves the document. After an uncertain result, retry the exact inputs and original key within 24 hours. A repeated setter request returns its original result without reversing a later change. After a stale selection, reread and review the source before deliberately starting another request with a new key and revision. Inspect each copy result even when the request itself succeeds.

Copy and move previews

For file and folder creation, --operation copy requires --preview and an explicit --parent-id. It previews the destination for copying. It does not turn a create command into a copy. Use dsp file copy or dsp folder copy to make copies.

For a move, first use --preview. Review the destination and effective access changes; independent sources of access are combined before a change is reported. Pass the returned ETag with --if-match and a request key for the move. A stale preview requires a new preview and another review.

Copy and move return results for each selected item. A partial failure returns a nonzero exit code. Inspect those results before choosing a recovery action. For an uncertain response, retain the original selection, destination, ETag where applicable, and request key.

Spaces operation results and retries

File, folder, and Space commands return JSON where supported. File export streams exact bytes unless an output path is chosen. Diagnostics and continuation guidance use stderr. A failed command returns a nonzero exit code. The legacy exit-code table does not promise a separate error code for every Spaces denial.

Keep pagination cursors with their original filters. After an uncertain Spaces write, reuse the exact inputs and original request key. Retry within 24 hours of the original attempt. For older uncertain attempts, check whether the write succeeded before retrying. After 24 hours, even the original request key can create another file.

Keep the returned access reference and ETag for sharing changes. Use the ETag with --if-match when the command requires it.

File writes retain the base revision they read. Inspect a stale revision. Reconcile your change before retrying. Never substitute a newer base automatically.

Preview a destination and audience before creating. Review the selected targets and required confirmations before destructive actions.

TextPack sources

Publish Markdown with local images by passing a directory and the Markdown file's relative path. The CLI collects images referenced within the directory and sends them with the document. Use the same --entry option on dsp file update with the file's current --base-revision.

bash
dsp file create ./report --entry Report.md --idempotency-key report-create

Use the existing dsp file create and dsp file update file-upload workflows for a complete Markdown TextPack v2. A valid .textpack submitted as ZIP or octet-stream is recognized; an explicit declaration uses application/vnd.display.markdown+zip and fails validation if unsupported. Upload a standalone Markdown file to replace the entire version with that file. Use dsp file edit for a targeted text change. To update the full Markdown source and keep its existing images, start with dsp file read so the saved image links stay intact. Pass the updated source inline:

bash
dsp file update <fileId> --content "$updated_markdown" --filename document.md \
  --content-type text/markdown --base-revision <revisionId> --idempotency-key <requestKey>

Read and search operate on the Markdown text. dsp file export generates a .textpack with the selected version’s saved Markdown, images, and metadata.

Automatic Trash expiry

Display can automatically delete items from Trash after the 30-day retention window. The CLI can restore an item while it remains in Trash and you have access to it. Once Display deletes it, you can no longer restore it with the CLI.

See Trash retention for the deadline rules and rollout dates.

Was this page helpful?