Commands for managing machine users in your Tailor Platform application. Machine users are service accounts that can authenticate to your application using client credentials. They are useful for server-to-server authentication and automated processes.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.
machineuser
Manage machine users in your Tailor Platform application. Usage| Command | Description |
|---|---|
machineuser list | List all machine users in the application |
machineuser token | Get an access token for a machine user |
list.
Machine user commands require your application to have an auth configuration defined with
defineAuth() in your tailor.config.ts.machineuser list
List all machine users in the application. Usage| Option | Alias | Description | Required | Default |
|---|---|---|---|---|
--json | -j | Output as JSON | No | false |
--workspace-id <WORKSPACE_ID> | -w | Workspace ID | No | - |
--profile <PROFILE> | -p | Workspace profile | No | - |
--config <CONFIG> | -c | Path to config file | No | - |
machineuser token
Get an access token for a machine user. Usage| Argument | Description | Required |
|---|---|---|
name | Machine user name | Yes |
| Option | Alias | Description | Required | Default |
|---|---|---|---|---|
--json | -j | Output as JSON | No | false |
--workspace-id <WORKSPACE_ID> | -w | Workspace ID | No | - |
--profile <PROFILE> | -p | Workspace profile | No | - |
--config <CONFIG> | -c | Path to config file | No | - |
Access tokens are temporary and expire after a certain period. Use the
expires_at field to determine when you need to request a new token.