Excalidraw CLI

excalidraw workspace

View and administer the current workspace.

Manage workspace metadata, users, and invites for the API key's workspace.

excalidraw workspace [options] [command]
CommandDescription
getShow current workspace metadata.
updateUpdate workspace metadata.
usersList, inspect, update, or remove workspace users.
invitesManage email invites and invite links.

Examples

excalidraw workspace get
excalidraw workspace users list --limit 50
excalidraw workspace invites create --email teammate@example.com --role member
excalidraw workspace invites create-link --role member --max-uses 10

Notes

  • All workspace commands operate on the workspace associated with the API key.

get

Return workspace metadata, including its name, picture, subscription status, and user IDs.

excalidraw workspace get [options]

Examples

excalidraw workspace get

update

Rename the workspace or change its picture.

excalidraw workspace update [options]
OptionDescription
--name <name>New workspace name.
--picture <url>New workspace picture URL, or none to remove it.

Examples

excalidraw workspace update --name "Design team"
excalidraw workspace update --picture https://example.com/workspace.png
excalidraw workspace update --picture none

Notes

  • Provide at least one field to update. Omitted fields stay unchanged.

users

Manage users who currently have access to the workspace.

excalidraw workspace users [options] [command]
CommandDescription
listList workspace users.
getShow one workspace user.
updateUpdate a workspace user.
removeRemove a user from the workspace.

Examples

excalidraw workspace users list --limit 50
excalidraw workspace users get <userId>
excalidraw workspace users update <userId> --role admin
excalidraw workspace users remove <userId>

users list

Return users in the current workspace with their workspace roles.

excalidraw workspace users list [options]
OptionDescription
--limit <number>Maximum number of users to return, from 1 to 100; default 5.
--offset <number>Number of users to skip for offset pagination.
--allFetch every page and print one combined list; --limit sets the page size.

Examples

excalidraw workspace users list
excalidraw workspace users list --limit 100
excalidraw workspace users list --all --output table

Notes

  • Use this to discover user IDs before role updates or removals.
  • With --all the output is { count, data } instead of a single page with hasNextPage.

users get

Get profile metadata and workspace role for a specific user.

excalidraw workspace users get [options] <userId>
ArgumentDescription
<userId>Workspace user ID.

Examples

excalidraw workspace users get <userId>

users update

Update a user's display metadata or workspace role.

excalidraw workspace users update [options] <userId>
ArgumentDescription
<userId>Workspace user ID to update.
OptionDescription
--name <name>New user display name.
--picture <url>New user picture URL, or none to remove it.
--role <role>Workspace role to assign: member or admin.

Examples

excalidraw workspace users update <userId> --role admin
excalidraw workspace users update <userId> --name "Ada Lovelace"
excalidraw workspace users update <userId> --picture none

Notes

  • Email updates are not supported by the public API.
  • Downgrading the sole workspace admin fails.

users remove

Revoke a user's access to the current workspace.

excalidraw workspace users remove [options] <userId>
ArgumentDescription
<userId>Workspace user ID to remove.

Examples

excalidraw workspace users remove <userId>

Notes

  • Removing a user revokes workspace access, workspace/team membership, permissions, and that user's API keys for this workspace.
  • It does not delete the global user account. Removing the sole workspace admin fails.

invites

Create, inspect, update, and revoke workspace invites.

excalidraw workspace invites [options] [command]
CommandDescription
listList workspace invites.
getShow one workspace invite.
createCreate an email invite.
create-linkCreate an invite link.
updateUpdate a workspace invite.
deleteRevoke a workspace invite.

Examples

excalidraw workspace invites list --limit 50
excalidraw workspace invites create --email teammate@example.com --role member
excalidraw workspace invites create-link --role admin --max-uses 1
excalidraw workspace invites delete <inviteId>

invites list

Return pending and active invites for the current workspace.

excalidraw workspace invites list [options]
OptionDescription
--limit <number>Maximum number of invites to return, from 1 to 100; default 5.
--offset <number>Number of invites to skip for offset pagination.
--allFetch every page and print one combined list; --limit sets the page size.

Examples

excalidraw workspace invites list
excalidraw workspace invites list --limit 100
excalidraw workspace invites list --all --output table

Notes

  • Use this to discover invite IDs before updating or revoking invites.
  • With --all the output is { count, data } instead of a single page with hasNextPage.

invites get

Get status, role, usage limits, and metadata for a workspace invite.

excalidraw workspace invites get [options] <inviteId>
ArgumentDescription
<inviteId>Workspace invite ID.

Examples

excalidraw workspace invites get <inviteId>

invites create

Invite one email address to join the workspace with a member or admin role.

excalidraw workspace invites create [options]
OptionDescription
--email <email>Email address to invite. Required.
--role <role>Workspace role to grant: member or admin. Required.

Examples

excalidraw workspace invites create --email teammate@example.com --role member
excalidraw workspace invites create --email lead@example.com --role admin

Create a workspace invite link that can be redeemed a set number of times.

excalidraw workspace invites create-link [options]
OptionDescription
--role <role>Workspace role granted by the link: member or admin. Required.
--max-uses <number|unlimited>Number of times the link can be redeemed, or unlimited; default 1.
--restricted-domains <domains>Comma-separated email domains allowed to redeem the link, for example example.com,example.org.

Examples

excalidraw workspace invites create-link --role member
excalidraw workspace invites create-link --role admin --max-uses 1
excalidraw workspace invites create-link --role member --max-uses unlimited
excalidraw workspace invites create-link --role member --restricted-domains example.com,example.org

Notes

  • Links are single-use unless you pass --max-uses. Use unlimited for a link that never runs out.
  • --restricted-domains limits redemption to users whose email matches one of the domains.

invites update

Change an invite's email address, role, or maximum usage count.

excalidraw workspace invites update [options] <inviteId>
ArgumentDescription
<inviteId>Workspace invite ID to update.
OptionDescription
--email <email>New invitee email for email invites.
--role <role>Workspace role to grant: member or admin.
--max-uses <number|unlimited>Maximum number of invite redemptions, or unlimited.
--restricted-domains <domains>Comma-separated email domains allowed to redeem the link, or none to remove the restriction.

Examples

excalidraw workspace invites update <inviteId> --role admin
excalidraw workspace invites update <inviteId> --max-uses 5
excalidraw workspace invites update <inviteId> --restricted-domains example.com
excalidraw workspace invites update <inviteId> --restricted-domains none

Notes

  • Provide at least one field to update. Omitted fields stay unchanged.
  • Email invites cannot update max uses or restricted domains. Link invites cannot update email.

invites delete

Delete an invite so the email invitation or invite link can no longer be used.

excalidraw workspace invites delete [options] <inviteId>
ArgumentDescription
<inviteId>Workspace invite ID to revoke.

Examples

excalidraw workspace invites delete <inviteId>

Notes

  • Revoking an invite prevents future redemption but does not remove users who already joined.
  • Only pending invites can be revoked; redeemed invites return an error.

Last updated on

On this page