Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/tailor-platform/sdk/llms.txt

Use this file to discover all available pages before exploring further.

Commands for managing workspace profiles. Profiles are named combinations of a user and workspace ID that allow you to quickly switch between different development contexts.

profile

Manage workspace profiles (user + workspace combinations). Usage
tailor-sdk profile [command]
Commands
CommandDescription
profile listList all profiles
profile createCreate a new profile
profile updateUpdate profile properties
profile deleteDelete a profile
When no subcommand is provided, defaults to list.

What are Profiles?

Profiles store a combination of:
  • User: The authenticated user email
  • Workspace ID: The workspace to operate in
Instead of specifying --workspace-id on every command, you can use --profile <name> to reference a saved profile. Example Workflow
# Create profiles for different environments
tailor-sdk profile create dev -u dev@example.com -w workspace-dev-id
tailor-sdk profile create prod -u prod@example.com -w workspace-prod-id

# Use profiles in commands
tailor-sdk apply --profile dev
tailor-sdk workspace get --profile prod

profile list

List all profiles. Usage
tailor-sdk profile list [options]
Options
OptionAliasDescriptionRequiredDefault
--json-jOutput as JSONNofalse
Example
tailor-sdk profile list
Output
[
  {
    "name": "dev",
    "user": "dev@example.com",
    "workspaceId": "550e8400-e29b-41d4-a716-446655440000"
  },
  {
    "name": "prod",
    "user": "prod@example.com",
    "workspaceId": "660e8400-e29b-41d4-a716-446655440001"
  }
]

profile create

Create a new profile. Usage
tailor-sdk profile create [options] <name>
Arguments
ArgumentDescriptionRequired
nameProfile nameYes
Options
OptionAliasDescriptionRequiredDefault
--json-jOutput as JSONNofalse
--user <USER>-uUser emailYes-
--workspace-id <WORKSPACE_ID>-wWorkspace IDYes-
Example
tailor-sdk profile create dev -u dev@example.com -w 550e8400-e29b-41d4-a716-446655440000
Output
Profile "dev" created successfully.

{
  "name": "dev",
  "user": "dev@example.com",
  "workspaceId": "550e8400-e29b-41d4-a716-446655440000"
}
The user must be authenticated (logged in) before creating a profile. The workspace must also exist and be accessible to the user.

profile update

Update profile properties. Usage
tailor-sdk profile update [options] <name>
Arguments
ArgumentDescriptionRequired
nameProfile nameYes
Options
OptionAliasDescriptionRequiredDefault
--json-jOutput as JSONNofalse
--user <USER>-uNew user emailNo-
--workspace-id <WORKSPACE_ID>-wNew workspace IDNo-
Examples Update user:
tailor-sdk profile update dev -u newuser@example.com
Update workspace:
tailor-sdk profile update dev -w new-workspace-id
Update both:
tailor-sdk profile update dev -u newuser@example.com -w new-workspace-id
Output
Profile "dev" updated successfully

{
  "name": "dev",
  "user": "newuser@example.com",
  "workspaceId": "new-workspace-id"
}
At least one property (user or workspace ID) must be provided when updating a profile.

profile delete

Delete a profile. Usage
tailor-sdk profile delete [options] <name>
Arguments
ArgumentDescriptionRequired
nameProfile nameYes
Example
tailor-sdk profile delete dev
Output
Profile "dev" deleted successfully.
Deleting a profile only removes the profile configuration. It does not delete the workspace or affect the user account.

Build docs developers (and LLMs) love