Skip to content
View as Markdown

Workspace Commands

Commands for managing workspaces and profiles.

workspace

Manage Tailor Platform workspaces.

Usage

tailor workspace [command]

See Global Options for options available to all commands.

Commands

CommandDescription
workspace appManage workspace applications
workspace createCreate a new Tailor Platform workspace.
workspace deleteDelete a Tailor Platform workspace.
workspace getShow detailed information about a workspace
workspace listList all Tailor Platform workspaces.
workspace pruneDelete stale temporary workspaces, by name and age or by the expiry each recorded at creation.
workspace restoreRestore a deleted workspace
workspace ttlManage when a workspace becomes prunable.
workspace userManage workspace users

workspace app

Manage workspace applications

Usage

tailor workspace app [command]

See Global Options for options available to all commands.

Commands

CommandDescription
workspace app healthCheck application schema health
workspace app listList applications in a workspace

workspace app health

Check application schema health

Usage

tailor workspace app health [options]

Options

OptionAliasDescriptionRequiredDefaultEnv
--workspace-id <WORKSPACE_ID>-wWorkspace IDNo-TAILOR_PLATFORM_WORKSPACE_ID
--profile <PROFILE>-pWorkspace profileNo-TAILOR_PLATFORM_PROFILE
--name <NAME>-nApplication nameYes--

See Global Options for options available to all commands.

workspace app list

List applications in a workspace

Usage

tailor workspace app list [options]

Options

OptionAliasDescriptionRequiredDefaultEnv
--workspace-id <WORKSPACE_ID>-wWorkspace IDNo-TAILOR_PLATFORM_WORKSPACE_ID
--profile <PROFILE>-pWorkspace profileNo-TAILOR_PLATFORM_PROFILE
--order <ORDER>-Sort order (asc or desc)No"desc"-
--limit <LIMIT>-lMaximum number of items to return (0 or omit: unlimited)No--

See Global Options for options available to all commands.

workspace create

Create a new Tailor Platform workspace.

Usage

tailor workspace create [options]

Options

OptionAliasDescriptionRequiredDefaultEnv
--name <NAME>-nWorkspace nameYes--
--region <REGION>-rWorkspace region (us-west, asia-northeast)Yes--
--delete-protection-dEnable delete protectionNofalse-
--organization-id <ORGANIZATION_ID>-oOrganization ID to workspace associate withNo-TAILOR_PLATFORM_ORGANIZATION_ID
--folder-id <FOLDER_ID>-fFolder ID to workspace associate withNo-TAILOR_PLATFORM_FOLDER_ID
--ttl <TTL>-Record on the workspace itself when it becomes prunable, such as 30m, 24h, or 7d. workspace prune --expired deletes it once that has passedNo--
--profile-name <PROFILE_NAME>-pProfile name to createNo--
--profile <PROFILE>-Workspace profile used for authentication and Platform selectionNo-TAILOR_PLATFORM_PROFILE
--profile-user <PROFILE_USER>-User email address or machine user client ID for the profile (defaults to current user)No--
--permission <PERMISSION>-Profile permission (requires --profile-name). 'read' blocks all write commands while the profile is active.No"write"-

See Global Options for options available to all commands.

workspace delete

Delete a Tailor Platform workspace.

Usage

tailor workspace delete [options]

Options

OptionAliasDescriptionRequiredDefault
--workspace-id <WORKSPACE_ID>-wWorkspace IDYes-
--yes-ySkip confirmation promptsNofalse

See Global Options for options available to all commands.

workspace get

Show detailed information about a workspace

Usage

tailor workspace get [options]

Options

OptionAliasDescriptionRequiredDefaultEnv
--workspace-id <WORKSPACE_ID>-wWorkspace IDNo-TAILOR_PLATFORM_WORKSPACE_ID
--profile <PROFILE>-pWorkspace profileNo-TAILOR_PLATFORM_PROFILE

See Global Options for options available to all commands.

workspace list

List all Tailor Platform workspaces.

Usage

tailor workspace list [options]

Options

OptionAliasDescriptionRequiredDefaultEnv
--order <ORDER>-Sort order (asc or desc)No"desc"-
--limit <LIMIT>-lMaximum number of items to return (0 or omit: unlimited)No--
--profile <PROFILE>-Workspace profile used for authentication and Platform selectionNo-TAILOR_PLATFORM_PROFILE

See Global Options for options available to all commands.

workspace prune

Delete stale temporary workspaces, by name and age or by the expiry each recorded at creation.

Usage

tailor workspace prune [options]

Options

OptionAliasDescriptionRequiredDefaultEnv
--name <NAME>-Select workspaces whose whole name matches this regular expression (repeatable)No--
--older-than <OLDER_THAN>-Minimum age since creation, such as 30m, 24h, or 7d. 0s disables the age check and requires a location. Required unless --expired is givenNo--
--expired-Select workspaces whose own --ttl expiry has passed, instead of by name and age. Requires --organization-root, --folder-id, or --personalNofalse-
--organization-root <ORGANIZATION_ID>-Consider the workspaces directly under this organization, excluding those in its folders (repeatable)No--
--folder-id <FOLDER_ID>-Consider the workspaces in this folder (repeatable)No--
--personal-Consider the workspaces belonging to no organization and no folderNofalse-
--exclude <EXCLUDE>-Keep a workspace with this exact name even when it matches (repeatable)No--
--limit <LIMIT>-Abort when more workspaces match than this, without deleting anything. 0 removes the capNo20-
--dry-run-List the workspaces that would be deleted without deleting themNofalse-
--profile <PROFILE>-Workspace profile used for authentication and Platform selectionNo-TAILOR_PLATFORM_PROFILE
--yes-ySkip confirmation promptsNofalse-

See Global Options for options available to all commands.

Notes

Use this to reclaim workspaces left behind by CI runs, preview deployments, or interrupted local test runs. A workspace is deleted only when its whole name matches a --name pattern, it was created at least --older-than ago, and it is not excluded, delete-protected, or outside the requested locations. Run with --dry-run first to see what would be deleted.

With --expired the workspaces select themselves instead: each one is deleted only once the --ttl expiry it recorded at creation has passed, so callers need no --name or --older-than. A workspace that records no expiry is never deleted this way, and neither is one whose recorded expiry cannot be read. Because that expiry is recorded on the workspace rather than derived from its name, anything able to write the workspace's metadata can bring its deletion forward -- and writing a workspace's metadata is a lesser permission than deleting it. --expired therefore requires at least one location, and --name still applies on top.

Every workspace lives in exactly one location, and the location options name them explicitly: --organization-root selects the workspaces directly under an organization and none inside its folders, --folder-id selects the workspaces in one folder, and --personal selects the workspaces belonging to no organization and no folder. Each option can be given more than once, they combine as a union, and none of them is read from the environment -- a sweep covers exactly the locations spelled out on the command line. Selecting --personal is a deliberate choice to accept, for every organization-less workspace visible to this login, the expiry that anyone able to write a workspace's metadata may have recorded. Without any location option, a --name / --older-than sweep considers every visible workspace.

Restoring a workspace does not clear its recorded expiry, so a workspace restored after expiring is deleted again by the next --expired run. Restore it, then run workspace ttl set or workspace ttl clear before the next run — or keep it out of that run with --exclude.

Safety guards: the command aborts without deleting anything when more workspaces match than --limit allows (--dry-run still lists them all), both --expired and --older-than 0s (no age check) are only accepted together with at least one location option, and a location option that resolves to an empty value (an unset CI secret) is rejected instead of silently widening the sweep -- even when another location is given alongside it. Each workspace is re-read immediately before it is deleted and skipped when it no longer matches the name, location, exclusion, or delete-protection criteria that selected it. Unlike workspace delete, a single confirmation covers every listed candidate; pass --yes to skip it in CI. Deleted workspaces can be restored with workspace restore for a limited time.

Only workspaces visible to the current login (or the machine user in CI) are considered.

workspace restore

Restore a deleted workspace

Usage

tailor workspace restore [options]

Options

OptionAliasDescriptionRequiredDefault
--workspace-id <WORKSPACE_ID>-wWorkspace IDYes-
--yes-ySkip confirmation promptsNofalse

See Global Options for options available to all commands.

workspace ttl

Manage when a workspace becomes prunable.

Usage

tailor workspace ttl [command]

See Global Options for options available to all commands.

Commands

CommandDescription
workspace ttl setRecord when a workspace becomes prunable, replacing any expiry it already records.
workspace ttl clearDrop a workspace's recorded prune expiry.

workspace ttl clear

Drop a workspace's recorded prune expiry.

Usage

tailor workspace ttl clear [options]

Options

OptionAliasDescriptionRequiredDefaultEnv
--workspace-id <WORKSPACE_ID>-wWorkspace IDNo-TAILOR_PLATFORM_WORKSPACE_ID
--profile <PROFILE>-pWorkspace profileNo-TAILOR_PLATFORM_PROFILE

See Global Options for options available to all commands.

Notes

A workspace recording no expiry is never deleted by `workspace prune --expired`. Clearing an expiry the workspace does not record succeeds without changing anything.

workspace ttl set

Record when a workspace becomes prunable, replacing any expiry it already records.

Usage

tailor workspace ttl set [options]

Options

OptionAliasDescriptionRequiredDefaultEnv
--workspace-id <WORKSPACE_ID>-wWorkspace IDNo-TAILOR_PLATFORM_WORKSPACE_ID
--profile <PROFILE>-pWorkspace profileNo-TAILOR_PLATFORM_PROFILE
--ttl <TTL>-Time from now until the workspace becomes prunable, such as 30m, 24h, or 7dYes--

See Global Options for options available to all commands.

Notes

The expiry runs from now, not from when the workspace was created, so `--ttl 24h` always leaves a full day regardless of the workspace's age. Use this to give a restored workspace a new expiry, or to record one after `workspace create --ttl` failed to.

This is not an auto-delete timer: it only makes the workspace eligible for `workspace prune --expired`, which still honors delete protection and its own filters.

workspace user

Manage workspace users

Usage

tailor workspace user [command]

See Global Options for options available to all commands.

Commands

CommandDescription
workspace user inviteInvite a user to a workspace
workspace user listList users in a workspace
workspace user removeRemove a user from a workspace
workspace user updateUpdate a user's role in a workspace

workspace user invite

Invite a user to a workspace

Usage

tailor workspace user invite [options]

Options

OptionAliasDescriptionRequiredDefaultEnv
--workspace-id <WORKSPACE_ID>-wWorkspace IDNo-TAILOR_PLATFORM_WORKSPACE_ID
--profile <PROFILE>-pWorkspace profileNo-TAILOR_PLATFORM_PROFILE
--email <EMAIL>-Email address of the user to inviteYes--
--role <ROLE>-rRole to assign (admin, editor, viewer)Yes--

See Global Options for options available to all commands.

workspace user list

List users in a workspace

Usage

tailor workspace user list [options]

Options

OptionAliasDescriptionRequiredDefaultEnv
--workspace-id <WORKSPACE_ID>-wWorkspace IDNo-TAILOR_PLATFORM_WORKSPACE_ID
--profile <PROFILE>-pWorkspace profileNo-TAILOR_PLATFORM_PROFILE
--order <ORDER>-Sort order (asc or desc)No"desc"-
--limit <LIMIT>-lMaximum number of items to return (0 or omit: unlimited)No--

See Global Options for options available to all commands.

workspace user remove

Remove a user from a workspace

Usage

tailor workspace user remove [options]

Options

OptionAliasDescriptionRequiredDefaultEnv
--workspace-id <WORKSPACE_ID>-wWorkspace IDNo-TAILOR_PLATFORM_WORKSPACE_ID
--profile <PROFILE>-pWorkspace profileNo-TAILOR_PLATFORM_PROFILE
--email <EMAIL>-Email address of the user to removeYes--
--yes-ySkip confirmation promptsNofalse-

See Global Options for options available to all commands.

workspace user update

Update a user's role in a workspace

Usage

tailor workspace user update [options]

Options

OptionAliasDescriptionRequiredDefaultEnv
--workspace-id <WORKSPACE_ID>-wWorkspace IDNo-TAILOR_PLATFORM_WORKSPACE_ID
--profile <PROFILE>-pWorkspace profileNo-TAILOR_PLATFORM_PROFILE
--email <EMAIL>-Email address of the user to updateYes--
--role <ROLE>-rNew role to assign (admin, editor, viewer)Yes--

See Global Options for options available to all commands.

profile

Manage workspace profiles (user + workspace combinations).

Usage

tailor profile [command]

See Global Options for options available to all commands.

Commands

CommandDescription
profile createCreate a new profile.
profile deleteDelete a profile.
profile listList all profiles.
profile updateUpdate profile properties.

profile create

Create a new profile.

Usage

tailor profile create [options] <name>

Arguments

ArgumentDescriptionRequired
nameProfile nameYes

Options

OptionAliasDescriptionRequiredDefaultEnv
--user <USER>-uUser email address or machine user client IDYes--
--workspace-id <WORKSPACE_ID>-wWorkspace IDYes--
--permission <PERMISSION>-Profile permission. 'read' blocks all write commands while the profile is active.No"write"-
--machine-user <MACHINE_USER>-mDefault machine user name for application-data commands (query, workflow start, function run, machineuser token).No--
--machine-user-override <MACHINE_USER_OVERRIDE>-Whether the command line or TAILOR_PLATFORM_MACHINE_USER_NAME may override the profile's machine user. 'deny' requires --machine-user.No--
--platform-url <PLATFORM_URL>-Platform API base URL for this profile.No-TAILOR_PLATFORM_URL
--oauth2-client-id <OAUTH2_CLIENT_ID>-OAuth2 client ID for logging in to this profile's platform.No-TAILOR_PLATFORM_OAUTH2_CLIENT_ID
--console-url <CONSOLE_URL>-Console base URL for this profile.No-TAILOR_PLATFORM_CONSOLE_URL

See Global Options for options available to all commands.

profile delete

Delete a profile.

Usage

tailor profile delete <name>

Arguments

ArgumentDescriptionRequired
nameProfile nameYes

See Global Options for options available to all commands.

profile list

List all profiles.

Usage

tailor profile list

See Global Options for options available to all commands.

profile update

Update profile properties.

Usage

tailor profile update [options] <name>

Arguments

ArgumentDescriptionRequired
nameProfile nameYes

Options

OptionAliasDescriptionRequiredDefault
--user <USER>-uNew user email address or machine user client IDNo-
--workspace-id <WORKSPACE_ID>-wNew workspace IDNo-
--permission <PERMISSION>-Profile permission. 'read' blocks all write commands; 'write' lifts the restriction.No-
--machine-user <MACHINE_USER>-mDefault machine user name for application-data commands (query, workflow start, function run, machineuser token). Pass an empty string to clear.No-
--machine-user-override <MACHINE_USER_OVERRIDE>-Whether the command line or TAILOR_PLATFORM_MACHINE_USER_NAME may override the profile's machine user. 'deny' requires --machine-user; 'allow' lifts the restriction.No-
--platform-url <PLATFORM_URL>-Platform API base URL for this profile. Pass an empty string to clear.No-
--oauth2-client-id <OAUTH2_CLIENT_ID>-OAuth2 client ID for logging in to this profile's platform. Pass an empty string to clear.No-
--console-url <CONSOLE_URL>-Console base URL for this profile. Pass an empty string to clear.No-

See Global Options for options available to all commands.