# Complete reference (/cli/reference)

Every command on one page, generated from the CLI itself. Start at the
[overview](/cli/commands) to browse; this page is for searching and for tools.

Append `.mdx` to an authored guide or CLI reference page for its raw Markdown —
[`/cli/reference.mdx`](/cli/reference.mdx) is this page as plain text. The docs
are also published as [`/llms.txt`](/llms.txt) and
[`/llms-full.txt`](/llms-full.txt).

## Global options \[#global-options]

Place these options before or after the command. Each command uses the settings
relevant to its action. Telemetry commands always print text; workflow export
prints a portable JSON document, or YAML when selected.

| Option | Description |
| - | - |
| `-P, --profile <name>` | Profile to use (env: SIM_PROFILE). |
| `--endpoint <url>` | Sim deployment to talk to (env: SIM_ENDPOINT). |
| `-w, --workspace <id>` | Workspace to target (env: SIM_WORKSPACE). |
| `--output <format>` | Output format for this command. Accepted values: `table`, `json`, `yaml`, `text`. |

Use `--help` to inspect a command. `sim --version` prints the CLI version,
takes no value, and exits without running a command. Deployment-version commands
use their documented arguments or `--to-version`.

API schema links describe HTTP payloads. See [CLI output formats](/cli/output)
for resource unwrapping, pagination envelopes, and display formats.

Every command exits 13 when it needs a login it does not have (`AUTH_REQUIRED`) and 9
when the API still answers `429` after the CLI resends it (every `GET` and the source
writes, up to 6 times, at most a minute apart); see
[Exit codes](/cli/scripting#exit-codes) for these and the command-specific codes.

## sim login \[#sim-login]

Log in through the browser and store the login for the profile

```bash
sim login [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--method <method>` | No | Credential to obtain: oauth requires OAuth support; api-key creates an API key through pairing (auto-selects when omitted). Accepted values: `oauth`, `api-key`. |
| `--no-browser` | No | Print the approval URL without opening it (either login method). |
| `--read-only` | No | Ask only for permission to read, never to change anything. |
| `--expires-in <days>` | No | Log in with an API key that expires after this many days (1-365); without it an API key never expires. |
| `--callback-port <port>` | No | Pin the local port the browser returns to. |
| `-y, --yes` | No | Overwrite an existing API-key profile without prompting. |

## sim logout \[#sim-logout]

Sign out and remove the profile's stored login

```bash
sim logout [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--all` | No | Remove the profile entirely, including its settings. |

## sim whoami \[#sim-whoami]

Show the resolved profile, where each setting came from, and whether it works

```bash
sim whoami [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--no-verify` | No | Skip the API check and only print the resolved settings. |

API request and response schemas: [getMeta](/api-reference/meta/getApiMeta), [getWorkspace](/api-reference/workspaces/getWorkspace).

## sim configure \[#sim-configure]

Switch a profile's default workspace, or set its endpoint or output format

```bash
sim configure [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--set-endpoint <url>` | No | Sim deployment to talk to. |
| `--set-workspace <id>` | No | Default workspace for workspace-scoped commands. |
| `--set-output <format>` | No | Default output format (table \| json \| yaml \| text). |
| `--unset <key...>` | No | Remove settings (endpoint, workspace, output). |

## sim update \[#sim-update]

Update this global CLI installation to the newest release on its channel

```bash
sim update [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--package-manager <manager>` | No | Package manager that installed this copy. Accepted values: `npm`, `pnpm`, `bun`, `yarn`. |

## sim chat \[#sim-chat]

Ask Sim and print the reply

```bash
sim chat <message> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `message` | Yes | What to ask Sim |

**Options**

| Option | Required | Description |
| - | - | - |
| `-c, --conversation <id>` | No | Continue the conversation with this ID. |

Each turn prints the reply on stdout and the conversation ID on stderr; pass that ID back with -c to continue the same conversation. With --output json or yaml the reply is not streamed — the finished result is printed as one document, conversation ID included.

**Examples**

```bash
sim chat "What workflows do I have?"
sim chat -c "$CONVERSATION_ID" "Which of those run on a schedule?"
sim --output json chat "Summarize yesterday's failed runs" | jq -r '.content'
```

## sim profiles \[#sim-profiles]

List profiles and add a workspace profile that shares a stored login.

Adding a profile reuses the active stored login and selects a default workspace. Supply `--workspace` when running without an interactive terminal.

Also spelled `sim profile`.

### sim profiles list \[#sim-profiles-list]

List configured profiles

```bash
sim profiles list
```

### sim profiles add \[#sim-profiles-add]

Add a workspace profile that shares the active stored login

```bash
sim profiles add <name> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `name` | Yes | Name for the new profile |

**Options**

| Option | Required | Description |
| - | - | - |
| `-w, --workspace <id>` | No | Existing workspace to use; omit for an interactive picker. |

API request and response schemas: [getWorkspace](/api-reference/workspaces/getWorkspace), [listWorkspaces](/api-reference/workspaces/listWorkspaces).

## sim telemetry \[#sim-telemetry]

Inspect and change this machine’s anonymous usage-reporting preference.

### sim telemetry status \[#sim-telemetry-status]

Show usage-reporting status

```bash
sim telemetry status
```

Telemetry commands always print text. DO_NOT_TRACK and SIM_TELEMETRY_DISABLED override the saved preference; a build without a reporting destination remains off. See the usage-data guide for the data collected.

### sim telemetry enable \[#sim-telemetry-enable]

Enable the usage-reporting preference for this machine

```bash
sim telemetry enable
```

### sim telemetry disable \[#sim-telemetry-disable]

Turn usage reporting off for this machine

```bash
sim telemetry disable
```

## sim cli \[#sim-cli]

Find a command by describing the task you want to perform.

### sim cli search \[#sim-cli-search]

Find commands for a task

```bash
sim cli search <query...>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `query...` | Yes | What you want to do, e.g. "cancel a workflow run" |

Ranks the commands this CLI ships, locally; your query is never sent anywhere. Returns the 5 best matches. Run `<command> --help` on one for its flags.

**Examples**

```bash
sim cli search "cancel a running workflow"
sim cli search list table rows
```

## sim audit-logs \[#sim-audit-logs]

Read organization audit actions and filter by actor, resource, workspace, or time.

Requires an organization Admin or owner, an OAuth login or personal API key, and enabled enterprise audit access for the deployment.

Also spelled `sim audit-log`.

### sim audit-logs get \[#sim-audit-logs-get]

Get audit log (OAuth login or personal API key required)

```bash
sim audit-logs get <auditLogId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `auditLogId` | Yes | Audit-log entry identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | No | Organization whose audit trail to read; defaults to the caller’s organization. A caller that belongs to no organization, or names one it does not belong to, is refused with 403. |

API request and response schemas: [getAuditLog](/api-reference/audit-logs/getAuditLog).

### sim audit-logs list \[#sim-audit-logs-list]

List audit logs (OAuth login or personal API key required)

```bash
sim audit-logs list [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--action <value>` | No | Filter by exact action name. |
| `--resource-type <value>` | No | Filter by resource type. Accepts a comma-separated set; members are trimmed and deduplicated, and member order affects neither the result nor the cursor. |
| `--resource-id <value>` | No | Filter by exact resource identifier. |
| `--start-date <value>` | No | Include audit entries created at or after this UTC ISO 8601 timestamp, such as `2026-08-06T00:00:00Z`. Dates without a time, timestamps with an offset instead of `Z`, and year `0000` are rejected. |
| `--end-date <value>` | No | Include audit entries created at or before this UTC ISO 8601 timestamp, such as `2026-08-06T00:00:00Z`. Dates without a time, timestamps with an offset instead of `Z`, and year `0000` are rejected. |
| `--include-departed` | No | Include actions by users who have left the organization. |
| `--no-include-departed` | No | Send --include-departed as false. |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `100`. |
| `--cursor <value>` | No | Continue from nextCursor returned by a previous result. |
| `--organization <value>` | No | Organization whose audit trail to read; defaults to the caller’s organization. A caller that belongs to no organization, or names one it does not belong to, is refused with 403. |
| `--actor-email <value>` | No | Filter by actor email address. |
| `--all-workspaces` | No | Do not filter to the configured workspace (OAuth login or personal API key required for account-wide access). |

API request and response schemas: [listAuditLogs](/api-reference/audit-logs/listAuditLogs).

## sim billing \[#sim-billing]

Read billing status, credit usage, and storage usage.

### sim billing status \[#sim-billing-status]

Show billing status, credits spent, and storage used (credits and storage require an OAuth login or personal API key)

```bash
sim billing status [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--all-workspaces` | No | Do not filter to the configured workspace (OAuth login or personal API key required for account-wide access). |

API request and response schemas: [getBillingStatus](/api-reference/billing/getBillingStatus).

### sim billing logs \[#sim-billing-logs]

List credit usage events (an OAuth login or personal API key reports only your events; a workspace API key reports every member's in aggregate, unattributed)

```bash
sim billing logs [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--source <value>` | No | Filter by usage source; sim-chat combines Sim agent and workspace Chat usage. Accepted values: `workflow`, `wand`, `sim-chat`, `mcp_copilot`, `mothership_block`, `knowledge-base`, `voice-input`, `enrichment`, `voice-output`, `api-tool`. |
| `--period <value>` | No | Billing period. Defaults to "30d". Accepted values: `1d`, `7d`, `30d`, `all`, `custom`. |
| `--start-date <value>` | No | Custom period start (ISO 8601). |
| `--end-date <value>` | No | Custom period end (ISO 8601). |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `100`. |
| `--cursor <value>` | No | Continue from nextCursor returned by a previous result. |
| `--all-workspaces` | No | Do not filter to the configured workspace (OAuth login or personal API key required for account-wide access). |

API request and response schemas: [listBillingLogs](/api-reference/billing/listBillingLogs).

## sim blocks \[#sim-blocks]

Inspect workflow blocks, integration blocks, and triggers available to the workspace.

The catalog reflects the workspace’s allowed integrations, revealed preview blocks, and deployed custom blocks.

### sim blocks get \[#sim-blocks-get]

Get block

```bash
sim blocks get <blockId>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `blockId` | Yes | Block type identifier. An unversioned base type resolves to the newest visible version. The response echoes the resolved ID. A legacy or deprecated block (such as `starter`) is readable by its exact ID, and its description opens with the block that replaces it. |

```text
Reading it for `sim workflows operations apply`:
  id                    the type to add: `blocks get table` answers table_v2 (an add of legacy
                        table is refused); `note` says so when it is not the type asked for
  inputSchema           the field ids inputs takes; operationInputSchema, an operation's own
  inputDefinitions      the block's inputs by name; one a pair of fields shares (tableId for
                        tableSelector and manualTableId) is accepted in place of the pair
  outputs               what it outputs on success; a failed block outputs {"error":"…"}
                        instead, read on its error path as <name.error> (a Function also
                        outputs <name.errorMessage>, the thrown message without line or code)
Block settings such as retry are not fields: `sim workflows operations apply --help`.
```

API request and response schemas: [getBlock](/api-reference/catalog/getBlock).

### sim blocks list \[#sim-blocks-list]

List blocks

```bash
sim blocks list [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--search <value>` | No | Case-insensitive substring match against the block id, name, and description. |
| `--category <value>` | No | Restrict to one toolbar category. Accepted values: `blocks`, `tools`, `triggers`. |
| `--capability <value>` | No | Restrict to blocks that can start a workflow — the `triggers` category, blocks declaring `triggerAllowed`, and blocks with trigger-mode fields. Accepted values: `trigger`. |
| `--source <value>` | No | Restrict to shipped blocks or to this workspace’s deployed custom blocks. Accepted values: `builtin`, `custom`. |
| `--include-sunset` | No | Include `legacy` and `deprecated` blocks. Off by default: a sunset block keeps executing where it is already placed, but it is not offered for new authoring. Each returned entry carries `sunset.replacedBy`, the block to build with instead. |
| `--no-include-sunset` | No | Send --include-sunset as false. |
| `--sort-by <value>` | No | Field used to sort the result. Do not rely on case-insensitive ordering when sorting by `name`. Defaults to "id". Accepted values: `id`, `name`, `category`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "asc". Accepted values: `asc`, `desc`. |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `0`. |

API request and response schemas: [listBlocks](/api-reference/catalog/listBlocks).

## sim chat-deployments \[#sim-chat-deployments]

List workflow chat deployments in the workspace.

### sim chat-deployments list \[#sim-chat-deployments-list]

List chat deployments

```bash
sim chat-deployments list [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--workflow-id <value>` | No | Restrict to deployments of one workflow. |
| `--is-active` | No | Restrict to active or inactive deployments. |
| `--no-is-active` | No | Send --is-active as false. |
| `--sort-by <value>` | No | Field used to sort the result. Defaults to "createdAt". Accepted values: `identifier`, `createdAt`, `updatedAt`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "desc". Accepted values: `asc`, `desc`. |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `0`. |

API request and response schemas: [listChatDeployments](/api-reference/workflows/listChatDeployments).

## sim connector-types \[#sim-connector-types]

Discover knowledge connectors and their authentication and source-configuration schemas.

Use `--detail full` to inspect a connector’s configuration before creating it.

### sim connector-types list \[#sim-connector-types-list]

List connector types

```bash
sim connector-types list [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--search <value>` | No | Case-insensitive substring match against the connector name. |
| `--detail <value>` | No | Projection of each item. `summary` (the default) carries the identifier, name, description, and auth mode; `full` adds the version, the complete auth settings, the `sourceConfig` field schema, incremental-sync support, and tag definitions. Accepted values: `summary`, `full`. |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `100`. |
| `--cursor <value>` | No | Continue from nextCursor returned by a previous result. |

API request and response schemas: [listConnectorTypes](/api-reference/catalog/listConnectorTypes).

## sim credentials \[#sim-credentials]

Discover providers, connect accounts, and manage credential access.

Run `sim --output json credentials providers list` to inspect the provider’s fields and authentication requirements before creating a service-account credential. OAuth connection commands return a link that a person must open to authorize the connection.

Also spelled `sim credential`.

### sim credentials delete \[#sim-credentials-delete]

Disconnect credential (OAuth login or personal API key required)

This disconnects the credential and removes its stored authentication.

```bash
sim credentials delete <credentialId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `credentialId` | Yes | Credential to disconnect. |

**Options**

| Option | Required | Description |
| - | - | - |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [deleteCredential](/api-reference/credentials/deleteCredential).

### sim credentials members list \[#sim-credentials-members-list]

List credential members (OAuth login or personal API key required)

```bash
sim credentials members list <credentialId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `credentialId` | Yes | Credential whose sharing grants are managed. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `0`. |
| `--sort-by <value>` | No | Field used to sort the result. Do not rely on case-insensitive ordering when sorting by `name`. Defaults to "email". Accepted values: `email`, `name`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "asc". Accepted values: `asc`, `desc`. |

API request and response schemas: [listCredentialMembers](/api-reference/credentials/listCredentialMembers).

### sim credentials members remove \[#sim-credentials-members-remove]

Remove credential member (OAuth login or personal API key required)

This revokes the selected user’s explicit credential grant.

```bash
sim credentials members remove <credentialId> <userId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `credentialId` | Yes | Credential whose sharing grants are managed. |
| `userId` | Yes | User whose explicit grant will be revoked. |

**Options**

| Option | Required | Description |
| - | - | - |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [removeCredentialMember](/api-reference/credentials/removeCredentialMember).

### sim credentials members upsert \[#sim-credentials-members-upsert]

Upsert credential member (OAuth login or personal API key required)

```bash
sim credentials members upsert <credentialId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `credentialId` | Yes | Credential whose sharing grants are managed. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--user <value>` | Yes | Existing workspace member to grant or change access for. |
| `--role <value>` | Yes | Credential role to grant; workspace administrators cannot be demoted. Accepted values: `admin`, `member`. |

API request and response schemas: [upsertCredentialMember](/api-reference/credentials/upsertCredentialMember).

### sim credentials providers list \[#sim-credentials-providers-list]

List credential providers

```bash
sim credentials providers list [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--search <value>` | No | Case-insensitive substring match against the credential provider name. |

API request and response schemas: [listCredentialProviders](/api-reference/credentials/listCredentialProviders).

### sim credentials list \[#sim-credentials-list]

List credentials

```bash
sim credentials list [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--type <value>` | No | Restrict results to this credential type. Accepted values: `oauth`, `service_account`. |
| `--provider-id <value>` | No | Restrict results to credentials for this integration provider. |
| `--search <value>` | No | Case-insensitive substring match against the credential display name. |
| `--sort-by <value>` | No | Field used to sort the result. Defaults to "createdAt". Accepted values: `displayName`, `createdAt`, `updatedAt`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "desc". Accepted values: `asc`, `desc`. |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `0`. |

API request and response schemas: [listCredentials](/api-reference/credentials/listCredentials).

### sim credentials update \[#sim-credentials-update]

Update credential (OAuth login or personal API key required)

```bash
sim credentials update <credentialId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `credentialId` | Yes | Credential to update. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--display-name <value>` | No | New name shown for the credential in Sim. |
| `--description <value>` | No | New credential description. Send null to clear the stored one. (--description null sends the word, not JSON null). |
| `--service-account-json <value>` | No | Write-only provider service-account JSON configuration, including Oracle Database connection fields. |
| `--api-token <value>` | No | Write-only provider API token. |
| `--domain <value>` | No | Provider account domain. |
| `--provider-workspace-id <value>` | No | Provider workspace identifier, separate from the Sim workspace. |
| `--atlassian-product <value>` | No | Atlassian product to verify; defaults to Jira on create and preserves the saved product on reconnect. Accepted values: `jira`, `confluence`. |
| `--signing-secret <value>` | No | Write-only webhook signing secret. |
| `--bot-token <value>` | No | Write-only bot token. |
| `--client-id <value>` | No | OAuth client identifier. |
| `--client-secret <value>` | No | Write-only OAuth client secret. |
| `--certificate-id <value>` | No | Provider certificate mapping identifier. |
| `--org-id <value>` | No | Provider organization ID. |
| `--data-center <value>` | No | Provider data center. |
| `--scope <value>` | No | Provider permissions; preserved on reconnect when omitted. |
| `--auth-method <value>` | No | Provider authentication method. |
| `--private-key <value>` | No | Write-only PEM private key. |
| `--username <value>` | No | Provider run-as username. |
| `--tenancy-ocid <value>` | No | OCI tenancy OCID. |
| `--user-ocid <value>` | No | OCI user OCID. |
| `--fingerprint <value>` | No | OCI API-key fingerprint. |
| `--private-key-passphrase <value>` | No | Write-only OCI private-key passphrase. |
| `--region <value>` | No | OCI home region. |
| `--name <displayName>` | No | Alias for --display-name. |

API request and response schemas: [updateCredential](/api-reference/credentials/updateCredential).

### sim credentials create \[#sim-credentials-create]

Create a service-account credential using its discovered provider schema (OAuth login or personal API key required)

```bash
sim credentials create <providerId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `providerId` | Yes | Service-account provider to create a credential for |

**Options**

| Option | Required | Description |
| - | - | - |
| `--name <displayName>` | Yes | Name shown for the credential in Sim. |
| `--credentials <json\|@file>` | Yes | Provider credentials as JSON (or @path / @- to read a file or stdin). |
| `--description <description>` | No | Optional credential description. |
| `--id <credentialId>` | No | Client-generated credential ID when provider discovery requires it. |

\--credentials takes the provider's fields, or the keylessConfig from `sim credentials keyless-subject` (with the required fields filled in). Pass @path or @- to keep secrets out of shell history.

Keyless (workload identity) credentials take two steps.

Step 1: run `sim credentials keyless-subject <providerId> --output json` and configure your cloud to trust the printed issuer, audience, and subject. Its requiredConfigFields lists the values your provider's keylessConfig still needs.

The printed audience is the default. To have Sim sign tokens for your own audience instead, set audience in keylessConfig and trust that value. Google Cloud prints no audience: its default is the credential's own workload identity pool provider.

Step 2: add those values to keylessConfig and pass it to `sim credentials create <providerId> --credentials @file`.

The proof expires after 24 hours and works only for the user who requested it, with the same providerId. Sim holds the subject for you for 30 days until a credential saves it, so a trust configuration that takes longer to apply still works: renew the proof with `sim credentials keyless-subject <providerId> --subject <subject>`. The subject stays the same, and each renewal restarts the 30 days. Sim holds up to 20 unsaved subjects per person and provider in a workspace; issuing more drops the one shown least recently.

If creation reports WORKLOAD_IDENTITY_PROOF_EXPIRED, renew the proof and retry. If it reports WORKLOAD_IDENTITY_PROOF_INVALID, WORKLOAD_IDENTITY_SUBJECT_REQUIRED, WORKLOAD_IDENTITY_SUBJECT_IN_USE, run step 1 again, trust the new subject, and retry.

**Examples**

```bash
sim credentials keyless-subject aws-service-account --output json > subject.json
jq '.keylessConfig + {"roleArn":"arn:aws:iam::123456789012:role/SimWorkflows"}' subject.json > keyless.json
sim credentials create aws-service-account --name "Keyless" --credentials @keyless.json
```

API request and response schemas: [createServiceAccountCredential](/api-reference/credentials/createServiceAccountCredential).

### sim credentials keyless-subject \[#sim-credentials-keyless-subject]

Issue the subject and proof for a new keyless (workload identity) credential (OAuth login or personal API key required)

```bash
sim credentials keyless-subject <providerId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `providerId` | Yes | Service-account provider for the keyless credential |

**Options**

| Option | Required | Description |
| - | - | - |
| `--subject <subject>` | No | Renew the proof for a subject Sim issued to you earlier, instead of issuing a new one. |

Keyless (workload identity) credentials take two steps.

Step 1: run `sim credentials keyless-subject <providerId> --output json` and configure your cloud to trust the printed issuer, audience, and subject. Its requiredConfigFields lists the values your provider's keylessConfig still needs.

The printed audience is the default. To have Sim sign tokens for your own audience instead, set audience in keylessConfig and trust that value. Google Cloud prints no audience: its default is the credential's own workload identity pool provider.

Step 2: add those values to keylessConfig and pass it to `sim credentials create <providerId> --credentials @file`.

The proof expires after 24 hours and works only for the user who requested it, with the same providerId. Sim holds the subject for you for 30 days until a credential saves it, so a trust configuration that takes longer to apply still works: renew the proof with `sim credentials keyless-subject <providerId> --subject <subject>`. The subject stays the same, and each renewal restarts the 30 days. Sim holds up to 20 unsaved subjects per person and provider in a workspace; issuing more drops the one shown least recently.

If creation reports WORKLOAD_IDENTITY_PROOF_EXPIRED, renew the proof and retry. If it reports WORKLOAD_IDENTITY_PROOF_INVALID, WORKLOAD_IDENTITY_SUBJECT_REQUIRED, WORKLOAD_IDENTITY_SUBJECT_IN_USE, run step 1 again, trust the new subject, and retry.

**Examples**

```bash
sim credentials keyless-subject aws-service-account --output json > subject.json
jq '.keylessConfig + {"roleArn":"arn:aws:iam::123456789012:role/SimWorkflows"}' subject.json > keyless.json
sim credentials create aws-service-account --name "Keyless" --credentials @keyless.json
```

API request and response schemas: [createCredentialWorkloadIdentitySubject](/api-reference/credentials/createCredentialWorkloadIdentitySubject).

### sim credentials connect \[#sim-credentials-connect]

Create a short-lived link for connecting an OAuth provider (OAuth login or personal API key required)

```bash
sim credentials connect <providerId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `providerId` | Yes | OAuth provider to connect |

**Options**

| Option | Required | Description |
| - | - | - |
| `--name <displayName>` | Yes | Name shown for the new credential in Sim. |

API request and response schemas: [createCredentialConnection](/api-reference/credentials/createCredentialConnection).

### sim credentials reconnect \[#sim-credentials-reconnect]

Create a short-lived link for reconnecting an OAuth credential (OAuth login or personal API key required)

```bash
sim credentials reconnect <credentialId>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `credentialId` | Yes | Existing OAuth credential to re-authorize |

API request and response schemas: [createCredentialConnection](/api-reference/credentials/createCredentialConnection).

## sim custom-tools \[#sim-custom-tools]

Create and manage code-backed tools that agents can call.

Also spelled `sim custom-tool`.

### sim custom-tools create \[#sim-custom-tools-create]

Create custom tool

```bash
sim custom-tools create [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--title <value>` | Yes | Display title, unique within the workspace. |
| `--schema <json\|@file>` | Yes | OpenAI function schema: {"type":"function","function":{"name":"...","parameters":{"type":"object","properties":{}}}} (JSON, or @path / @- to read a file or stdin). |
| `--code <value>` | Yes | Tool implementation executed in the sandboxed function runtime. |

API request and response schemas: [createCustomTool](/api-reference/custom-tools/createCustomTool).

### sim custom-tools delete \[#sim-custom-tools-delete]

Delete custom tool

This deletes the custom tool.

```bash
sim custom-tools delete <customToolId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `customToolId` | Yes | Unique custom tool identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [deleteCustomTool](/api-reference/custom-tools/deleteCustomTool).

### sim custom-tools get \[#sim-custom-tools-get]

Get custom tool

```bash
sim custom-tools get <customToolId>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `customToolId` | Yes | Unique custom tool identifier. |

API request and response schemas: [getCustomTool](/api-reference/custom-tools/getCustomTool).

### sim custom-tools list \[#sim-custom-tools-list]

List custom tools

```bash
sim custom-tools list [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--search <value>` | No | Case-insensitive substring match against the tool title. |
| `--sort-by <value>` | No | Field used to sort the result. Defaults to "createdAt". Accepted values: `title`, `createdAt`, `updatedAt`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "desc". Accepted values: `asc`, `desc`. |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `0`. |

API request and response schemas: [listCustomTools](/api-reference/custom-tools/listCustomTools).

### sim custom-tools update \[#sim-custom-tools-update]

Update custom tool

```bash
sim custom-tools update <customToolId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `customToolId` | Yes | Unique custom tool identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--title <value>` | No | New display title for the tool. |
| `--schema <json\|@file>` | No | OpenAI function schema: {"type":"function","function":{"name":"...","parameters":{"type":"object","properties":{}}}} (JSON, or @path / @- to read a file or stdin). |
| `--code <value>` | No | Replacement tool implementation. |

API request and response schemas: [updateCustomTool](/api-reference/custom-tools/updateCustomTool).

## sim files \[#sim-files]

Browse workspace files, read or write content, manage versions, and configure sharing.

Also spelled `sim file`.

### sim files batch-delete \[#sim-files-batch-delete]

Delete several files at once

This archives the listed files; restore them with `files restore`.

```bash
sim files batch-delete [file-ids...] [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `file-ids...` | No | Files to delete, each by identifier or by the VFS path of a live file: `files/<folder>/<name>`. Pass the id when two files in a folder have names that display alike. At most 100 entries may be paths. Same as --file-ids. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--file-ids <value...>` | No | Files to delete, each by identifier or by the VFS path of a live file: `files/<folder>/<name>`. Pass the id when two files in a folder have names that display alike. At most 100 entries may be paths. (space- or comma-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @) (required, or pass the values as arguments). |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [bulkDeleteFiles](/api-reference/files/bulkDeleteFiles).

### sim files copy \[#sim-files-copy]

Copy file items (OAuth login or personal API key required)

```bash
sim files copy [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--source <json\|@file>` | Yes | Source owner and selected fileIds or folderIds (JSON, or @path / @- to read a file or stdin). |
| `--destination <json\|@file>` | Yes | Destination owner and optional folderId (JSON, or @path / @- to read a file or stdin). |

### sim files create \[#sim-files-create]

Create file

```bash
sim files create [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--name <value>` | Yes | File name, including its extension. Path separators and dot segments are rejected. |
| `--content-type <value>` | No | MIME type. When omitted, it is inferred from the file extension. |
| `--folder <value>` | No | Folder path as shown in the app; the leading / is optional. |
| `--content <value>` | No | Initial file content. Omit or send an empty string for a zero-byte file. The complete JSON request is capped at 10 MiB, including encoding and the envelope; the separate decoded-file limit is 50 MiB. For larger payloads, use `sim files upload <path>`. Defaults to "". |
| `--encoding <value>` | No | Encoding of the content field. Defaults to "utf-8". Accepted values: `utf-8`, `base64`. |

API request and response schemas: [createFile](/api-reference/files/createFile).

### sim files folders create \[#sim-files-folders-create]

Create a file folder at a path

```bash
sim files folders create <path>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `path` | Yes | Folder path as shown in the app; the leading / is optional |

API request and response schemas: [createFileFolder](/api-reference/files/createFilesFolder).

### sim files folders delete \[#sim-files-folders-delete]

Delete folder

This archives the file folder and, when recursive, everything inside it.

```bash
sim files folders delete <path> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `path` | Yes | Folder path as shown in the app; the leading / is optional |

**Options**

| Option | Required | Description |
| - | - | - |
| `--recursive` | No | Archive the folder and its descendants. Defaults to "false". |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [deleteFileFolder](/api-reference/files/deleteFilesFolder).

### sim files folders list \[#sim-files-folders-list]

List folders

```bash
sim files folders list [options]
```

Also available as `sim files folders ls`.

**Options**

| Option | Required | Description |
| - | - | - |
| `--parent <value>` | No | Direct parent folder path. |
| `--search <value>` | No | Case-insensitive substring match against the folder name. |
| `--sort-by <value>` | No | Field used to sort the result. Do not rely on case-insensitive ordering when sorting by `name`. Defaults to "name". Accepted values: `name`, `createdAt`, `updatedAt`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "asc". Accepted values: `asc`, `desc`. |
| `--scope <value>` | No | Which lifecycle set to list: `active` (default) returns live folders only; `archived` returns folders a recursive delete soft-deleted, which is how a caller finds a path to hand to the folder restore. Authorization is identical for both. Accepted values: `active`, `archived`. |
| `--recursive <value>` | No | Whether parentPath includes every descendant instead of direct children only. Accepted values: `true`, `1`, `yes`, `on`, `y`, `enabled`, `false`, `0`, `no`, `off`, `n`, `disabled`. |
| `--depth <value>` | No | Deepest level below parentPath to include when recursive is true. |

API request and response schemas: [listFileFolders](/api-reference/files/listFilesFolders).

### sim files folders move \[#sim-files-folders-move]

Rename or move a file folder

```bash
sim files folders move <path> <destination>
```

Also available as `sim files folders mv`.

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `path` | Yes | Folder path as shown in the app; the leading / is optional |
| `destination` | Yes | Folder path as shown in the app; the leading / is optional |

API request and response schemas: [relocateFileFolder](/api-reference/files/relocateFilesFolder).

### sim files folders restore \[#sim-files-folders-restore]

Restore an archived file folder

```bash
sim files folders restore <path>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `path` | Yes | Folder path as shown in the app; the leading / is optional |

API request and response schemas: [restoreFileFolder](/api-reference/files/restoreFilesFolder).

### sim files delete \[#sim-files-delete]

Delete file

This archives the file.

```bash
sim files delete <fileId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `fileId` | Yes | File identifier, or the VFS path of a live file: `files/<folder>/<name>`. Pass the id when two files in a folder have names that display alike. |

**Options**

| Option | Required | Description |
| - | - | - |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [deleteFile](/api-reference/files/deleteFile).

### sim files versions delete \[#sim-files-versions-delete]

Permanently delete a previous version of a file

This permanently removes the version from history and schedules deletion of its stored content; storage cleanup may retry in the background.

```bash
sim files versions delete <fileId> <version> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `fileId` | Yes | File identifier. |
| `version` | Yes | Version number. |

**Options**

| Option | Required | Description |
| - | - | - |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [deleteFileVersion](/api-reference/files/deleteFileVersion).

### sim files versions describe \[#sim-files-versions-describe]

Show the metadata of one version of a file

```bash
sim files versions describe <fileId> <version>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `fileId` | Yes | File identifier. |
| `version` | Yes | Version number. |

API request and response schemas: [getFileVersion](/api-reference/files/getFileVersion).

### sim files versions list \[#sim-files-versions-list]

List the recorded versions of a file

```bash
sim files versions list <fileId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `fileId` | Yes | File identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--sort-by <value>` | No | Field used to sort the result. Defaults to "version". Accepted values: `version`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "desc". Accepted values: `asc`, `desc`. |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `100`. |
| `--cursor <value>` | No | Continue from nextCursor returned by a previous result. |

API request and response schemas: [listFileVersions](/api-reference/files/listFileVersions).

### sim files versions read \[#sim-files-versions-read]

Read the text content of one version of a file as JSON or YAML

```bash
sim files versions read <fileId> <version> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `fileId` | Yes | File identifier. |
| `version` | Yes | Version number. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--max-bytes <value>` | No | Optional ceiling on the source bytes fed to the parser, lowering but never raising the server limit. |
| `--offset <value>` | No | First line to return, 1-based; 0 also starts at the first line. Absent starts at the first line. |
| `--limit <value>` | No | How many lines to return from `offset`. Absent reads to the end. |

API request and response schemas: [readFileVersionText](/api-reference/files/readFileVersionText).

### sim files versions revert \[#sim-files-versions-revert]

Make a previous version of a file current again

```bash
sim files versions revert <fileId> <version> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `fileId` | Yes | File identifier. |
| `version` | Yes | Version number. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--expected-current-version <value>` | No | Revert only while this is still the current version; otherwise the request fails with `409`. Omit to revert whatever is current. Collaborative edits and repeated workflow writes that fold into the current version keep its number, so prefer `expectedRevision` to guard content. |
| `--expected-revision <value>` | No | Revert only while the file still holds the content this revision names, as returned by Get file metadata or an earlier write; otherwise the request fails with `409`. Unlike a version number, it also catches edits that folded into the current version. |

API request and response schemas: [revertFileVersion](/api-reference/files/revertFileVersion).

### sim files versions download \[#sim-files-versions-download]

Download the content of one version of a file

```bash
sim files versions download <fileId> <version> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `fileId` | Yes | File identifier. |
| `version` | Yes | Version number. |

**Options**

| Option | Required | Description |
| - | - | - |
| `-o, --output-file <path>` | No | Write content to a file instead of stdout. |
| `--force` | No | Overwrite --output-file if it already exists. |

API request and response schemas: [downloadFileVersion](/api-reference/files/downloadFileVersion).

### sim files edit \[#sim-files-edit]

Apply one exact or anchor-based edit to a text file

```bash
sim files edit <fileId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `fileId` | Yes | File identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--edit <json\|@file>` | Yes | One edit object: {"mode":"search_replace","search":"old","content":"new","replaceAll":false}, {"mode":"replace_between","beforeAnchor":"start line","afterAnchor":"end line","content":"new"}, {"mode":"insert_after","anchor":"line","content":"new"}, or {"mode":"delete_between","startAnchor":"first line deleted","endAnchor":"ending line kept"}. Anchored modes also accept occurrence starting at 1 (JSON, or @path / @- to read a file or stdin). |
| `--expected-revision <value>` | No | Revision from Get file metadata or an earlier write; the request is refused with `409` when the content moved on. |

API request and response schemas: [editFileContent](/api-reference/files/editFileContent).

### sim files describe \[#sim-files-describe]

Show file metadata and sharing status

```bash
sim files describe <fileId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `fileId` | Yes | File identifier, or the VFS path of a live file: `files/<folder>/<name>`. Pass the id when two files in a folder have names that display alike. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--scope <value>` | No | Which lifecycle set to read from: `active` (default) resolves live files only and returns `404` for a file a delete soft-deleted; `archived` also resolves soft-deleted files, so metadata stays readable before the file is restored. Authorization is identical for both. Accepted values: `active`, `archived`. |

API request and response schemas: [getFile](/api-reference/files/getFile).

### sim files share get \[#sim-files-share-get]

Show a file’s share settings

```bash
sim files share get <fileId>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `fileId` | Yes | File identifier. |

API request and response schemas: [getFileShare](/api-reference/files/getFileShare).

### sim files share set \[#sim-files-share-set]

Enable or disable sharing for a file (OAuth login or personal API key required)

```bash
sim files share set <fileId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `fileId` | Yes | File identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--is-active <true\|false>` | Yes | Whether the share should resolve. Disabling preserves the token and the whole access configuration, so re-enabling restores the share as it was; enabling rewrites the credentials the resulting mode does not use. Accepted values: `true`, `false`. |
| `--auth-type <value>` | No | How access to the share is gated. The stored mode is kept when omitted. Enabling `public` clears the stored password and empties `allowedEmails`; `password` empties `allowedEmails`; `email` and `sso` clear the stored password. Accepted values: `public`, `password`, `email`, `sso`. |
| `--password <value>` | No | Password of 15 to 1024 characters for a password-gated share. Kept when omitted; enabling `password` with neither a supplied nor a stored password is a 400. Taken literally, except that a request from the Sim agent resolves a whole-value `{{ENV_VAR}}` reference to that variable before the rules apply. |
| `--allowed-emails <value...>` | No | Allowed addresses or `@domain` patterns for email and SSO shares. Kept when omitted; enabling `email` or `sso` with an empty resulting list is a 400. (space- or comma-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |

API request and response schemas: [upsertFileShare](/api-reference/files/upsertFileShare).

### sim files list \[#sim-files-list]

List files

```bash
sim files list [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--folder <value>` | No | Folder path as shown in the app; the leading / is optional. |
| `--recursive` | No | Include subfolders in the folder filter. Defaults to true when searching and false otherwise. Ignored without a folder filter. |
| `--no-recursive` | No | Send --recursive as false. |
| `--scope <value>` | No | Which lifecycle set to list: `active` (default) for live files, `archived` for files a delete soft-deleted. `folderPath` resolves against active folders only, so pairing it with `scope=archived` returns an empty page when the containing folder was archived too. Accepted values: `active`, `archived`. |
| `--search <value>` | No | Case-insensitive substring match against the file name. |
| `--sort-by <value>` | No | Field used to sort the result. Do not rely on case-insensitive ordering when sorting by `name`. Defaults to "uploadedAt". Accepted values: `name`, `size`, `uploadedAt`, `updatedAt`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "asc". Accepted values: `asc`, `desc`. |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `0`. |

API request and response schemas: [listFiles](/api-reference/files/listFiles).

### sim files move \[#sim-files-move]

Move files into another folder

```bash
sim files move [options]
```

Also available as `sim files mv`.

**Options**

| Option | Required | Description |
| - | - | - |
| `--file-ids <value...>` | Yes | File identifiers to update. (space- or comma-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
| `--to <value>` | No | Destination folder path; omit for root. |

API request and response schemas: [moveFileItems](/api-reference/files/moveFileItems).

### sim files read \[#sim-files-read]

Read a file’s text content as JSON or YAML

```bash
sim files read <fileId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `fileId` | Yes | File identifier, or the file’s VFS path: `files/<folder>/<name>`, or `uploads/<name>` for a Chat upload. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--max-bytes <value>` | No | Optional ceiling on the source bytes fed to the parser, lowering but never raising the server limit. |
| `--offset <value>` | No | First line to return, 1-based; 0 also starts at the first line. Absent starts at the first line. |
| `--limit <value>` | No | How many lines to return from `offset`. Absent reads to the end. |

API request and response schemas: [readFileText](/api-reference/files/readFileText).

### sim files rename \[#sim-files-rename]

Rename a file

```bash
sim files rename <fileId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `fileId` | Yes | File identifier, or the VFS path of a live file: `files/<folder>/<name>`. Pass the id when two files in a folder have names that display alike. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--name <value>` | Yes | New file name, including its extension. |

API request and response schemas: [renameFile](/api-reference/files/renameFile).

### sim files restore \[#sim-files-restore]

Restore an archived file

```bash
sim files restore <fileId>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `fileId` | Yes | File identifier. |

API request and response schemas: [restoreFile](/api-reference/files/restoreFile).

### sim files search \[#sim-files-search]

Search file content

```bash
sim files search [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--query <value>` | Yes | Regular expression, or exact text when `mode` is `exact`. |
| `--mode <value>` | No | How `query` is read. Defaults to "regex". Accepted values: `exact`, `regex`. |
| `--max-results <value>` | No | Maximum matching lines to return. Defaults to 50. |
| `--folder <value...>` | No | Folders to search, by path as shown in the app; omit to search the whole workspace (space-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
| `--include-subfolders` | No | Whether each folder scope includes nested folders; on by default. |
| `--no-include-subfolders` | No | Send --include-subfolders as false. |

API request and response schemas: [searchFileContent](/api-reference/files/searchFileContent).

### sim files unzip \[#sim-files-unzip]

Unzip an archive into a new folder beside it

This writes every file in the archive into the workspace.

```bash
sim files unzip <fileId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `fileId` | Yes | File identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [unzipFile](/api-reference/files/unzipFile).

### sim files set-content \[#sim-files-set-content]

Replace a file’s contents

```bash
sim files set-content <fileId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `fileId` | Yes | File identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--content <value>` | Yes | Complete replacement content for the file. The complete JSON request is capped at 10 MiB, including UTF-8 encoding, escaping, base64, and the envelope. The separate decoded-file limit is 50 MiB. Small patches can edit a larger stored text file without sending its full content. |
| `--encoding <value>` | No | Content encoding. Defaults to "utf-8". Accepted values: `utf-8`, `base64`. |
| `--expected-revision <value>` | No | Revision from Get file metadata or an earlier write; the request is refused with `409` when the content moved on. |

API request and response schemas: [updateFileContent](/api-reference/files/updateFileContent).

### sim files upload \[#sim-files-upload]

Upload a file to the workspace

```bash
sim files upload <path> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `path` | Yes | Local file to upload |

**Options**

| Option | Required | Description |
| - | - | - |
| `--folder <path>` | No | Folder path as shown in the app; defaults to the root folder. |
| `--name <name>` | No | Store it under a different name. |

API request and response schemas: [createFileUpload](/api-reference/files/createFileUpload), [createFileUploadPartUrls](/api-reference/files/createFileUploadPartUrls), [completeFileUpload](/api-reference/files/completeFileUpload), [abortFileUpload](/api-reference/files/abortFileUpload).

### sim files get \[#sim-files-get]

Download a file’s content to stdout or a local file

```bash
sim files get <fileId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `fileId` | Yes | File whose content to read: its id, or its `files/<folder>/<name>` VFS path |

**Options**

| Option | Required | Description |
| - | - | - |
| `-o, --output-file <path>` | No | Write content to a file instead of stdout. |
| `--force` | No | Overwrite --output-file if it already exists. |

API request and response schemas: [downloadFile](/api-reference/files/downloadFile).

### sim files ls \[#sim-files-ls]

List file resources and child folders together

```bash
sim files ls [path] [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `path` | No | Folder path to list; defaults to the root folder |

**Options**

| Option | Required | Description |
| - | - | - |
| `--search <text>` | No | Filter folders and resources by name. |
| `--limit <n>` | No | Maximum combined items to return (0 for everything). Defaults to `0`. |

API request and response schemas: [listFiles](/api-reference/files/listFiles), [listFileFolders](/api-reference/files/listFilesFolders).

### sim files mkdir \[#sim-files-mkdir]

Create a file directory at a path

```bash
sim files mkdir <path>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `path` | Yes | Folder path to create; the leading / is optional |

API request and response schemas: [createFileFolder](/api-reference/files/createFilesFolder).

## sim knowledge \[#sim-knowledge]

Manage knowledge bases, indexed documents, search, tags, and connector syncs.

Also spelled `sim kb`.

### sim knowledge from-workspace-files create \[#sim-knowledge-from-workspace-files-create]

Index files the workspace already stores (OAuth login or personal API key required)

```bash
sim knowledge from-workspace-files create <knowledgeBaseId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `knowledgeBaseId` | Yes | Unique knowledge base identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--file <value...>` | Yes | Workspace file ID or canonical files/\<folder>/\<name> path (repeatable) (space- or comma-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |

API request and response schemas: [addWorkspaceFilesToKnowledgeBase](/api-reference/knowledge-bases/addWorkspaceFilesToKnowledgeBase).

### sim knowledge tags save \[#sim-knowledge-tags-save]

Declare the tag definitions a knowledge base needs (OAuth login or personal API key required)

```bash
sim knowledge tags save <knowledgeBaseId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `knowledgeBaseId` | Yes | Unique knowledge base identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--definitions <json\|@file>` | Yes | Tag definitions: \[{"tagSlot":"tag1","displayName":"category","fieldType":"text"}] (JSON, or @path / @- to read a file or stdin). |

API request and response schemas: [bulkSaveKnowledgeTagDefinitions](/api-reference/knowledge-bases/bulkSaveKnowledgeTagDefinitions).

### sim knowledge tags create \[#sim-knowledge-tags-create]

Create tag (OAuth login or personal API key required)

```bash
sim knowledge tags create <knowledgeBaseId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `knowledgeBaseId` | Yes | Unique knowledge base identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--display-name <value>` | Yes | Name tag filters and document reads use for this tag. |
| `--field-type <value>` | No | Value type stored in the slot; it decides which slots are usable and which filter operators apply. Defaults to text, so a number, date, or boolean slot must name its type here. Slot capacity per type: text 7, number 5, date 2, boolean 3. Accepted values: `text`, `number`, `date`, `boolean`. |
| `--tag-slot <value>` | No | Slot to store the tag in. Omit to take the next free slot for the field type; a slot that does not belong to the field type, or one already in use, is rejected. Accepted values: `tag1`, `tag2`, `tag3`, `tag4`, `tag5`, `tag6`, `tag7`, `number1`, `number2`, `number3`, `number4`, `number5`, `date1`, `date2`, `boolean1`, `boolean2`, `boolean3`. |

API request and response schemas: [createKnowledgeTag](/api-reference/knowledge-bases/createKnowledgeTag).

### sim knowledge tags delete \[#sim-knowledge-tags-delete]

Delete tag (OAuth login or personal API key required)

This deletes the tag and clears its values on every document and chunk.

```bash
sim knowledge tags delete <knowledgeBaseId> <tagId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `knowledgeBaseId` | Yes | Unique knowledge base identifier. |
| `tagId` | Yes | Unique tag definition identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [deleteKnowledgeTag](/api-reference/knowledge-bases/deleteKnowledgeTag).

### sim knowledge tags cleanup \[#sim-knowledge-tags-cleanup]

Remove tag definitions no document still uses (OAuth login or personal API key required)

This deletes every tag definition no document still uses. Their slots become free for a different field.

```bash
sim knowledge tags cleanup <knowledgeBaseId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `knowledgeBaseId` | Yes | Unique knowledge base identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--unused` | No | Whether to remove only the tag definitions no document in the knowledge base still carries a value for. Defaults to true. Pass --no-unused to delete every definition on the knowledge base, which also clears its slot on every document and chunk and is not recoverable. |
| `--no-unused` | No | Send --unused as false. |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [deleteKnowledgeTagDefinitions](/api-reference/knowledge-bases/deleteKnowledgeTagDefinitions).

### sim knowledge tags next-slot \[#sim-knowledge-tags-next-slot]

Show which tag slot a create would take for a field type (OAuth login or personal API key required)

```bash
sim knowledge tags next-slot <knowledgeBaseId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `knowledgeBaseId` | Yes | Unique knowledge base identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--field-type <value>` | Yes | Value type stored in the slot; it decides which slots are usable and which filter operators apply. Slot capacity per type: text 7, number 5, date 2, boolean 3. Accepted values: `text`, `number`, `date`, `boolean`. |

API request and response schemas: [getNextKnowledgeTagSlot](/api-reference/knowledge-bases/getNextKnowledgeTagSlot).

### sim knowledge tags list \[#sim-knowledge-tags-list]

List tags

```bash
sim knowledge tags list <knowledgeBaseId>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `knowledgeBaseId` | Yes | Unique knowledge base identifier. |

API request and response schemas: [listKnowledgeTags](/api-reference/knowledge-bases/listKnowledgeTags).

### sim knowledge tags usage \[#sim-knowledge-tags-usage]

Show how many documents and chunks carry each tag (OAuth login or personal API key required)

```bash
sim knowledge tags usage <knowledgeBaseId>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `knowledgeBaseId` | Yes | Unique knowledge base identifier. |

API request and response schemas: [listKnowledgeTagUsage](/api-reference/knowledge-bases/listKnowledgeTagUsage).

### sim knowledge tags update \[#sim-knowledge-tags-update]

Update tag (OAuth login or personal API key required)

```bash
sim knowledge tags update <knowledgeBaseId> <tagId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `knowledgeBaseId` | Yes | Unique knowledge base identifier. |
| `tagId` | Yes | Unique tag definition identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--display-name <value>` | No | New tag display name. |
| `--field-type <value>` | No | New value type for the tag. Accepted values: `text`, `number`, `date`, `boolean`. |

API request and response schemas: [updateKnowledgeTag](/api-reference/knowledge-bases/updateKnowledgeTag).

### sim knowledge chunks batch-update \[#sim-knowledge-chunks-batch-update]

Enable, disable, or delete many chunks at once (OAuth login or personal API key required)

This applies --operation to every named chunk; with --operation delete it deletes them and their embeddings, which cannot be undone.

```bash
sim knowledge chunks batch-update <knowledgeBaseId> <documentId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `knowledgeBaseId` | Yes | Unique knowledge base identifier. |
| `documentId` | Yes | Unique knowledge document identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--operation <value>` | Yes | What to do with the selected chunks. Accepted values: `enable`, `disable`, `delete`. |
| `--chunk <value...>` | Yes | Chunks to operate on, by identifier. An id naming no chunk in the document is reported in errors and does not fail the request. (space- or comma-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [bulkUpdateKnowledgeChunks](/api-reference/knowledge-bases/bulkUpdateKnowledgeChunks).

### sim knowledge chunks create \[#sim-knowledge-chunks-create]

Create chunk (OAuth login or personal API key required)

```bash
sim knowledge chunks create <knowledgeBaseId> <documentId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `knowledgeBaseId` | Yes | Unique knowledge base identifier. |
| `documentId` | Yes | Unique knowledge document identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--content <value>` | Yes | Text embedded before the response. Search includes it when the chunk and document are enabled and the document has completed processing. |
| `--enabled` | No | Whether the new chunk participates in search. Defaults to true. |
| `--no-enabled` | No | Send --enabled as false. |

API request and response schemas: [createKnowledgeChunk](/api-reference/knowledge-bases/createKnowledgeChunk).

### sim knowledge chunks delete \[#sim-knowledge-chunks-delete]

Delete chunk (OAuth login or personal API key required)

This deletes the chunk and its embedding.

```bash
sim knowledge chunks delete <knowledgeBaseId> <documentId> <chunkId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `knowledgeBaseId` | Yes | Unique knowledge base identifier. |
| `documentId` | Yes | Unique knowledge document identifier. |
| `chunkId` | Yes | Unique chunk identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [deleteKnowledgeChunk](/api-reference/knowledge-bases/deleteKnowledgeChunk).

### sim knowledge chunks get \[#sim-knowledge-chunks-get]

Get chunk (OAuth login or personal API key required)

```bash
sim knowledge chunks get <knowledgeBaseId> <documentId> <chunkId>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `knowledgeBaseId` | Yes | Unique knowledge base identifier. |
| `documentId` | Yes | Unique knowledge document identifier. |
| `chunkId` | Yes | Unique chunk identifier. |

API request and response schemas: [getKnowledgeChunk](/api-reference/knowledge-bases/getKnowledgeChunk).

### sim knowledge chunks list \[#sim-knowledge-chunks-list]

List chunks (OAuth login or personal API key required)

```bash
sim knowledge chunks list <knowledgeBaseId> <documentId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `knowledgeBaseId` | Yes | Unique knowledge base identifier. |
| `documentId` | Yes | Unique knowledge document identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--search <value>` | No | Case-insensitive substring match against chunk content. |
| `--enabled <value>` | No | Restrict to enabled or disabled chunks. `all` returns both. Defaults to "all". Accepted values: `true`, `false`, `all`. |
| `--sort-by <value>` | No | Field used to sort the result. Defaults to "chunkIndex". Accepted values: `chunkIndex`, `tokenCount`, `enabled`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "asc". Accepted values: `asc`, `desc`. |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `100`. |
| `--cursor <value>` | No | Continue from nextCursor returned by a previous result. |

API request and response schemas: [listKnowledgeChunks](/api-reference/knowledge-bases/listKnowledgeChunks).

### sim knowledge chunks update \[#sim-knowledge-chunks-update]

Update chunk (OAuth login or personal API key required)

```bash
sim knowledge chunks update <knowledgeBaseId> <documentId> <chunkId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `knowledgeBaseId` | Yes | Unique knowledge base identifier. |
| `documentId` | Yes | Unique knowledge document identifier. |
| `chunkId` | Yes | Unique chunk identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--content <value>` | No | Replacement text. Changing it re-embeds the chunk and re-derives its token and character counts. |
| `--enabled` | No | Whether the chunk participates in search. Disabling keeps it indexed. |
| `--no-enabled` | No | Send --enabled as false. |

API request and response schemas: [updateKnowledgeChunk](/api-reference/knowledge-bases/updateKnowledgeChunk).

### sim knowledge documents batch-update \[#sim-knowledge-documents-batch-update]

Enable or disable every matching document (OAuth login or personal API key required)

```bash
sim knowledge documents batch-update <knowledgeBaseId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `knowledgeBaseId` | Yes | Unique knowledge base identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--operation <value>` | Yes | Whether the selected documents become enabled or disabled for search. Accepted values: `enable`, `disable`. |
| `--document <value...>` | No | Documents to update, by identifier. (space- or comma-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
| `--select-all` | No | Apply to every document in the knowledge base. |
| `--enabled-filter <value>` | No | With `selectAll`, restrict the update to documents in this state. Accepted values: `all`, `enabled`, `disabled`. |

API request and response schemas: [bulkUpdateKnowledgeDocuments](/api-reference/knowledge-bases/bulkUpdateKnowledgeDocuments).

### sim knowledge documents delete \[#sim-knowledge-documents-delete]

Delete a document from a knowledge base

This deletes the document and its embeddings.

```bash
sim knowledge documents delete <knowledgeBaseId> <documentId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `knowledgeBaseId` | Yes | Unique knowledge base identifier. |
| `documentId` | Yes | Unique knowledge document identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [deleteKnowledgeDocument](/api-reference/knowledge-bases/deleteKnowledgeDocument).

### sim knowledge documents get \[#sim-knowledge-documents-get]

Get document

```bash
sim knowledge documents get <knowledgeBaseId> <documentId>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `knowledgeBaseId` | Yes | Unique knowledge base identifier. |
| `documentId` | Yes | Unique knowledge document identifier. |

API request and response schemas: [getKnowledgeDocument](/api-reference/knowledge-bases/getKnowledgeDocument).

### sim knowledge documents list \[#sim-knowledge-documents-list]

List documents

```bash
sim knowledge documents list <knowledgeBaseId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `knowledgeBaseId` | Yes | Unique knowledge base identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `100`. |
| `--search <value>` | No | Case-insensitive substring match against the document filename. |
| `--enabled-filter <value>` | No | Filter by whether documents are enabled for search. Defaults to "all". Accepted values: `all`, `enabled`, `disabled`. |
| `--sort-by <value>` | No | Field used to sort the result. Do not rely on case-insensitive ordering when sorting by `filename`. Defaults to "uploadedAt". Accepted values: `filename`, `fileSize`, `tokenCount`, `chunkCount`, `uploadedAt`, `processingStatus`, `enabled`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "desc". Accepted values: `asc`, `desc`. |
| `--cursor <value>` | No | Continue from nextCursor returned by a previous result. |
| `--tag-filters <value>` | No | A JSON-encoded array of at most 10 tag filters, using the same display-name shape as knowledge search: `[{"tagName":"category","operator":"eq","value":"billing"}]`. Every filter must hold, including two that name the same tag. A name that is not defined in this knowledge base is rejected, never ignored. |

API request and response schemas: [listKnowledgeDocuments](/api-reference/knowledge-bases/listKnowledgeDocuments).

### sim knowledge documents update \[#sim-knowledge-documents-update]

Update document (OAuth login or personal API key required)

```bash
sim knowledge documents update <knowledgeBaseId> <documentId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `knowledgeBaseId` | Yes | Unique knowledge base identifier. |
| `documentId` | Yes | Unique knowledge document identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--filename <value>` | No | New filename for the document. |
| `--enabled` | No | Whether the document participates in search. Disabling keeps it indexed. |
| `--no-enabled` | No | Send --enabled as false. |
| `--tag1 <value>` | No | New value for tag slot 1. |
| `--tag2 <value>` | No | New value for tag slot 2. |
| `--tag3 <value>` | No | New value for tag slot 3. |
| `--tag4 <value>` | No | New value for tag slot 4. |
| `--tag5 <value>` | No | New value for tag slot 5. |
| `--tag6 <value>` | No | New value for tag slot 6. |
| `--tag7 <value>` | No | New value for tag slot 7. |
| `--number1 <value>` | No | New value for number tag slot 1. |
| `--number2 <value>` | No | New value for number tag slot 2. |
| `--number3 <value>` | No | New value for number tag slot 3. |
| `--number4 <value>` | No | New value for number tag slot 4. |
| `--number5 <value>` | No | New value for number tag slot 5. |
| `--date1 <value>` | No | New value for date tag slot 1, formatted YYYY-MM-DD. |
| `--date2 <value>` | No | New value for date tag slot 2, formatted YYYY-MM-DD. |
| `--boolean1` | No | New value for boolean tag slot 1. |
| `--no-boolean1` | No | Send --boolean1 as false. |
| `--boolean2` | No | New value for boolean tag slot 2. |
| `--no-boolean2` | No | Send --boolean2 as false. |
| `--boolean3` | No | New value for boolean tag slot 3. |
| `--no-boolean3` | No | Send --boolean3 as false. |
| `--retry-processing` | No | Requeue a failed or stuck document for processing. Send it alone — no other field may accompany it — and it answers with a queue acknowledgement rather than the document. |

API request and response schemas: [updateKnowledgeDocument](/api-reference/knowledge-bases/updateKnowledgeDocument).

### sim knowledge documents upload \[#sim-knowledge-documents-upload]

Upload a document to a knowledge base

```bash
sim knowledge documents upload <knowledgeBaseId> <path> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `knowledgeBaseId` | Yes | Knowledge base to upload into |
| `path` | Yes | Local file to upload |

**Options**

| Option | Required | Description |
| - | - | - |
| `--name <name>` | No | Store it under a different name. |
| `--tag <value...>` | No | Document tags, in tag1 through tag7 order. |
| `--recipe <name>` | No | Document processing recipe. Accepted values: `default`, `plain`, `markdown`, `code`. |
| `--lang <code>` | No | Document language tag: hyphen-separated letter and digit subtags, for example en or en-US. |

API request and response schemas: [createKnowledgeDocumentUpload](/api-reference/knowledge-bases/createKnowledgeDocumentUpload), [createKnowledgeDocumentUploadPartUrls](/api-reference/knowledge-bases/createKnowledgeDocumentUploadPartUrls), [completeKnowledgeDocumentUpload](/api-reference/knowledge-bases/completeKnowledgeDocumentUpload), [abortKnowledgeDocumentUpload](/api-reference/knowledge-bases/abortKnowledgeDocumentUpload).

### sim knowledge imports cancel \[#sim-knowledge-imports-cancel]

Stop a running import

```bash
sim knowledge imports cancel <importId>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `importId` | Yes | Unique knowledge-base import identifier. |

API request and response schemas: [cancelKnowledgeImport](/api-reference/knowledge-bases/cancelKnowledgeImport).

### sim knowledge imports get \[#sim-knowledge-imports-get]

Get knowledge base import

```bash
sim knowledge imports get <importId>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `importId` | Yes | Unique knowledge-base import identifier. |

API request and response schemas: [getKnowledgeImport](/api-reference/knowledge-bases/getKnowledgeImport).

### sim knowledge create \[#sim-knowledge-create]

Create knowledge base

```bash
sim knowledge create [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--name <value>` | Yes | Human-readable knowledge base name. |
| `--description <value>` | No | Optional knowledge base description. |
| `--chunking-config <json\|@file>` | No | Chunking configuration; defaults are applied when omitted. (JSON, or @path / @- to read a file or stdin). |
| `--folder <value>` | No | Folder path as shown in the app; the leading / is optional. |

API request and response schemas: [createKnowledgeBase](/api-reference/knowledge-bases/createKnowledgeBase).

### sim knowledge connectors create \[#sim-knowledge-connectors-create]

Create knowledge connector (OAuth login or personal API key required)

```bash
sim knowledge connectors create <knowledgeBaseId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `knowledgeBaseId` | Yes | Unique knowledge base identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--connector-type <value>` | Yes | Registered connector type. |
| `--credential-id <value>` | No | OAuth credential identifier for connector types whose `auth.mode` is `oauth` (see connector types), or a saved credential for an `apiKey` connector type that declares `auth.savedCredential` (such as Amazon S3 with a saved AWS credential); otherwise omit it for `apiKey` connectors. |
| `--api-key <value>` | No | Write-only API key for connector types whose `auth.mode` is `apiKey` (see connector types), or a personal access token for an OAuth connector that also accepts one, such as GitHub. Send it instead of `credentialId`. Pass a raw key, or a secret reference written as the whole value `{{SECRET_NAME}}`, which the server resolves; `$SECRET_NAME` is not a reference. |
| `--source-config <json\|@file>` | Yes | Connector-specific source selection and filtering configuration. (JSON, or @path / @- to read a file or stdin). |
| `--sync-interval-minutes <value>` | No | Scheduled synchronization interval in minutes; zero disables scheduling. Defaults to 1440. |

API request and response schemas: [createKnowledgeConnector](/api-reference/knowledge-bases/createKnowledgeConnector).

### sim knowledge connectors delete \[#sim-knowledge-connectors-delete]

Delete knowledge connector (OAuth login or personal API key required)

This deletes the connector; --delete-documents also deletes its synchronized documents.

```bash
sim knowledge connectors delete <knowledgeBaseId> <connectorId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `knowledgeBaseId` | Yes | Knowledge base that owns the connector. |
| `connectorId` | Yes | Connector selected for the operation. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--delete-documents` | No | Also permanently delete documents produced by this connector. |
| `--no-delete-documents` | No | Send --delete-documents as false. |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [deleteKnowledgeConnector](/api-reference/knowledge-bases/deleteKnowledgeConnector).

### sim knowledge connectors get \[#sim-knowledge-connectors-get]

Get knowledge connector (OAuth login or personal API key required)

```bash
sim knowledge connectors get <knowledgeBaseId> <connectorId>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `knowledgeBaseId` | Yes | Knowledge base that owns the connector. |
| `connectorId` | Yes | Connector selected for the operation. |

API request and response schemas: [getKnowledgeConnector](/api-reference/knowledge-bases/getKnowledgeConnector).

### sim knowledge connectors documents list \[#sim-knowledge-connectors-documents-list]

List knowledge connector documents (OAuth login or personal API key required)

```bash
sim knowledge connectors documents list <knowledgeBaseId> <connectorId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `knowledgeBaseId` | Yes | Knowledge base that owns the connector. |
| `connectorId` | Yes | Connector selected for the operation. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--include-excluded` | No | Include documents explicitly excluded by a user. |
| `--no-include-excluded` | No | Send --include-excluded as false. |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `100`. |
| `--cursor <value>` | No | Continue from nextCursor returned by a previous result. |

API request and response schemas: [listKnowledgeConnectorDocuments](/api-reference/knowledge-bases/listKnowledgeConnectorDocuments).

### sim knowledge connectors documents update \[#sim-knowledge-connectors-documents-update]

Update knowledge connector documents (OAuth login or personal API key required)

```bash
sim knowledge connectors documents update <knowledgeBaseId> <connectorId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `knowledgeBaseId` | Yes | Knowledge base that owns the connector. |
| `connectorId` | Yes | Connector selected for the operation. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--operation <value>` | Yes | Whether to restore or exclude the selected documents. Accepted values: `restore`, `exclude`. |
| `--document <value...>` | Yes | Connector document identifiers to update. (space- or comma-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |

API request and response schemas: [updateKnowledgeConnectorDocuments](/api-reference/knowledge-bases/updateKnowledgeConnectorDocuments).

### sim knowledge connectors list \[#sim-knowledge-connectors-list]

List knowledge connectors (OAuth login or personal API key required)

```bash
sim knowledge connectors list <knowledgeBaseId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `knowledgeBaseId` | Yes | Unique knowledge base identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--sort-by <value>` | No | Field used to sort the result. Defaults to "createdAt". Accepted values: `connectorType`, `createdAt`, `updatedAt`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "desc". Accepted values: `asc`, `desc`. |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `0`. |

API request and response schemas: [listKnowledgeConnectors](/api-reference/knowledge-bases/listKnowledgeConnectors).

### sim knowledge connectors sync \[#sim-knowledge-connectors-sync]

Queue a knowledge connector synchronization (OAuth login or personal API key required)

```bash
sim knowledge connectors sync <knowledgeBaseId> <connectorId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `knowledgeBaseId` | Yes | Knowledge base that owns the connector. |
| `connectorId` | Yes | Connector selected for the operation. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--rehydrate` | No | Re-fetch and re-index every existing connector document. Defaults to false. |
| `--no-rehydrate` | No | Send --rehydrate as false. |

API request and response schemas: [syncKnowledgeConnector](/api-reference/knowledge-bases/syncKnowledgeConnector).

### sim knowledge connectors update \[#sim-knowledge-connectors-update]

Update knowledge connector (OAuth login or personal API key required)

```bash
sim knowledge connectors update <knowledgeBaseId> <connectorId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `knowledgeBaseId` | Yes | Knowledge base that owns the connector. |
| `connectorId` | Yes | Connector selected for the operation. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--source-config <json\|@file>` | No | Replacement source selection and filtering configuration. Updating a runnable connector queues synchronization; paused connectors remain paused. (JSON, or @path / @- to read a file or stdin). |
| `--sync-interval-minutes <value>` | No | New scheduled synchronization interval in minutes. |
| `--status <value>` | No | New connector state. Accepted values: `active`, `paused`. |

API request and response schemas: [updateKnowledgeConnector](/api-reference/knowledge-bases/updateKnowledgeConnector).

### sim knowledge folders create \[#sim-knowledge-folders-create]

Create a knowledge folder at a path

```bash
sim knowledge folders create <path>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `path` | Yes | Folder path as shown in the app; the leading / is optional |

API request and response schemas: [createKnowledgeFolder](/api-reference/knowledge-bases/createKnowledgeFolder).

### sim knowledge folders delete \[#sim-knowledge-folders-delete]

Delete folder

This archives the knowledge folder and, when recursive, everything inside it.

```bash
sim knowledge folders delete <path> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `path` | Yes | Folder path as shown in the app; the leading / is optional |

**Options**

| Option | Required | Description |
| - | - | - |
| `--recursive` | No | Archive the folder and its descendants. Defaults to "false". |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [deleteKnowledgeFolder](/api-reference/knowledge-bases/deleteKnowledgeFolder).

### sim knowledge folders list \[#sim-knowledge-folders-list]

List knowledge folders

```bash
sim knowledge folders list [options]
```

Also available as `sim knowledge folders ls`.

**Options**

| Option | Required | Description |
| - | - | - |
| `--parent <value>` | No | Direct parent folder path. |
| `--search <value>` | No | Case-insensitive substring match against the folder name. |
| `--sort-by <value>` | No | Field used to sort the result. Do not rely on case-insensitive ordering when sorting by `name`. Defaults to "name". Accepted values: `name`, `createdAt`, `updatedAt`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "asc". Accepted values: `asc`, `desc`. |

API request and response schemas: [listKnowledgeFolders](/api-reference/knowledge-bases/listKnowledgeFolders).

### sim knowledge folders move \[#sim-knowledge-folders-move]

Rename or move a knowledge folder

```bash
sim knowledge folders move <path> <destination>
```

Also available as `sim knowledge folders mv`.

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `path` | Yes | Folder path as shown in the app; the leading / is optional |
| `destination` | Yes | Folder path as shown in the app; the leading / is optional |

API request and response schemas: [relocateKnowledgeFolder](/api-reference/knowledge-bases/relocateKnowledgeFolder).

### sim knowledge delete \[#sim-knowledge-delete]

Delete knowledge base

This archives the knowledge base and every document in it; restore with `knowledge restore`.

```bash
sim knowledge delete <knowledgeBaseId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `knowledgeBaseId` | Yes | Unique knowledge base identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [deleteKnowledgeBase](/api-reference/knowledge-bases/deleteKnowledgeBase).

### sim knowledge get \[#sim-knowledge-get]

Get knowledge base

```bash
sim knowledge get <knowledgeBaseId>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `knowledgeBaseId` | Yes | Unique knowledge base identifier. |

API request and response schemas: [getKnowledgeBase](/api-reference/knowledge-bases/getKnowledgeBase).

### sim knowledge list \[#sim-knowledge-list]

List knowledge bases

```bash
sim knowledge list [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--scope <value>` | No | Lifecycle scope: active or archived knowledge bases. Use Restore knowledge base to recover archived entries. Folder paths resolve only active folders, so filtering by an archived folder returns no matches. Defaults to "active". Accepted values: `active`, `archived`. |
| `--folder <value>` | No | Folder path as shown in the app; the leading / is optional. |
| `--search <value>` | No | Case-insensitive substring match against the resource name. |
| `--sort-by <value>` | No | Field used to sort the result. Do not rely on case-insensitive ordering when sorting by `name`. Defaults to "createdAt". Accepted values: `name`, `createdAt`, `updatedAt`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "asc". Accepted values: `asc`, `desc`. |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `0`. |

API request and response schemas: [listKnowledgeBases](/api-reference/knowledge-bases/listKnowledgeBases).

### sim knowledge restore \[#sim-knowledge-restore]

Restore an archived knowledge base

```bash
sim knowledge restore <knowledgeBaseId>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `knowledgeBaseId` | Yes | Unique knowledge base identifier. |

API request and response schemas: [restoreKnowledgeBase](/api-reference/knowledge-bases/restoreKnowledgeBase).

### sim knowledge search \[#sim-knowledge-search]

Search knowledge

```bash
sim knowledge search [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--kb <value...>` | Yes | Knowledge base ID (repeatable) (space- or comma-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
| `--query <value>` | No | Text to search for. |
| `--top-k <value>` | No | Maximum number of search results to return. Must be a whole number between 1 and 100. Defaults to 10. |
| `--tag-filters <json\|@file>` | No | Tag filters as \[{"tagName":"...","operator":"...","value":"..."}] (JSON, or @path / @- to read a file or stdin). |
| `--search-mode <value>` | No | Search algorithm. Accepted values: `vector`, `hybrid`. |
| `--reranker-enabled` | No | Reorder retrieved chunks with a reranking model before truncating to `topK`. Ignored for tag-only searches. A completed reranking call adds a search unit. If reranking is unavailable, results keep their retrieval order; check `rerankerStatus`. |
| `--no-reranker-enabled` | No | Send --reranker-enabled as false. |
| `--reranker-model <value>` | No | Reranking model to use when `rerankerEnabled` is true. Defaults to `rerank-v4.0-fast`. Accepted values: `rerank-v4.0-pro`, `rerank-v4.0-fast`, `rerank-v3.5`. |
| `--reranker-input-count <value>` | No | How many candidate chunks to retrieve before reranking. Defaults to four times `topK`, capped at 100. A larger pool costs more retrieval work but gives the reranker more to choose from. |

API request and response schemas: [searchKnowledge](/api-reference/knowledge-bases/searchKnowledge).

### sim knowledge update \[#sim-knowledge-update]

Update knowledge base

```bash
sim knowledge update <knowledgeBaseId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `knowledgeBaseId` | Yes | Unique knowledge base identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--name <value>` | No | New knowledge base name. |
| `--description <value>` | No | New knowledge base description. |
| `--chunking-config <json\|@file>` | No | New document chunking configuration. (JSON, or @path / @- to read a file or stdin). |
| `--folder <value>` | No | Folder path as shown in the app; the leading / is optional. |

API request and response schemas: [updateKnowledgeBase](/api-reference/knowledge-bases/updateKnowledgeBase).

### sim knowledge mv \[#sim-knowledge-mv]

Move a knowledge base to a folder

```bash
sim knowledge mv <knowledgeBaseId> <folder>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `knowledgeBaseId` | Yes | Unique knowledge base identifier. |
| `folder` | Yes | Folder path as shown in the app; the leading / is optional |

API request and response schemas: [updateKnowledgeBase](/api-reference/knowledge-bases/updateKnowledgeBase).

### sim knowledge export \[#sim-knowledge-export]

Export a knowledge base as a .simkb.zip bundle

```bash
sim knowledge export <knowledgeBaseId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `knowledgeBaseId` | Yes | Knowledge base to export |

**Options**

| Option | Required | Description |
| - | - | - |
| `-o, --output-file <path>` | No | Write the bundle to this path instead of the name the server suggests; pass - to stream it to stdout. |
| `--force` | No | Overwrite --output-file if it already exists. |
| `--no-vectors` | No | Leave chunk vectors out of the bundle, so an import re-embeds every chunk. |

API request and response schemas: [exportKnowledgeBase](/api-reference/knowledge-bases/exportKnowledgeBase).

### sim knowledge import \[#sim-knowledge-import]

Create a knowledge base from an exported .simkb.zip bundle

```bash
sim knowledge import <path> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `path` | Yes | Bundle archive written by `sim knowledge export` |

**Options**

| Option | Required | Description |
| - | - | - |
| `--name <name>` | No | Name for the new knowledge base; defaults to the bundle's own name. |
| `--no-wait` | No | Return once the import is started instead of watching it. |

API request and response schemas: [createKnowledgeImport](/api-reference/knowledge-bases/createKnowledgeImport), [createKnowledgeImportPartUrls](/api-reference/knowledge-bases/createKnowledgeImportPartUrls), [completeKnowledgeImport](/api-reference/knowledge-bases/completeKnowledgeImport), [cancelKnowledgeImport](/api-reference/knowledge-bases/cancelKnowledgeImport), [getKnowledgeImport](/api-reference/knowledge-bases/getKnowledgeImport).

### sim knowledge ls \[#sim-knowledge-ls]

List knowledge resources and child folders together

```bash
sim knowledge ls [path] [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `path` | No | Folder path to list; defaults to the root folder |

**Options**

| Option | Required | Description |
| - | - | - |
| `--search <text>` | No | Filter folders and resources by name. |
| `--limit <n>` | No | Maximum combined items to return (0 for everything). Defaults to `0`. |

API request and response schemas: [listKnowledgeBases](/api-reference/knowledge-bases/listKnowledgeBases), [listKnowledgeFolders](/api-reference/knowledge-bases/listKnowledgeFolders).

### sim knowledge mkdir \[#sim-knowledge-mkdir]

Create a knowledge directory at a path

```bash
sim knowledge mkdir <path>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `path` | Yes | Folder path to create; the leading / is optional |

API request and response schemas: [createKnowledgeFolder](/api-reference/knowledge-bases/createKnowledgeFolder).

## sim logs \[#sim-logs]

Read run diagnostics, follow new runs, and summarize failures and latency.

Also spelled `sim log`.

### sim logs get \[#sim-logs-get]

Show run diagnostics

```bash
sim logs get <runId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `runId` | Yes | Unique workflow run identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--include-workflow-state` | No | Include the saved workflow snapshot (default: true; Sim’s in-app agent leaves it out unless this flag is passed). Set false to omit block configuration from a log read. Other run fields are unchanged. |
| `--no-include-workflow-state` | No | Send --include-workflow-state as false. |
| `--trace` | No | Show expanded trace spans with inputs, outputs, errors, timing, and cost. |

API request and response schemas: [getLog](/api-reference/logs/getLog).

### sim logs stats \[#sim-logs-stats]

Summarize run counts, failures and latency over a window

```bash
sim logs stats [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--workflow <value...>` | No | Comma-separated workflow identifiers to include. At most 200 entries. An empty entry is rejected. (space- or comma-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
| `--folder <value...>` | No | Folder path as shown in the app; the leading / is optional (space-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
| `--trigger <value...>` | No | Comma-separated trigger types to include. An empty entry is rejected. The vocabulary is open, so an unrecognized member selects no runs; the literal `all` disables this filter. (space- or comma-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
| `--level <value>` | No | Severity level to include. Accepted values: `info`, `error`. |
| `--include-handled-errors` | No | Whether runs with a handled block error are counted as `handledErrorRuns`, and whether `level=error` also selects them. Off by default: counting them scans each run’s stored trace. |
| `--no-include-handled-errors` | No | Send --include-handled-errors as false. |
| `--start-date <value>` | No | Only include runs started at or after this UTC ISO 8601 timestamp, e.g. `2026-08-06T00:00:00Z`. A date without a time, or a timestamp carrying a UTC offset instead of `Z`, is rejected, as is year `0000`, which names no storable instant. |
| `--end-date <value>` | No | Only include runs started at or before this UTC ISO 8601 timestamp, e.g. `2026-08-06T00:00:00Z`. A date without a time, or a timestamp carrying a UTC offset instead of `Z`, is rejected, as is year `0000`, which names no storable instant. |
| `--segment-count <value>` | No | Number of equal time buckets to divide the window into, from 1 to 500. It is the ceiling on how many buckets a series carries: with `includeEmpty=true` exactly this many are returned, otherwise only the buckets holding at least one run. Buckets are never narrower than one minute, so on a short window the series extends past the end of the window rather than being compressed, and the trailing buckets are empty. Defaults to 72. |
| `--include-empty <value>` | No | Whether buckets with no runs are included in every series. Off by default, so each series carries only the buckets that hold at least one run; set it to publish exactly `segmentCount` buckets per series, empty ones included. The listed spellings are the whole accepted vocabulary and are case-sensitive; any other value is rejected. Accepted values: `true`, `1`, `yes`, `on`, `y`, `enabled`, `false`, `0`, `no`, `off`, `n`, `disabled`. |

API request and response schemas: [getLogStats](/api-reference/logs/getLogStats).

### sim logs list \[#sim-logs-list]

List run logs, such as failed or errored runs, by workflow, trigger or time

```bash
sim logs list [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--workflow <value...>` | No | Comma-separated workflow identifiers to include. An empty entry is rejected. At most 200 entries. (space- or comma-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
| `--trigger <value...>` | No | Comma-separated, lowercase trigger types or webhook provider IDs. Matching is exact and case-sensitive; unknown values select no runs. An empty entry is rejected. The sentinel `all` disables this filter, even when listed with other values. At most 100 entries. (space- or comma-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
| `--level <value>` | No | Severity level to include. Accepted values: `info`, `error`. |
| `--start-date <value>` | No | Only include runs started at or after this UTC ISO 8601 timestamp, e.g. `2026-08-06T00:00:00Z`. A date without a time, or a timestamp carrying a UTC offset instead of `Z`, is rejected, as is year `0000`, which names no storable instant. |
| `--end-date <value>` | No | Only include runs started at or before this UTC ISO 8601 timestamp, e.g. `2026-08-06T00:00:00Z`. A date without a time, or a timestamp carrying a UTC offset instead of `Z`, is rejected, as is year `0000`, which names no storable instant. |
| `--min-duration-ms <value>` | No | Minimum total execution duration in milliseconds. Whole milliseconds from 0 to 2147483647; the stored duration is a 32-bit integer, so a fractional or out-of-range bound is rejected. |
| `--max-duration-ms <value>` | No | Maximum total execution duration in milliseconds. Whole milliseconds from 0 to 2147483647; the stored duration is a 32-bit integer, so a fractional or out-of-range bound is rejected. |
| `--min-cost <value>` | No | Minimum execution cost in USD, from 0 to 1000000. A run is never charged a negative amount, so a negative bound is rejected rather than treated as a filter that matches every run. |
| `--max-cost <value>` | No | Maximum execution cost in USD, from 0 to 1000000. A run is never charged a negative amount, so a negative bound is rejected rather than treated as a filter that matches every run. |
| `--model <value>` | No | AI model used during execution. |
| `--details <value>` | No | Response detail level; full is requested by default to name each run’s workflow. Accepted values: `basic`, `full`. |
| `--include-trace-spans` | No | Include trace spans in JSON or YAML output (implies full detail). |
| `--include-final-output` | No | Include final output in JSON or YAML output (implies full detail). |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `100`. |
| `--cursor <value>` | No | Continue from nextCursor returned by a previous result. |
| `--include-handled-errors` | No | Whether `level=error` also selects runs that finished at `info` after a block error was recovered by an error path. Off by default: such a run succeeded, so it is an error only to a caller auditing error handling. Every row reports `hasHandledErrors` whether or not this is set. Job runs carry no block trace, so the flag never widens that branch. |
| `--no-include-handled-errors` | No | Send --include-handled-errors as false. |
| `--status <value>` | No | Comma-separated execution statuses to include, from `pending` \| `running` \| `paused` \| `redacting` \| `completed` \| `failed` \| `cancelled`. An empty entry is rejected. ANDed with `level`, which reports severity rather than lifecycle. |
| `--workflow-name <value>` | No | Case-insensitive substring match against the run's workflow name. Runs whose workflow has been deleted match nothing, because the name is no longer joinable. |
| `--include-job-runs` | No | Include Chat and Sim-agent jobs alongside workflow runs. Jobs use `kind: "job"` and have no workflow or cost ledger. Workflow, folder, model, or status filters exclude jobs. This option is valid only when sorting by `startedAt`. |
| `--no-include-job-runs` | No | Send --include-job-runs as false. |
| `--run-id <value>` | No | Exact run identifier to match. |
| `--sort-by <value>` | No | Field used to sort the result. `durationMs` and `cost` are null until a run settles; those runs sort before recorded values in ascending order and after them in descending order. Only `startedAt` can order Chat and Sim-agent job runs, so any other value is rejected when job runs are included. Defaults to "startedAt". Accepted values: `startedAt`, `durationMs`, `cost`, `status`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "desc". Accepted values: `asc`, `desc`. |
| `--folder <value...>` | No | Folder path as shown in the app; the leading / is optional (space-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |

API request and response schemas: [listLogs](/api-reference/logs/listLogs).

### sim logs follow \[#sim-logs-follow]

Watch runs live as they arrive, printing each new run once

```bash
sim logs follow [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--workflow <id>` | No | Only follow runs of this workflow (repeatable). |
| `--folder <path>` | No | Only follow runs of workflows in this folder (repeatable). |
| `--trigger <type>` | No | Only follow runs with this trigger type (repeatable). |
| `--level <level>` | No | Only follow runs at this severity. Accepted values: `info`, `error`. |
| `--details <level>` | No | Response detail level; full names each run’s workflow. Accepted values: `basic`, `full`. Defaults to `full`. |
| `-n, --lines <count>` | No | Recent runs to print before watching. Defaults to `10`. |
| `--interval <seconds>` | No | Seconds between polls. Defaults to `3`. |

Each run prints once, when it is first seen, so its status is the status it had at that moment. With --output json every run is a JSON object on its own line (JSONL) rather than a member of an array, because a follow never ends and so can never close one; --output yaml emits a --- separated document stream. Progress and retries go to stderr, leaving stdout a clean stream of rows. Ctrl-C stops the follow.

**Examples**

```bash
sim logs follow --level error
sim logs follow --workflow 00000000-0000-4000-8000-000000000000 -n 0
sim --output json logs follow | jq -r '.runId'
```

API request and response schemas: [listLogs](/api-reference/logs/listLogs).

## sim mcp-servers \[#sim-mcp-servers]

Connect external Model Context Protocol (MCP) servers so workflows can use their tools.

To serve Sim workflows to MCP clients instead, use [workflow MCP servers](/cli/workflow-mcp-servers).

Also spelled `sim mcp-server`.

### sim mcp-servers create \[#sim-mcp-servers-create]

Create MCP server

```bash
sim mcp-servers create [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--name <value>` | Yes | Server display name. |
| `--description <value>` | No | Optional server description. |
| `--transport <value>` | No | Transport protocol. Defaults to `streamable-http` on creation. Accepted values: `streamable-http`. |
| `--url <value>` | Yes | Absolute HTTP or HTTPS endpoint URL without `{{ENV_VAR}}` references. It determines server identity and is immutable: delete and recreate the server to change endpoints. |
| `--auth-type <value>` | No | Authentication method. On creation, omission without `headers` probes once: an OAuth challenge selects `oauth`, an unauthenticated success selects `none`, and other outcomes fall back to `headers`. An OAuth client ID selects `oauth` when the method is omitted. Set explicitly to use headers with a server advertising OAuth; adding headers later does not change the saved method. Accepted values: `none`, `headers`, `oauth`. |
| `--headers <json\|@file>` | No | Write-only request headers sent to the server. Replaced wholesale rather than merged on update: sending this field drops every stored header it does not repeat. (JSON, or @path / @- to read a file or stdin). |
| `--timeout <value>` | No | Per-request timeout in milliseconds. Defaults to 30000 on creation. |
| `--retries <value>` | No | Number of retries per request. Defaults to 3 on creation. |
| `--enabled` | No | Whether workflows can use the server's tools. Defaults to true on creation. |
| `--no-enabled` | No | Send --enabled as false. |
| `--oauth-client-id <value>` | No | Pre-registered OAuth client identifier. Changing it on update revokes the stored OAuth grant and forces reauthorization. |
| `--oauth-client-secret <value>` | No | Write-only pre-registered OAuth client secret. Sending it on update as null or a new value revokes the stored OAuth grant and forces reauthorization, as does switching away from OAuth authentication. (--oauth-client-secret null sends the word, not JSON null). |

API request and response schemas: [createMcpServer](/api-reference/mcp-servers/createMcpServer).

### sim mcp-servers delete \[#sim-mcp-servers-delete]

Delete MCP server

This removes the MCP server and the tools it provides.

```bash
sim mcp-servers delete <mcpServerId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `mcpServerId` | Yes | Unique MCP server identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [deleteMcpServer](/api-reference/mcp-servers/deleteMcpServer).

### sim mcp-servers get \[#sim-mcp-servers-get]

Get MCP server

```bash
sim mcp-servers get <mcpServerId>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `mcpServerId` | Yes | Unique MCP server identifier. |

API request and response schemas: [getMcpServer](/api-reference/mcp-servers/getMcpServer).

### sim mcp-servers list \[#sim-mcp-servers-list]

List MCP servers

```bash
sim mcp-servers list [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--search <value>` | No | Case-insensitive substring match against the server name. |
| `--sort-by <value>` | No | Field used to sort the result. Do not rely on case-insensitive ordering when sorting by `name`. Defaults to "createdAt". Accepted values: `name`, `createdAt`, `updatedAt`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "desc". Accepted values: `asc`, `desc`. |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `0`. |

API request and response schemas: [listMcpServers](/api-reference/mcp-servers/listMcpServers).

### sim mcp-servers tools list \[#sim-mcp-servers-tools-list]

List MCP server tools (OAuth login or personal API key required)

```bash
sim mcp-servers tools list <mcpServerId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `mcpServerId` | Yes | Unique MCP server identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--refresh` | No | Refresh tools using your credentials. Otherwise results may reuse another workspace member's recent discovery and omit newly added tools. |
| `--no-refresh` | No | Send --refresh as false. |

API request and response schemas: [listMcpServerTools](/api-reference/mcp-servers/listMcpServerTools).

### sim mcp-servers update \[#sim-mcp-servers-update]

Update MCP server

```bash
sim mcp-servers update <mcpServerId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `mcpServerId` | Yes | Unique MCP server identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--name <value>` | No | Server display name. |
| `--description <value>` | No | Optional server description. |
| `--transport <value>` | No | Transport protocol. Defaults to `streamable-http` on creation. Accepted values: `streamable-http`. |
| `--url <value>` | No | Immutable server URL. When provided, it must equal the current URL; use delete and create to change endpoints. |
| `--auth-type <value>` | No | Authentication method. On creation, omission without `headers` probes once: an OAuth challenge selects `oauth`, an unauthenticated success selects `none`, and other outcomes fall back to `headers`. An OAuth client ID selects `oauth` when the method is omitted. Set explicitly to use headers with a server advertising OAuth; adding headers later does not change the saved method. Accepted values: `none`, `headers`, `oauth`. |
| `--headers <json\|@file>` | No | Write-only request headers sent to the server. Replaced wholesale rather than merged on update: sending this field drops every stored header it does not repeat. (JSON, or @path / @- to read a file or stdin). |
| `--timeout <value>` | No | Per-request timeout in milliseconds. Defaults to 30000 on creation. |
| `--retries <value>` | No | Number of retries per request. Defaults to 3 on creation. |
| `--enabled` | No | Whether workflows can use the server's tools. Defaults to true on creation. |
| `--no-enabled` | No | Send --enabled as false. |
| `--oauth-client-id <value>` | No | Pre-registered OAuth client identifier. Changing it on update revokes the stored OAuth grant and forces reauthorization. |
| `--oauth-client-secret <value>` | No | Write-only pre-registered OAuth client secret. Sending it on update as null or a new value revokes the stored OAuth grant and forces reauthorization, as does switching away from OAuth authentication. (--oauth-client-secret null sends the word, not JSON null). |

API request and response schemas: [updateMcpServer](/api-reference/mcp-servers/updateMcpServer).

## sim meta \[#sim-meta]

Inspect API availability and the calling credential’s type and expiry.

### sim meta status \[#sim-meta-status]

Show API availability and the calling credential’s type and expiry

```bash
sim meta status
```

API request and response schemas: [getMeta](/api-reference/meta/getApiMeta).

## sim organizations \[#sim-organizations]

Manage organization membership, invitations, usage, access requests, and SSO.

### sim organizations domains add \[#sim-organizations-domains-add]

Add organization domain (OAuth login or personal API key required)

```bash
sim organizations domains add [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |
| `--domain <value>` | Yes | Domain to claim and verify through a DNS TXT record. |

API request and response schemas: [addOrganizationDomain](/api-reference/organizations/addOrganizationDomain).

### sim organizations domains list \[#sim-organizations-domains-list]

List organization domains (OAuth login or personal API key required)

```bash
sim organizations domains list [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `0`. |
| `--sort-by <value>` | No | Field used to sort the result. Defaults to "domain". Accepted values: `domain`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "asc". Accepted values: `asc`, `desc`. |

API request and response schemas: [listOrganizationDomains](/api-reference/organizations/listOrganizationDomains).

### sim organizations domains remove \[#sim-organizations-domains-remove]

Remove organization domain (OAuth login or personal API key required)

This removes the domain claim and revokes verified SSO authority for its providers.

```bash
sim organizations domains remove <domainId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `domainId` | Yes | Domain claim owned by this organization. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [removeOrganizationDomain](/api-reference/organizations/removeOrganizationDomain).

### sim organizations domains verify \[#sim-organizations-domains-verify]

Verify organization domain (OAuth login or personal API key required)

```bash
sim organizations domains verify <domainId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `domainId` | Yes | Domain claim owned by this organization. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |

API request and response schemas: [verifyOrganizationDomain](/api-reference/organizations/verifyOrganizationDomain).

### sim organizations access-requests cancel \[#sim-organizations-access-requests-cancel]

Cancel organization access request (OAuth login or personal API key required)

```bash
sim organizations access-requests cancel <requestId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `requestId` | Yes | Access request identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |

API request and response schemas: [cancelOrganizationAccessRequest](/api-reference/access-requests/cancelOrganizationAccessRequest).

### sim organizations access-requests create \[#sim-organizations-access-requests-create]

Create organization access request (OAuth login or personal API key required)

```bash
sim organizations access-requests create [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |
| `--target <json\|@file>` | Yes | Target returned by Discover Workspace Access Requests or Discover Organization Access Requests. The target must currently be requestable. (JSON, or @path / @- to read a file or stdin). |
| `--reason <value>` | No | Why the acting user needs this access. Defaults to "". |

API request and response schemas: [createOrganizationAccessRequest](/api-reference/access-requests/createOrganizationAccessRequest).

### sim organizations access-requests discover \[#sim-organizations-access-requests-discover]

Discover organization access requests (OAuth login or personal API key required)

```bash
sim organizations access-requests discover [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |
| `--search <value>` | No | Case-insensitive substring match against the access item label. |
| `--target-kind <value>` | No | Category of access to discover. Accepted values: `feature`, `integration`, `provider`, `model`, `tool`, `knowledge_connector`, `file_share_auth`, `chat_deploy_auth`, `usage_limit`. |
| `--state <value>` | No | Filter by the acting user’s current access. Requestable items can be submitted for review. Accepted values: `allowed`, `requestable`, `unavailable`. |
| `--sort-by <value>` | No | Field used to sort the result. Defaults to "label". Accepted values: `label`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "asc". Accepted values: `asc`, `desc`. |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `100`. |
| `--cursor <value>` | No | Continue from nextCursor returned by a previous result. |

API request and response schemas: [discoverOrganizationAccessRequests](/api-reference/access-requests/discoverOrganizationAccessRequests).

### sim organizations access-requests settings get \[#sim-organizations-access-requests-settings-get]

Get organization access request settings (OAuth login or personal API key required)

```bash
sim organizations access-requests settings get [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |

API request and response schemas: [getOrganizationAccessRequestSettings](/api-reference/access-requests/getOrganizationAccessRequestSettings).

### sim organizations access-requests settings update \[#sim-organizations-access-requests-settings-update]

Update organization access request settings (OAuth login or personal API key required)

```bash
sim organizations access-requests settings update [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |
| `--allow-requests <true\|false>` | Yes | Allow new requests and approvals. Disabling requests preserves history and still allows cancellation and decline. Accepted values: `true`, `false`. |

API request and response schemas: [updateOrganizationAccessRequestSettings](/api-reference/access-requests/updateOrganizationAccessRequestSettings).

### sim organizations access-requests mine \[#sim-organizations-access-requests-mine]

List my organization access requests (OAuth login or personal API key required)

```bash
sim organizations access-requests mine [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |
| `--status <value>` | No | Filter by request status; omit to include all statuses. Accepted values: `pending`, `fulfilled`, `declined`, `cancelled`, `closed`. |
| `--sort-by <value>` | No | Field used to sort the result. Defaults to "createdAt". Accepted values: `createdAt`, `targetLabel`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "desc". Accepted values: `asc`, `desc`. |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `100`. |
| `--cursor <value>` | No | Continue from nextCursor returned by a previous result. |

API request and response schemas: [listMyOrganizationAccessRequests](/api-reference/access-requests/listMyOrganizationAccessRequests).

### sim organizations access-requests list \[#sim-organizations-access-requests-list]

List organization access requests (OAuth login or personal API key required)

```bash
sim organizations access-requests list [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |
| `--status <value>` | No | Filter by request status; omit to include all statuses. Accepted values: `pending`, `fulfilled`, `declined`, `cancelled`, `closed`. |
| `--sort-by <value>` | No | Field used to sort the result. Defaults to "createdAt". Accepted values: `createdAt`, `targetLabel`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "desc". Accepted values: `asc`, `desc`. |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `100`. |
| `--cursor <value>` | No | Continue from nextCursor returned by a previous result. |
| `--search <value>` | No | Case-insensitive substring match against the target label or requester name or email. |

API request and response schemas: [listOrganizationAccessRequests](/api-reference/access-requests/listOrganizationAccessRequests).

### sim organizations access-requests preview \[#sim-organizations-access-requests-preview]

Preview organization access request (OAuth login or personal API key required)

```bash
sim organizations access-requests preview <requestId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `requestId` | Yes | Access request identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |

API request and response schemas: [previewOrganizationAccessRequest](/api-reference/access-requests/previewOrganizationAccessRequest).

### sim organizations access-requests resolve \[#sim-organizations-access-requests-resolve]

Resolve organization access request (OAuth login or personal API key required)

```bash
sim organizations access-requests resolve <requestId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `requestId` | Yes | Access request identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |
| `--action <value>` | Yes | apply: Apply the reviewed change to the governing group or member credit cap. decline: Decline the request without changing permissions or credit limits. Accepted values: `apply`, `decline`. |
| `--expected-fingerprint <value>` | Conditional | Fingerprint from Preview Organization Access Request. Review its changes and impact before applying; a stale preview returns a conflict. Available when action is apply. Required when action is apply. |
| `--new-limit-credits <value>` | Conditional | Required only for a usage-limit request: a whole-number credit cap greater than the current cap. Omit for permission requests. Available when action is apply. |
| `--reason <value>` | Conditional | Required explanation for declining this request. Available when action is decline. Required when action is decline. |

API request and response schemas: [resolveOrganizationAccessRequest](/api-reference/access-requests/resolveOrganizationAccessRequest).

### sim organizations search sources permissions imports complete \[#sim-organizations-search-sources-permissions-imports-complete]

Complete source permission import

This replaces the source’s permission grants. Readers omitted from the new grants lose access.

```bash
sim organizations search sources permissions imports complete <sourceId> <importId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `sourceId` | Yes | Search source identifier. |
| `importId` | Yes | Permission import identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [completeSourcePermissionImport](/api-reference/organizations/completeSourcePermissionImport).

### sim organizations search sources permissions imports create \[#sim-organizations-search-sources-permissions-imports-create]

Create source permission import

```bash
sim organizations search sources permissions imports create <sourceId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `sourceId` | Yes | Search source identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |
| `--provider <value>` | Yes | Provider of the configured source. |
| `--expected-revision <value>` | Yes | Permission revision pinned before exporting the CSVs. |
| `--user-mapping <json\|@file>` | Yes | Complete user identity mapping. (JSON, or @path / @- to read a file or stdin). |
| `--project-permissions <json\|@file>` | Yes | Complete project membership snapshot. (JSON, or @path / @- to read a file or stdin). |

API request and response schemas: [createSourcePermissionImport](/api-reference/organizations/createSourcePermissionImport).

### sim organizations search sources permissions imports put-part \[#sim-organizations-search-sources-permissions-imports-put-part]

Upload source permission import part

```bash
sim organizations search sources permissions imports put-part <sourceId> <importId> <partNumber> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `sourceId` | Yes | Search source identifier. |
| `importId` | Yes | Permission import identifier. |
| `partNumber` | Yes | Zero-based part number across both files; user mapping comes first. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |
| `--field <value>` | Yes | CSV file this part belongs to. Accepted values: `userMapping`, `projectPermissions`. |
| `--content <value\|@file>` | Yes | Complete CSV records, at most 5,000 rows and 1 MiB of UTF-8; an optional header may appear in each part. (@path / @- reads a file or stdin verbatim, including trailing newlines; @@value for a literal leading @). |

API request and response schemas: [putSourcePermissionImportPart](/api-reference/organizations/putSourcePermissionImportPart).

### sim organizations search sources permissions get \[#sim-organizations-search-sources-permissions-get]

Get search source permission revision (OAuth login or personal API key required)

```bash
sim organizations search sources permissions get <sourceId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `sourceId` | Yes | Identifier of the configured Search source. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |

API request and response schemas: [getSearchSourcePermissions](/api-reference/organizations/getSearchSourcePermissions).

### sim organizations search sources permissions replace \[#sim-organizations-search-sources-permissions-replace]

Replace search source permissions (OAuth login or personal API key required)

This replaces the source’s permission grants. Readers omitted from the new grants lose access.

```bash
sim organizations search sources permissions replace <sourceId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `sourceId` | Yes | Identifier of the configured Search source. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |
| `--expected-revision <value>` | Yes | Permission revision read before exporting the grants. |
| `--permissions <json\|@file>` | Yes | Complete permission grants in the source provider’s format. (JSON, or @path / @- to read a file or stdin). |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [replaceSearchSourcePermissions](/api-reference/organizations/replaceSearchSourcePermissions).

### sim organizations search sources permissions upload \[#sim-organizations-search-sources-permissions-upload]

Replace source permissions from two CSV files, uploaded in bounded parts

```bash
sim organizations search sources permissions upload <sourceId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `sourceId` | Yes | Search source identifier |

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <id>` | Yes | Organization identifier. |
| `--provider <provider>` | Yes | Permission provider. Accepted values: `gitlab`. |
| `--expected-revision <number>` | Yes | Revision read before exporting the CSVs. |
| `--user-mapping <path>` | Yes | Complete user mapping CSV. |
| `--project-permissions <path>` | Yes | Complete project permissions CSV. |
| `-y, --yes` | Yes | Confirm replacement of all source permissions. |

API request and response schemas: [createSourcePermissionImport](/api-reference/organizations/createSourcePermissionImport), [putSourcePermissionImportPart](/api-reference/organizations/putSourcePermissionImportPart), [completeSourcePermissionImport](/api-reference/organizations/completeSourcePermissionImport).

### sim organizations search sources create \[#sim-organizations-search-sources-create]

Create search source

```bash
sim organizations search sources create [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |
| `--connector-type <value>` | Yes | Registered connector type. |
| `--credential-id <value>` | No | OAuth credential identifier for connector types whose `auth.mode` is `oauth` (see connector types), or a saved credential for an `apiKey` connector type that declares `auth.savedCredential` (such as Amazon S3 with a saved AWS credential); otherwise omit it for `apiKey` connectors. |
| `--api-key <value\|@file>` | No | Write-only API key for connector types whose `auth.mode` is `apiKey` (see connector types), or a personal access token for an OAuth connector that also accepts one, such as GitHub. Send it instead of `credentialId`. Pass a raw key, or a secret reference written as the whole value `{{SECRET_NAME}}`, which the server resolves; `$SECRET_NAME` is not a reference. (@path / @- reads a file or stdin verbatim, including trailing newlines; @@value for a literal leading @). |
| `--source-config <json\|@file>` | Yes | Connector-specific source selection and filtering configuration. (JSON, or @path / @- to read a file or stdin). |
| `--access-mode <value>` | No | Source-managed permissions (admin), or individually connected member accounts (members). Defaults to "admin". Accepted values: `admin`, `members`. |
| `--permission-config <json\|@file>` | No | Provider-specific permissions for initial setup. Large CSV snapshots use permission imports after creation. (JSON, or @path / @- to read a file or stdin). |

API request and response schemas: [createSearchSource](/api-reference/organizations/createSearchSource).

### sim organizations search sources delete \[#sim-organizations-search-sources-delete]

Delete search source

This removes the source and its permission grants.

```bash
sim organizations search sources delete <sourceId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `sourceId` | Yes | Search source identifier, also used by permission uploads. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [deleteSearchSource](/api-reference/organizations/deleteSearchSource).

### sim organizations search sources get \[#sim-organizations-search-sources-get]

Get search source

```bash
sim organizations search sources get <sourceId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `sourceId` | Yes | Search source identifier, also used by permission uploads. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |

API request and response schemas: [getSearchSource](/api-reference/organizations/getSearchSource).

### sim organizations search sources list \[#sim-organizations-search-sources-list]

List search sources

```bash
sim organizations search sources list [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |
| `--sort-by <value>` | No | Field used to sort the result. Defaults to "createdAt". Accepted values: `connectorType`, `createdAt`, `updatedAt`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "desc". Accepted values: `asc`, `desc`. |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `100`. |
| `--cursor <value>` | No | Continue from nextCursor returned by a previous result. |

API request and response schemas: [listSearchSources](/api-reference/organizations/listSearchSources).

### sim organizations search sources prepare \[#sim-organizations-search-sources-prepare]

Prepare search sources

```bash
sim organizations search sources prepare [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |
| `--connector-type <value>` | Yes | Registered connector type. |
| `--access-mode <value>` | No | Source-managed permissions (admin), or individually connected member accounts (members). Defaults to "admin". Accepted values: `admin`, `members`. |

API request and response schemas: [prepareSearchSources](/api-reference/organizations/prepareSearchSources).

### sim organizations search sources update \[#sim-organizations-search-sources-update]

Update search source

This updates source settings and may replace its permission grants.

```bash
sim organizations search sources update <sourceId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `sourceId` | Yes | Search source identifier, also used by permission uploads. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |
| `--api-key <value\|@file>` | No | Replacement token for providers supporting credential updates (currently GitLab). For GitLab, supply permissionConfig with the current expectedRevision; omitted CSVs retain grants. Omit to keep the saved token. (@path / @- reads a file or stdin verbatim, including trailing newlines; @@value for a literal leading @). |
| `--source-config <json\|@file>` | No | Complete replacement source configuration. Read the existing configuration before editing it. (JSON, or @path / @- to read a file or stdin). |
| `--permission-config <json\|@file>` | No | Provider-specific permission update, using the current expectedRevision. Omit to retain permissions. (JSON, or @path / @- to read a file or stdin). |
| `--status <value>` | No | Pause or resume this source without changing its ID or stored permissions. Accepted values: `active`, `paused`. |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [updateSearchSource](/api-reference/organizations/updateSearchSource).

### sim organizations invitations create \[#sim-organizations-invitations-create]

Create organization invitation (OAuth login or personal API key required)

```bash
sim organizations invitations create [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |
| `--email <value>` | Yes | Email address of the person to invite. |
| `--role <value>` | No | Organization role to offer. Defaults to member; grants no workspace-specific permissions. Accepted values: `member`, `admin`. |

API request and response schemas: [createOrganizationInvitation](/api-reference/organizations/createOrganizationInvitation).

### sim organizations invitations get \[#sim-organizations-invitations-get]

Get organization invitation (OAuth login or personal API key required)

```bash
sim organizations invitations get <invitationId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `invitationId` | Yes | Invitation identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |

API request and response schemas: [getOrganizationInvitation](/api-reference/organizations/getOrganizationInvitation).

### sim organizations invitations list \[#sim-organizations-invitations-list]

List organization invitations (OAuth login or personal API key required)

```bash
sim organizations invitations list [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |
| `--search <value>` | No | Case-insensitive substring match against the invitee email. |
| `--status <value>` | No | Filter by current invitation status. Omit to include all statuses. Accepted values: `pending`, `accepted`, `rejected`, `cancelled`, `expired`. |
| `--sort-by <value>` | No | Field used to sort the result. Defaults to "createdAt". Accepted values: `email`, `createdAt`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "desc". Accepted values: `asc`, `desc`. |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `100`. |
| `--cursor <value>` | No | Continue from nextCursor returned by a previous result. |

API request and response schemas: [listOrganizationInvitations](/api-reference/organizations/listOrganizationInvitations).

### sim organizations invitations workspaces \[#sim-organizations-invitations-workspaces]

List organization invitation workspaces (OAuth login or personal API key required)

```bash
sim organizations invitations workspaces <invitationId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `invitationId` | Yes | Invitation identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |
| `--search <value>` | No | Case-insensitive substring match against the workspace name. |
| `--sort-by <value>` | No | Field used to sort the result. Do not rely on case-insensitive ordering when sorting by `name`. Defaults to "name". Accepted values: `name`, `id`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "asc". Accepted values: `asc`, `desc`. |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `100`. |
| `--cursor <value>` | No | Continue from nextCursor returned by a previous result. |

API request and response schemas: [listOrganizationInvitationWorkspaces](/api-reference/organizations/listOrganizationInvitationWorkspaces).

### sim organizations invitations resend \[#sim-organizations-invitations-resend]

Resend organization invitation (OAuth login or personal API key required)

```bash
sim organizations invitations resend <invitationId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `invitationId` | Yes | Invitation identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |

API request and response schemas: [resendOrganizationInvitation](/api-reference/organizations/resendOrganizationInvitation).

### sim organizations invitations revoke \[#sim-organizations-invitations-revoke]

Revoke organization invitation (OAuth login or personal API key required)

This cancels the invitation and all its workspace grants, preventing acceptance.

```bash
sim organizations invitations revoke <invitationId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `invitationId` | Yes | Invitation identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [revokeOrganizationInvitation](/api-reference/organizations/revokeOrganizationInvitation).

### sim organizations sso providers delete \[#sim-organizations-sso-providers-delete]

Delete SSO provider (OAuth login or personal API key required)

This removes the identity provider used for SSO sign-in; linked accounts remain.

```bash
sim organizations sso providers delete <providerId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `providerId` | Yes | Identity provider identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [deleteSsoProvider](/api-reference/organizations/deleteSsoProvider).

### sim organizations sso providers get \[#sim-organizations-sso-providers-get]

Get SSO provider (OAuth login or personal API key required)

```bash
sim organizations sso providers get <providerId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `providerId` | Yes | Identity provider identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |

API request and response schemas: [getSsoProvider](/api-reference/organizations/getSsoProvider).

### sim organizations sso providers list \[#sim-organizations-sso-providers-list]

List SSO providers (OAuth login or personal API key required)

```bash
sim organizations sso providers list [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `0`. |
| `--sort-by <value>` | No | Field used to sort the result. Defaults to "providerId". Accepted values: `providerId`, `domain`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "asc". Accepted values: `asc`, `desc`. |

API request and response schemas: [listSsoProviders](/api-reference/organizations/listSsoProviders).

### sim organizations sso providers save \[#sim-organizations-sso-providers-save]

Save SSO provider (OAuth login or personal API key required)

Choose `--provider-type oidc` or `saml`. OIDC requires `--client-id` and `--client-secret`; SAML requires `--entry-point` and `--cert`. Both require an organization-verified domain. The option descriptions state which omitted fields are preserved or cleared.

```bash
sim organizations sso providers save [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |
| `--provider-type <value>` | Yes | oidc: Configure an OpenID Connect identity provider. saml: Configure a SAML identity provider. Accepted values: `oidc`, `saml`. |
| `--provider-id <value>` | Yes | Globally unique provider ID; saving an existing provider replaces its supplied configuration. |
| `--issuer <value>` | Yes | Identity provider issuer URL. |
| `--domain <value>` | Yes | Email domain already verified by this organization. |
| `--jit-provisioning-enabled` | No | Allow SSO sign-in to provision organization membership, subject to eligibility and available seats. Defaults to true. |
| `--no-jit-provisioning-enabled` | No | Send --jit-provisioning-enabled as false. |
| `--mapping <json\|@file>` | No | Identity-provider claims mapped to user fields. Defaults to {"id":"sub","email":"email","name":"name","image":"picture"}. (JSON, or @path / @- to read a file or stdin). |
| `--client-id <value>` | Conditional | Identity provider client identifier. Available when providerType is oidc. Required when providerType is oidc. |
| `--client-secret <value\|@file>` | Conditional | Write-only OIDC client secret; the redacted marker from providers get preserves an existing secret. Passing it inline exposes it to shell history and process listings. Required when --provider-type is oidc (@path / @- reads a file or stdin verbatim, including trailing newlines; @@value for a literal leading @). |
| `--scopes <json\|@file>` | No | OIDC scopes; offline_access is omitted. Available when providerType is oidc. Defaults to \["openid","profile","email"]. (JSON, or @path / @- to read a file or stdin). |
| `--pkce` | No | Use PKCE for the authorization flow. Available when providerType is oidc. Defaults to true. |
| `--no-pkce` | No | Send --pkce as false. |
| `--authorization-endpoint <value>` | No | Optional authorization endpoint; otherwise resolved through issuer discovery. Available when providerType is oidc. |
| `--token-endpoint <value>` | No | Optional token endpoint; otherwise resolved through issuer discovery. Available when providerType is oidc. |
| `--user-info-endpoint <value>` | No | Optional UserInfo endpoint. Available when providerType is oidc. |
| `--skip-user-info-endpoint` | No | Read identity claims from the ID token instead of calling UserInfo. Available when providerType is oidc. Defaults to false. |
| `--no-skip-user-info-endpoint` | No | Send --skip-user-info-endpoint as false. |
| `--jwks-endpoint <value>` | No | Optional signing-key endpoint; otherwise resolved through issuer discovery. Available when providerType is oidc. |
| `--entry-point <value>` | Conditional | Identity provider SAML sign-in endpoint. Available when providerType is saml. Required when providerType is saml. |
| `--cert <value>` | Conditional | Identity provider signing certificate. Available when providerType is saml. Required when providerType is saml. |
| `--callback-url <value>` | No | SAML callback URL; defaults to this provider’s Sim callback. Available when providerType is saml. |
| `--audience <value>` | No | SAML audience; omission preserves the saved value. Available when providerType is saml. |
| `--want-assertions-signed` | No | Require signed assertions; omission preserves the saved value. Available when providerType is saml. |
| `--no-want-assertions-signed` | No | Send --want-assertions-signed as false. |
| `--signature-algorithm <value>` | No | Signature algorithm accepted by the SAML configuration validator; omission preserves the saved value. Available when providerType is saml. |
| `--digest-algorithm <value>` | No | Digest algorithm accepted by the SAML configuration validator; omission preserves the saved value. Available when providerType is saml. |
| `--identifier-format <value>` | No | SAML NameID format; omission clears the saved value. Available when providerType is saml. |
| `--idp-metadata <value>` | No | Identity provider metadata XML; omission clears the saved document. Available when providerType is saml. |

API request and response schemas: [saveSsoProvider](/api-reference/organizations/saveSsoProvider).

### sim organizations sso providers primary \[#sim-organizations-sso-providers-primary]

Set primary SSO provider (OAuth login or personal API key required)

```bash
sim organizations sso providers primary <providerId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `providerId` | Yes | Identity provider identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |

API request and response schemas: [setPrimarySsoProvider](/api-reference/organizations/setPrimarySsoProvider).

### sim organizations sso policy get \[#sim-organizations-sso-policy-get]

Get SSO policy (OAuth login or personal API key required)

```bash
sim organizations sso policy get [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |

API request and response schemas: [getSsoPolicy](/api-reference/organizations/getSsoPolicy).

### sim organizations sso policy update \[#sim-organizations-sso-policy-update]

Update SSO policy (OAuth login or personal API key required)

```bash
sim organizations sso policy update [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |
| `--require-sso <true\|false>` | Yes | Require organization SSO on future sign-ins; existing sessions remain active. Accepted values: `true`, `false`. |

API request and response schemas: [updateSsoPolicy](/api-reference/organizations/updateSsoPolicy).

### sim organizations get \[#sim-organizations-get]

Get organization (OAuth login or personal API key required)

```bash
sim organizations get <organizationId>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `organizationId` | Yes | Organization identifier. |

API request and response schemas: [getOrganization](/api-reference/organizations/getOrganization).

### sim organizations members usage-limit get \[#sim-organizations-members-usage-limit-get]

Get organization member credit limit (OAuth login or personal API key required)

```bash
sim organizations members usage-limit get <userId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `userId` | Yes | User ID of an organization member or external collaborator with workspace access in this organization. Use List Organization Members or List Workspace Members to find it. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |

API request and response schemas: [getOrganizationMemberUsageLimit](/api-reference/organizations/getOrganizationMemberUsageLimit).

### sim organizations members usage-limit update \[#sim-organizations-members-usage-limit-update]

Update organization member credit limit (OAuth login or personal API key required)

```bash
sim organizations members usage-limit update <userId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `userId` | Yes | User ID of an organization member or external collaborator with workspace access in this organization. Use List Organization Members or List Workspace Members to find it. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |
| `--credit-limit <number\|null>` | Yes | Credit cap for this person. Send null to clear the cap or 0 to prevent further credit-consuming usage. Organization limits still apply. |

API request and response schemas: [updateOrganizationMemberUsageLimit](/api-reference/organizations/updateOrganizationMemberUsageLimit).

### sim organizations members list \[#sim-organizations-members-list]

List organization members (OAuth login or personal API key required)

```bash
sim organizations members list [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |
| `--search <value>` | No | Case-insensitive substring match against member name or email. |
| `--sort-by <value>` | No | Field used to sort the result. Do not rely on case-insensitive ordering when sorting by `name`. Defaults to "name". Accepted values: `name`, `email`, `joinedAt`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "asc". Accepted values: `asc`, `desc`. |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `0`. |

API request and response schemas: [listOrganizationMembers](/api-reference/organizations/listOrganizationMembers).

### sim organizations members remove \[#sim-organizations-members-remove]

Remove organization member (OAuth login or personal API key required)

This removes the member, revokes their organization workspace access, and ends their sessions.

```bash
sim organizations members remove <userId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `userId` | Yes | User identifier of the organization member. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [removeOrganizationMember](/api-reference/organizations/removeOrganizationMember).

### sim organizations members update \[#sim-organizations-members-update]

Update organization member (OAuth login or personal API key required)

```bash
sim organizations members update <userId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `userId` | Yes | User identifier of the organization member. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |
| `--role <value>` | Yes | New organization role. Ownership transfers use a separate operation. Accepted values: `member`, `admin`. |

API request and response schemas: [updateOrganizationMember](/api-reference/organizations/updateOrganizationMember).

### sim organizations usage breakdown \[#sim-organizations-usage-breakdown]

Get organization usage breakdown (OAuth login or personal API key required)

```bash
sim organizations usage breakdown [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |
| `--preset <value>` | No | Reporting window. Custom requires startDate and endDate and is capped at 92 days; other presets reject those bounds. Resolved billing windows are capped at 366 days. Defaults to "30d". Accepted values: `current-period`, `previous-period`, `7d`, `30d`, `custom`. |
| `--start-date <value>` | No | First calendar date included, in the selected timezone. Requires preset=custom. |
| `--end-date <value>` | No | Last calendar date included, in the selected timezone. Requires preset=custom. |
| `--timezone <value>` | No | IANA timezone for calendar boundaries; defaults to UTC. |
| `--dimension <value>` | Yes | Usage grouping dimension. Accepted values: `member`, `workspace`, `workflow`, `model`, `byok`, `source`. |
| `--limit <value>` | No | Maximum ranked groups to return. Remaining usage is summarized in other. Must be a whole number from 1 to 100. Defaults to 50. |

API request and response schemas: [getOrganizationUsageBreakdown](/api-reference/organizations/getOrganizationUsageBreakdown).

### sim organizations usage summary \[#sim-organizations-usage-summary]

Get organization usage summary (OAuth login or personal API key required)

```bash
sim organizations usage summary [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |
| `--preset <value>` | No | Reporting window. Custom requires startDate and endDate and is capped at 92 days; other presets reject those bounds. Resolved billing windows are capped at 366 days. Defaults to "30d". Accepted values: `current-period`, `previous-period`, `7d`, `30d`, `custom`. |
| `--start-date <value>` | No | First calendar date included, in the selected timezone. Requires preset=custom. |
| `--end-date <value>` | No | Last calendar date included, in the selected timezone. Requires preset=custom. |
| `--timezone <value>` | No | IANA timezone for calendar boundaries; defaults to UTC. |

API request and response schemas: [getOrganizationUsageSummary](/api-reference/organizations/getOrganizationUsageSummary).

### sim organizations usage events \[#sim-organizations-usage-events]

List organization usage events (OAuth login or personal API key required)

```bash
sim organizations usage events [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |
| `--preset <value>` | No | Reporting window. Custom requires startDate and endDate and is capped at 92 days; other presets reject those bounds. Resolved billing windows are capped at 366 days. Defaults to "30d". Accepted values: `current-period`, `previous-period`, `7d`, `30d`, `custom`. |
| `--start-date <value>` | No | First calendar date included, in the selected timezone. Requires preset=custom. |
| `--end-date <value>` | No | Last calendar date included, in the selected timezone. Requires preset=custom. |
| `--timezone <value>` | No | IANA timezone for calendar boundaries; defaults to UTC. |
| `--source <value>` | No | Restrict events to one product surface. Accepted values: `workflow`, `wand`, `sim-chat`, `mcp_copilot`, `mothership_block`, `knowledge-base`, `voice-input`, `enrichment`, `voice-output`, `api-tool`. |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `100`. |
| `--cursor <value>` | No | Continue from nextCursor returned by a previous result. |
| `--sort-by <value>` | No | Field used to sort the result. Defaults to "createdAt". Accepted values: `createdAt`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "desc". Accepted values: `asc`, `desc`. |

API request and response schemas: [listOrganizationUsageEvents](/api-reference/organizations/listOrganizationUsageEvents).

### sim organizations list \[#sim-organizations-list]

List organizations (OAuth login or personal API key required)

```bash
sim organizations list [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--search <value>` | No | Case-insensitive substring match against the organization name. |
| `--sort-by <value>` | No | Field used to sort the result. Do not rely on case-insensitive ordering when sorting by `name`. Defaults to "name". Accepted values: `name`, `createdAt`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "asc". Accepted values: `asc`, `desc`. |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `0`. |

API request and response schemas: [listOrganizations](/api-reference/organizations/listOrganizations).

### sim organizations workspaces \[#sim-organizations-workspaces]

List organization workspaces (OAuth login or personal API key required)

```bash
sim organizations workspaces [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |
| `--search <value>` | No | Case-insensitive substring match against the workspace name. |
| `--sort-by <value>` | No | Field used to sort the result. Do not rely on case-insensitive ordering when sorting by `name`. Defaults to "name". Accepted values: `name`, `id`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "asc". Accepted values: `asc`, `desc`. |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `0`. |

API request and response schemas: [listOrganizationWorkspaces](/api-reference/organizations/listOrganizationWorkspaces).

## sim permission-groups \[#sim-permission-groups]

Manage organization permission groups, their configuration, and member assignments.

Use the linked API request schema for the supported `--config` keys. Supplied arrays replace their entire lists; omitted settings remain unchanged on update.

Also spelled `sim permission-group`.

### sim permission-groups members add \[#sim-permission-groups-members-add]

Add permission group member (OAuth login or personal API key required)

```bash
sim permission-groups members add [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |
| `--group <value>` | Yes | Permission group identifier. |
| `--user <value>` | Yes | Existing organization member to add. |

API request and response schemas: [addPermissionGroupMember](/api-reference/permission-groups/addPermissionGroupMember).

### sim permission-groups members batch-add \[#sim-permission-groups-members-batch-add]

Bulk add permission group members (OAuth login or personal API key required)

```bash
sim permission-groups members batch-add [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |
| `--group <value>` | Yes | Permission group identifier. |
| `--user <value...>` | No | User IDs to add; cannot be combined with --all-members (space- or comma-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
| `--all-members` | No | Add every current organization member; cannot be combined with --user. |

API request and response schemas: [bulkAddPermissionGroupMembers](/api-reference/permission-groups/bulkAddPermissionGroupMembers).

### sim permission-groups members list \[#sim-permission-groups-members-list]

List permission group members (OAuth login or personal API key required)

```bash
sim permission-groups members list [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |
| `--group <value>` | Yes | Permission group identifier. |
| `--sort-by <value>` | No | Field used to sort the result. Defaults to "assignedAt". Accepted values: `assignedAt`, `userId`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "asc". Accepted values: `asc`, `desc`. |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `0`. |

API request and response schemas: [listPermissionGroupMembers](/api-reference/permission-groups/listPermissionGroupMembers).

### sim permission-groups members remove \[#sim-permission-groups-members-remove]

Remove permission group member (OAuth login or personal API key required)

This removes the member assignment and changes which permission groups apply to the user.

```bash
sim permission-groups members remove <userId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `userId` | Yes | User identifier of the member to remove. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |
| `--group <value>` | Yes | Permission group identifier. |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [removePermissionGroupMember](/api-reference/permission-groups/removePermissionGroupMember).

### sim permission-groups create \[#sim-permission-groups-create]

Create permission group (OAuth login or personal API key required)

```bash
sim permission-groups create [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |
| `--name <value>` | Yes | Group name, unique within the organization. |
| `--description <value>` | No | Optional group description. |
| `--config <json\|@file>` | No | Group settings to set. Omitted keys use the default permission configuration. (JSON, or @path / @- to read a file or stdin). |
| `--default` | No | Whether the group is the organization default. Only one group can be the default. |
| `--no-default` | No | Send --default as false. |
| `--workspace-ids <json\|@file>` | Conditional | Workspace IDs targeted by a non-default group. Required when creating a non-default group; omit for a default group. (JSON, or @path / @- to read a file or stdin). |

API request and response schemas: [createPermissionGroup](/api-reference/permission-groups/createPermissionGroup).

### sim permission-groups delete \[#sim-permission-groups-delete]

Delete permission group (OAuth login or personal API key required)

This permanently deletes the permission group and its member assignments.

```bash
sim permission-groups delete <groupId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `groupId` | Yes | Permission group identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [deletePermissionGroup](/api-reference/permission-groups/deletePermissionGroup).

### sim permission-groups get \[#sim-permission-groups-get]

Get permission group (OAuth login or personal API key required)

```bash
sim permission-groups get <groupId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `groupId` | Yes | Permission group identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |

API request and response schemas: [getPermissionGroup](/api-reference/permission-groups/getPermissionGroup).

### sim permission-groups list \[#sim-permission-groups-list]

List permission groups (OAuth login or personal API key required)

```bash
sim permission-groups list [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |
| `--search <value>` | No | Case-insensitive substring match against the group name. |
| `--sort-by <value>` | No | Field used to sort the result. Do not rely on case-insensitive ordering when sorting by `name`. Defaults to "createdAt". Accepted values: `name`, `createdAt`, `updatedAt`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "desc". Accepted values: `asc`, `desc`. |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `0`. |

API request and response schemas: [listPermissionGroups](/api-reference/permission-groups/listPermissionGroups).

### sim permission-groups update \[#sim-permission-groups-update]

Update permission group (OAuth login or personal API key required)

```bash
sim permission-groups update <groupId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `groupId` | Yes | Permission group identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--organization <value>` | Yes | Organization identifier. |
| `--name <value>` | No | Group name, unique within the organization. |
| `--description <value>` | No | Group description. Null or an empty string clears it; omission leaves it unchanged. (--description null sends the word, not JSON null). |
| `--config <json\|@file>` | No | Patch of group settings. Omitted keys remain unchanged; each supplied array replaces that entire list. (JSON, or @path / @- to read a file or stdin). |
| `--default` | No | Whether the group is the organization default. Only one group can be the default. |
| `--no-default` | No | Send --default as false. |
| `--workspace-ids <json\|@file>` | No | Workspace identifiers for a non-default group. Required on creation; an empty update makes the group inactive. (JSON, or @path / @- to read a file or stdin). |

API request and response schemas: [updatePermissionGroup](/api-reference/permission-groups/updatePermissionGroup).

## sim sandboxes \[#sim-sandboxes]

Manage reusable dependency sets for Function blocks.

Also spelled `sim sandbox`.

### sim sandboxes create \[#sim-sandboxes-create]

Create sandbox (OAuth login or personal API key required)

```bash
sim sandboxes create [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--name <value>` | Yes | Display name, unique within the workspace; 1 to 64 characters. |
| `--language <value>` | Yes | Dependency ecosystem: `javascript` installs from npm, `python` from PyPI. Accepted values: `javascript`, `python`. |
| `--dependencies <value...>` | No | Package specifiers installed into the sandbox, one per entry. Defaults to \[]. (space-separated, a JSON array, or @path / @- with one value per line; in a file, blank lines and # comments are ignored, while inline values are sent as typed and may not be empty; @@value for a literal leading @). |
| `--cli-tools <value...>` | No | Pinned managed CLI ids installed into the sandbox, at most 10, no duplicates. Defaults to \[]. (space- or comma-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
| `--system-packages <value...>` | No | Debian packages installed into the sandbox, one per entry. Defaults to \[]. (space- or comma-separated, a JSON array, or @path / @- with one value per line; in a file, blank lines and # comments are ignored, while inline values are sent as typed and may not be empty; @@value for a literal leading @). |

API request and response schemas: [createSandbox](/api-reference/sandboxes/createSandbox).

### sim sandboxes delete \[#sim-sandboxes-delete]

Delete sandbox (OAuth login or personal API key required)

This deletes the sandbox; Function blocks that select it fail until re-pointed.

```bash
sim sandboxes delete <sandboxId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `sandboxId` | Yes | Unique sandbox identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [deleteSandbox](/api-reference/sandboxes/deleteSandbox).

### sim sandboxes get \[#sim-sandboxes-get]

Get sandbox

```bash
sim sandboxes get <sandboxId>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `sandboxId` | Yes | Unique sandbox identifier. |

API request and response schemas: [getSandbox](/api-reference/sandboxes/getSandbox).

### sim sandboxes list \[#sim-sandboxes-list]

List sandboxes

```bash
sim sandboxes list [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--search <value>` | No | Case-insensitive substring match against the sandbox name. |
| `--sort-by <value>` | No | Field used to sort the result. Do not rely on case-insensitive ordering when sorting by `name`. Defaults to "name". Accepted values: `name`, `createdAt`, `updatedAt`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "asc". Accepted values: `asc`, `desc`. |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `0`. |

API request and response schemas: [listSandboxes](/api-reference/sandboxes/listSandboxes).

### sim sandboxes update \[#sim-sandboxes-update]

Update sandbox (OAuth login or personal API key required)

```bash
sim sandboxes update <sandboxId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `sandboxId` | Yes | Unique sandbox identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--name <value>` | No | New display name, unique within the workspace; 1 to 64 characters. |
| `--language <value>` | No | Replacement dependency ecosystem. The whole spec is revalidated against it, so a Python dependency list does not survive a switch to JavaScript. Accepted values: `javascript`, `python`. |
| `--dependencies <value...>` | No | Replacement package list; replaces the whole list. (space-separated, a JSON array, or @path / @- with one value per line; in a file, blank lines and # comments are ignored, while inline values are sent as typed and may not be empty; @@value for a literal leading @). |
| `--cli-tools <value...>` | No | Replacement managed CLI list; replaces the whole list. (space- or comma-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
| `--system-packages <value...>` | No | Replacement Debian package list; replaces the whole list. (space- or comma-separated, a JSON array, or @path / @- with one value per line; in a file, blank lines and # comments are ignored, while inline values are sent as typed and may not be empty; @@value for a literal leading @). |

API request and response schemas: [updateSandbox](/api-reference/sandboxes/updateSandbox).

## sim schedules \[#sim-schedules]

List the schedules deployed workflows run across a workspace.

A schedule’s timing comes from its schedule block. Edit the block with `sim workflows operations apply`, then deploy; pause or resume one with `sim workflows triggers update`.

Also spelled `sim schedule`.

### sim schedules list \[#sim-schedules-list]

Show the timing and health of every schedule the workspace’s deployments run

```bash
sim schedules list [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `100`. |
| `--cursor <value>` | No | Continue from nextCursor returned by a previous result. |
| `--sort-by <value>` | No | Field used to sort the result. `createdAt` is when the schedule was created for the deployment version that runs it: each deploy creates new schedule rows, so a redeployed workflow's schedules move to the newest end. Defaults to "createdAt". Accepted values: `createdAt`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "desc". Accepted values: `asc`, `desc`. |

API request and response schemas: [listWorkspaceSchedules](/api-reference/workflows/listWorkspaceSchedules).

## sim secrets \[#sim-secrets]

Set and manage workspace or personal secrets.

Personal secrets belong to the caller across workspaces. Workspace secrets are shared resources. Listings include stored values only for workspace secrets marked visible (unredacted); all other entries contain metadata.

Also spelled `sim secret`.

### sim secrets delete \[#sim-secrets-delete]

Delete secret (OAuth login or personal API key required)

This deletes the secret; anything using it may stop working.

```bash
sim secrets delete <name> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `name` | Yes | Secret to delete. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--scope <value>` | Yes | Whether the secret belongs to the workspace or to the caller. A personal secret belongs to the caller across every workspace, not to one workspace. Accepted values: `workspace`, `personal`. |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [deleteSecret](/api-reference/secrets/deleteSecret).

### sim secrets list \[#sim-secrets-list]

List secrets (OAuth login or personal API key required)

```bash
sim secrets list [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--scope <value>` | No | Restrict results to one ownership scope. Accepted values: `workspace`, `personal`. |
| `--search <value>` | No | Case-insensitive substring match against the secret name. |
| `--sort-by <value>` | No | Field used to sort the result. Do not rely on case-insensitive ordering when sorting by `name`. Defaults to "name". Accepted values: `name`, `createdAt`, `updatedAt`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "asc". Accepted values: `asc`, `desc`. |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `0`. |

API request and response schemas: [listSecrets](/api-reference/secrets/listSecrets).

### sim secrets set \[#sim-secrets-set]

Create or replace a named secret, such as an API key or environment variable (OAuth login or personal API key required)

```bash
sim secrets set <name> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `name` | Yes | Secret name, as referenced in workflows |

**Options**

| Option | Required | Description |
| - | - | - |
| `--scope <scope>` | Yes | Secret ownership scope. Accepted values: `workspace`, `personal`. |
| `--value <value\|@file>` | No | Secret value. Passing it inline exposes it to shell history and process listings; @path reads it from a file and @- from stdin, verbatim — a trailing newline is part of the value, so write the file with printf rather than echo. Prefix a literal leading @ with a second one. |
| `--description <description>` | No | What the secret is for, shown to teammates; workspace scope only. Omit to leave an existing description unchanged. |
| `--unredacted` | No | Opt the workspace secret out of redaction: its value then appears in plaintext in run logs, model-visible content, and files, including publicly shared log links. Workspace scope only — sending it for a personal secret is rejected. Omit it to leave the current setting untouched. Pass --no-unredacted to restore redaction. |
| `--no-unredacted` | No | Send --unredacted as false. |

Omit --value to enter it privately in a terminal. For an existing workspace secret, passing only --description or a redaction flag keeps the stored value and does not prompt. Personal secrets always require a value; they accept no writable metadata. In scripts, pass --value @path or --value @-.

API request and response schemas: [setSecret](/api-reference/secrets/setSecret).

## sim selectors \[#sim-selectors]

Discover destination options for registered fields, such as calendars, channels, and tables.

A selector key identifies the field’s option source. Its context accepts only declared dependencies; missing OAuth access requires a person to authorize the connection.

### sim selectors get \[#sim-selectors-get]

Get selector option (OAuth login or personal API key required)

```bash
sim selectors get [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--selector-key <value>` | Yes | Registered selector key from an import or sync preview, such as `gmail.labels`. Accepted values: `airtable.bases`, `airtable.tables`, `asana.workspaces`, `attio.lists`, `attio.objects`, `bigquery.datasets`, `bigquery.tables`, `bitbucket.workspaces`, `bitbucket.repositories`, `calcom.eventTypes`, `calcom.schedules`, `clickup.workspaces`, `clickup.spaces`, `clickup.folders`, `clickup.lists`, `coda.docs`, `coda.pages`, `coda.tables`, `coda.columns`, `coda.rows`, `coda.formulas`, `coda.controls`, `coda.folders`, `coda.permissions`, `confluence.spaces`, `confluence.spacesById`, `confluence.pages`, `google.tasks.lists`, `gauge.organizations`, `gauge.categories`, `gauge.topics`, `gauge.prompts`, `gauge.tags`, `gauge.answers`, `fivetran.groups`, `fivetran.connections`, `gmail.labels`, `google.calendar`, `google.drive`, `google.sheets`, `harmonic.savedSearches`, `jama.projects`, `jama.itemTypes`, `flow.projects`, `flow.categories`, `flow.branches`, `helpscout.mailboxes`, `helpscout.assignees`, `hubspot.lists`, `hubspot.owners`, `hubspot.pipelines`, `hubspot.pipelineStages`, `hubspot.properties`, `jsm.requestTypes`, `jsm.serviceDesks`, `microsoft.planner.plans`, `notion.databases`, `notion.pages`, `netsuite.recordTypes`, `netsuite.asyncTasks`, `pipedrive.pipelines`, `sharepoint.lists`, `trello.boards`, `zoho_desk.organizations`, `zoho_desk.departments`, `zoho_desk.agents`, `zoom.meetings`, `slack.channels`, `snowflake.databases`, `snowflake.schemas`, `snowflake.tables`, `snowflake.warehouses`, `snowflake.roles`, `snowflake.fileFormats`, `snowflake.procedures`, `slack.users`, `outlook.folders`, `outlook.calendars`, `microsoft.teams`, `microsoft.chats`, `microsoft.channels`, `microsoft.planner`, `onedrive.files`, `onedrive.folders`, `sharepoint.sites`, `microsoft.excel`, `microsoft.excel.drives`, `microsoft.excel.sheets`, `microsoft.word`, `wealthbox.contacts`, `jira.issues`, `jira.projects`, `jira.projectKeys`, `linear.projects`, `linear.teams`, `monday.boards`, `monday.groups`, `webflow.sites`, `webflow.collections`, `webflow.items`, `planetscale.databases`, `powerbi.workspaces`, `powerbi.datasets`, `powerbi.reports`, `planetscale.branches`, `planetscale.backups`, `planetscale.deployRequests`, `planetscale.savedDatabases`, `planetscale.savedBranches`, `planetscale.savedBackups`, `planetscale.savedDeployRequests`, `cloudwatch.logGroups`, `cloudwatch.logStreams`, `cloudwatch.savedLogGroups`, `cloudwatch.savedLogStreams`, `imap.mailboxes`, `mcp.tools`, `managedAgent.agents`, `managedAgent.environments`, `managedAgent.vaults`, `managedAgent.memoryStores`, `knowledge.documents`, `sim.workflows`, `table.columns`, `table.outputColumns`, `workspace.secretNames`, `workspace.sandboxes`, `providers.ollamaEmbeddingModels`, `providers.openrouterEmbeddingModels`. |
| `--context <json\|@file>` | No | Only the dependencies declared by the selector, such as oauthCredential and channelId. Missing OAuth connections require human authorization. Defaults to {}. (JSON, or @path / @- to read a file or stdin). |
| `--id <value>` | Yes | Provider option ID to resolve with the same selector and declared context. |

API request and response schemas: [getSelector](/api-reference/workspace-sync/getSelector).

### sim selectors list \[#sim-selectors-list]

List selector options (OAuth login or personal API key required)

```bash
sim selectors list [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--selector-key <value>` | Yes | Registered selector key from an import or sync preview, such as `gmail.labels`. Accepted values: `airtable.bases`, `airtable.tables`, `asana.workspaces`, `attio.lists`, `attio.objects`, `bigquery.datasets`, `bigquery.tables`, `bitbucket.workspaces`, `bitbucket.repositories`, `calcom.eventTypes`, `calcom.schedules`, `clickup.workspaces`, `clickup.spaces`, `clickup.folders`, `clickup.lists`, `coda.docs`, `coda.pages`, `coda.tables`, `coda.columns`, `coda.rows`, `coda.formulas`, `coda.controls`, `coda.folders`, `coda.permissions`, `confluence.spaces`, `confluence.spacesById`, `confluence.pages`, `google.tasks.lists`, `gauge.organizations`, `gauge.categories`, `gauge.topics`, `gauge.prompts`, `gauge.tags`, `gauge.answers`, `fivetran.groups`, `fivetran.connections`, `gmail.labels`, `google.calendar`, `google.drive`, `google.sheets`, `harmonic.savedSearches`, `jama.projects`, `jama.itemTypes`, `flow.projects`, `flow.categories`, `flow.branches`, `helpscout.mailboxes`, `helpscout.assignees`, `hubspot.lists`, `hubspot.owners`, `hubspot.pipelines`, `hubspot.pipelineStages`, `hubspot.properties`, `jsm.requestTypes`, `jsm.serviceDesks`, `microsoft.planner.plans`, `notion.databases`, `notion.pages`, `netsuite.recordTypes`, `netsuite.asyncTasks`, `pipedrive.pipelines`, `sharepoint.lists`, `trello.boards`, `zoho_desk.organizations`, `zoho_desk.departments`, `zoho_desk.agents`, `zoom.meetings`, `slack.channels`, `snowflake.databases`, `snowflake.schemas`, `snowflake.tables`, `snowflake.warehouses`, `snowflake.roles`, `snowflake.fileFormats`, `snowflake.procedures`, `slack.users`, `outlook.folders`, `outlook.calendars`, `microsoft.teams`, `microsoft.chats`, `microsoft.channels`, `microsoft.planner`, `onedrive.files`, `onedrive.folders`, `sharepoint.sites`, `microsoft.excel`, `microsoft.excel.drives`, `microsoft.excel.sheets`, `microsoft.word`, `wealthbox.contacts`, `jira.issues`, `jira.projects`, `jira.projectKeys`, `linear.projects`, `linear.teams`, `monday.boards`, `monday.groups`, `webflow.sites`, `webflow.collections`, `webflow.items`, `planetscale.databases`, `powerbi.workspaces`, `powerbi.datasets`, `powerbi.reports`, `planetscale.branches`, `planetscale.backups`, `planetscale.deployRequests`, `planetscale.savedDatabases`, `planetscale.savedBranches`, `planetscale.savedBackups`, `planetscale.savedDeployRequests`, `cloudwatch.logGroups`, `cloudwatch.logStreams`, `cloudwatch.savedLogGroups`, `cloudwatch.savedLogStreams`, `imap.mailboxes`, `mcp.tools`, `managedAgent.agents`, `managedAgent.environments`, `managedAgent.vaults`, `managedAgent.memoryStores`, `knowledge.documents`, `sim.workflows`, `table.columns`, `table.outputColumns`, `workspace.secretNames`, `workspace.sandboxes`, `providers.ollamaEmbeddingModels`, `providers.openrouterEmbeddingModels`. |
| `--context <json\|@file>` | No | Only the dependencies declared by the selector, such as oauthCredential and channelId. Missing OAuth connections require human authorization. Defaults to {}. (JSON, or @path / @- to read a file or stdin). |
| `--search <value>` | No | Provider option search text. |
| `--cursor <value>` | No | Continue from nextCursor returned by a previous result. |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `100`. |

API request and response schemas: [listSelector](/api-reference/workspace-sync/listSelector).

## sim skills \[#sim-skills]

Create reusable agent instructions and manage their editors.

Also spelled `sim skill`.

### sim skills create \[#sim-skills-create]

Create skill (OAuth login or personal API key required)

```bash
sim skills create [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--name <value>` | Yes | Kebab-case name, unique within the workspace and not reserved by a built-in skill. |
| `--description <value>` | Yes | One-line summary of when the skill applies. |
| `--content <value>` | Yes | Skill body containing the instructions given to the agent. |

API request and response schemas: [createSkill](/api-reference/skills/createSkill).

### sim skills delete \[#sim-skills-delete]

Delete skill (OAuth login or personal API key required)

This deletes the skill.

```bash
sim skills delete <skillId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `skillId` | Yes | Unique skill identifier. A built-in skill is `builtin-` followed by its name, for example `builtin-research`. |

**Options**

| Option | Required | Description |
| - | - | - |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [deleteSkill](/api-reference/skills/deleteSkill).

### sim skills get \[#sim-skills-get]

Get skill

```bash
sim skills get <skillId>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `skillId` | Yes | Unique skill identifier. A built-in skill is `builtin-` followed by its name, for example `builtin-research`. |

API request and response schemas: [getSkill](/api-reference/skills/getSkill).

### sim skills editors create \[#sim-skills-editors-create]

Grant skill editor (OAuth login or personal API key required)

```bash
sim skills editors create <skillId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `skillId` | Yes | Unique skill identifier. A built-in skill is `builtin-` followed by its name, for example `builtin-research`. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--email <value>` | Yes | Email address of a current workspace member. |

API request and response schemas: [grantSkillEditor](/api-reference/skills/grantSkillEditor).

### sim skills editors list \[#sim-skills-editors-list]

List skill editors

```bash
sim skills editors list <skillId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `skillId` | Yes | Unique skill identifier. A built-in skill is `builtin-` followed by its name, for example `builtin-research`. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--sort-by <value>` | No | Field used to sort the result. Do not rely on case-insensitive ordering when sorting by `name`. Defaults to "email". Accepted values: `email`, `name`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "asc". Accepted values: `asc`, `desc`. |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `0`. |

API request and response schemas: [listSkillEditors](/api-reference/skills/listSkillEditors).

### sim skills editors delete \[#sim-skills-editors-delete]

Revoke skill editor (OAuth login or personal API key required)

This revokes the explicit skill editor grant for the selected email.

```bash
sim skills editors delete <skillId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `skillId` | Yes | Unique skill identifier. A built-in skill is `builtin-` followed by its name, for example `builtin-research`. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--email <value>` | Yes | Email address of a current workspace member. |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [revokeSkillEditor](/api-reference/skills/revokeSkillEditor).

### sim skills list \[#sim-skills-list]

List skills

```bash
sim skills list [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--search <value>` | No | Case-insensitive substring match against the skill name. |
| `--sort-by <value>` | No | Field used to sort the result. Do not rely on case-insensitive ordering when sorting by `name`. Defaults to "createdAt". Accepted values: `name`, `createdAt`, `updatedAt`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "desc". Accepted values: `asc`, `desc`. |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `0`. |

API request and response schemas: [listSkills](/api-reference/skills/listSkills).

### sim skills update \[#sim-skills-update]

Update skill (OAuth login or personal API key required)

```bash
sim skills update <skillId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `skillId` | Yes | Unique skill identifier. A built-in skill is `builtin-` followed by its name, for example `builtin-research`. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--name <value>` | No | New kebab-case skill name. |
| `--description <value>` | No | New one-line summary of when the skill applies. |
| `--content <value>` | No | Replacement skill body. |

API request and response schemas: [updateSkill](/api-reference/skills/updateSkill).

## sim tables \[#sim-tables]

Manage tables, rows, schemas, views, enrichment runs, imports, and exports.

Also spelled `sim table`.

### sim tables columns create \[#sim-tables-columns-create]

Add column

```bash
sim tables columns create <tableId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `tableId` | Yes | Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id). |

**Options**

| Option | Required | Description |
| - | - | - |
| `--column <json\|@file>` | Yes | Column definition to add: {"name":"status","type":"string"}. Column fields: id - Optional client-provided column identifier; name (required) - Column name; type (required) - Column data type; required - Whether inserts must supply a value for this column; unique - Whether values in the column must be unique; options - Select options for select-type columns, as \[{"id":"open","name":"Open"}]; multiple - Whether a select column accepts multiple values; currencyCode - ISO 4217 code for currency columns; position - Zero-based insertion position for the column. A column's type is one of string, number, currency, boolean, date, json, select; a select column also takes options. (JSON, or @path / @- to read a file or stdin). |

API request and response schemas: [addTableColumn](/api-reference/tables/addTableColumn).

### sim tables columns delete \[#sim-tables-columns-delete]

Delete column

This deletes the column and its values in every row.

```bash
sim tables columns delete <tableId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `tableId` | Yes | Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id). |

**Options**

| Option | Required | Description |
| - | - | - |
| `--column-name <value>` | Yes | Name of the column to delete. |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [deleteTableColumn](/api-reference/tables/deleteTableColumn).

### sim tables columns update \[#sim-tables-columns-update]

Update column

```bash
sim tables columns update <tableId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `tableId` | Yes | Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id). |

**Options**

| Option | Required | Description |
| - | - | - |
| `--column-name <value>` | Yes | Current name of the column to update. |
| `--updates <json\|@file>` | Yes | Mutable column fields. (JSON, or @path / @- to read a file or stdin). |

API request and response schemas: [updateTableColumn](/api-reference/tables/updateTableColumn).

### sim tables groups create \[#sim-tables-groups-create]

Add workflow group

```bash
sim tables groups create <tableId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `tableId` | Yes | Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id). |

**Options**

| Option | Required | Description |
| - | - | - |
| `--group <json\|@file>` | Yes | Workflow or enrichment producer definition. (JSON, or @path / @- to read a file or stdin). |
| `--output-columns <json\|@file>` | No | Columns to create for producer outputs. An entry naming a column the table already has attaches that column to the group instead of creating it (its `type` must match), and an output whose column already exists may omit its entry entirely — so `[]` attaches existing columns only. Defaults to \[]. (JSON, or @path / @- to read a file or stdin). |
| `--auto-run` | No | Whether to schedule existing rows after group creation. Defaults to false. |
| `--no-auto-run` | No | Send --auto-run as false. |

API request and response schemas: [addWorkflowGroup](/api-reference/tables/addTableWorkflowGroup).

### sim tables groups delete \[#sim-tables-groups-delete]

Delete workflow group

This deletes the group AND its output columns with all of their row data; the workflow it pointed at is untouched.

```bash
sim tables groups delete <tableId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `tableId` | Yes | Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id). |

**Options**

| Option | Required | Description |
| - | - | - |
| `--group-id <value>` | Yes | Workflow group to delete. |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [deleteWorkflowGroup](/api-reference/tables/deleteTableWorkflowGroup).

### sim tables groups list \[#sim-tables-groups-list]

List workflow groups

```bash
sim tables groups list <tableId>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `tableId` | Yes | Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id). |

API request and response schemas: [listWorkflowGroups](/api-reference/tables/listTableWorkflowGroups).

### sim tables groups update \[#sim-tables-groups-update]

Update workflow group

```bash
sim tables groups update <tableId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `tableId` | Yes | Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id). |

**Options**

| Option | Required | Description |
| - | - | - |
| `--group-id <value>` | Yes | Workflow group to update. |
| `--workflow-id <value>` | No | Replacement backing workflow identifier. |
| `--name <value>` | No | Replacement workflow-group display name. |
| `--dependencies <json\|@file>` | No | Replacement input dependencies. (JSON, or @path / @- to read a file or stdin). |
| `--outputs <json\|@file>` | No | Replacement producer outputs. (JSON, or @path / @- to read a file or stdin). |
| `--new-output-columns <json\|@file>` | No | Columns to add for new outputs. (JSON, or @path / @- to read a file or stdin). |
| `--mapping-updates <json\|@file>` | No | Existing output-column mapping changes. (JSON, or @path / @- to read a file or stdin). |
| `--input-mappings <json\|@file>` | No | Replacement workflow input mappings. (JSON, or @path / @- to read a file or stdin). |
| `--deployment-mode <value>` | No | Replacement workflow execution mode. Accepted values: `live`, `deployed`. |
| `--type <value>` | No | Workflow-group producer type. Must match the group's stored type — a group's producer cannot be changed after creation. Accepted values: `manual`, `enrichment`. |
| `--auto-run` | No | Replacement automatic-run setting. |
| `--no-auto-run` | No | Send --auto-run as false. |

API request and response schemas: [updateWorkflowGroup](/api-reference/tables/updateTableWorkflowGroup).

### sim tables batch-delete \[#sim-tables-batch-delete]

Bulk delete tables and folders

This archives the selected tables and folders, including their rows. Restore eligible tables with `tables restore`.

```bash
sim tables batch-delete [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--table-ids <json\|@file>` | No | Tables to archive, by identifier. Defaults to \[]. (JSON, or @path / @- to read a file or stdin). |
| `--folder <value...>` | No | Folder path as shown in the app; the leading / is optional (space-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [bulkDeleteTables](/api-reference/tables/bulkDeleteTables).

### sim tables rows update-each \[#sim-tables-rows-update-each]

Apply a distinct patch to each listed row

```bash
sim tables rows update-each <tableId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `tableId` | Yes | Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id). |

**Options**

| Option | Required | Description |
| - | - | - |
| `--updates <json\|@file>` | Yes | One merge patch per row. Each row identifier may appear at most once. (JSON, or @path / @- to read a file or stdin). |

API request and response schemas: [bulkUpdateTableRows](/api-reference/tables/bulkUpdateTableRows).

### sim tables rows create \[#sim-tables-rows-create]

Create rows

```bash
sim tables rows create <tableId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `tableId` | Yes | Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id). |

**Options**

| Option | Required | Description |
| - | - | - |
| `--data <json\|@file>` | No | One row keyed by column name (JSON, or @path / @-; choose exactly one body flag). |
| `--rows <json\|@file>` | No | Several rows keyed by column name (JSON, or @path / @-; choose exactly one body flag). |

API request and response schemas: [createTableRows](/api-reference/tables/createTableRows).

### sim tables rows delete \[#sim-tables-rows-delete]

Delete row

This deletes the row.

```bash
sim tables rows delete <tableId> <rowId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `tableId` | Yes | Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id). |
| `rowId` | Yes | Unique table row identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [deleteTableRow](/api-reference/tables/deleteTableRow).

### sim tables rows batch-delete \[#sim-tables-rows-batch-delete]

Delete rows matching a filter, or an explicit list of ids

This deletes every matching row and cannot be undone.

```bash
sim tables rows batch-delete <tableId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `tableId` | Yes | Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id). |

**Options**

| Option | Required | Description |
| - | - | - |
| `--filter <json\|@file>` | No | Predicate: {"all":\[{"field":"status","op":"eq","value":"active"}]}; groups use all/any. Operators: eq, ne, gt, gte, lt, lte, in, nin, contains, ncontains, startsWith, endsWith, like, ilike, nlike, nilike, isEmpty, isNotEmpty, isNull, isNotNull (JSON, or @path / @- to read a file or stdin). |
| `--limit <value>` | No | Maximum matching rows to delete. (caps a --filter match only; omit it to act on every match, and note 0 is not accepted). |
| `--row <value...>` | No | Explicit row identifiers to delete. (space- or comma-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [deleteTableRows](/api-reference/tables/deleteTableRows).

### sim tables rows get \[#sim-tables-rows-get]

Get row

```bash
sim tables rows get <tableId> <rowId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `tableId` | Yes | Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id). |
| `rowId` | Yes | Unique table row identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--include-run-state` | No | Include per-workflow-group run outcomes on the row. Off by default. Run state above 2 MiB returns `413`; omit this option to read the row without run state. |
| `--no-include-run-state` | No | Send --include-run-state as false. |

API request and response schemas: [getTableRow](/api-reference/tables/getTableRow).

### sim tables rows list \[#sim-tables-rows-list]

List rows

```bash
sim tables rows list <tableId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `tableId` | Yes | Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id). |

**Options**

| Option | Required | Description |
| - | - | - |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `100`. |
| `--cursor <value>` | No | Continue from nextCursor returned by a previous result. |
| `--include-run-state` | No | Include per-workflow-group run outcomes on every row. Off by default. Caps `limit` at 200. Run state above 2 MiB returns `413`; request fewer rows or omit run state. |
| `--no-include-run-state` | No | Send --include-run-state as false. |

API request and response schemas: [listTableRows](/api-reference/tables/listTableRows).

### sim tables rows query \[#sim-tables-rows-query]

Query rows with a filter and sort

```bash
sim tables rows query <tableId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `tableId` | Yes | Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id). |

**Options**

| Option | Required | Description |
| - | - | - |
| `--filter <json\|@file>` | No | Condition: {"field":"status","op":"eq","value":"active"}. Groups: {"all":\[{"field":"status","op":"eq","value":"active"}]} or {"any":\[{"field":"status","op":"eq","value":"active"}]}; group entries may also be nested groups. Operators: eq, ne, gt, gte, lt, lte, in, nin, contains, ncontains, startsWith, endsWith, like, ilike, nlike, nilike, isEmpty, isNotEmpty, isNull, isNotNull (JSON, or @path / @- to read a file or stdin). |
| `--sort <json\|@file>` | No | Ordered sort keys: \[{"field":"createdAt","direction":"desc"}] (direction: asc or desc) (JSON, or @path / @- to read a file or stdin). |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `100`. |
| `--cursor <value>` | No | Continue from nextCursor returned by a previous result. |
| `--include-run-state` | No | Include per-workflow-group run outcomes on every row. Off by default. Each request above 2 MiB of run state returns 413; request fewer rows or omit run state. CLI --limit 0 still fetches bounded pages. |
| `--no-include-run-state` | No | Send --include-run-state as false. |

API request and response schemas: [queryRows](/api-reference/tables/queryTableRows).

### sim tables rows count \[#sim-tables-rows-count]

Count rows matching a filter

```bash
sim tables rows count <tableId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `tableId` | Yes | Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id). |

**Options**

| Option | Required | Description |
| - | - | - |
| `--filter <json\|@file>` | No | Condition: {"field":"status","op":"eq","value":"active"}. Groups: {"all":\[{"field":"status","op":"eq","value":"active"}]} or {"any":\[{"field":"status","op":"eq","value":"active"}]}; group entries may also be nested groups. Operators: eq, ne, gt, gte, lt, lte, in, nin, contains, ncontains, startsWith, endsWith, like, ilike, nlike, nilike, isEmpty, isNotEmpty, isNull, isNotNull (JSON, or @path / @- to read a file or stdin). |

API request and response schemas: [queryRowsCount](/api-reference/tables/countTableRows).

### sim tables rows enrich \[#sim-tables-rows-enrich]

Run one row’s enrichment group

```bash
sim tables rows enrich <tableId> <rowId> <groupId>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `tableId` | Yes | Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id). |
| `rowId` | Yes | Unique table row identifier. |
| `groupId` | Yes | Workflow or enrichment group to run. |

API request and response schemas: [runRowEnrichment](/api-reference/tables/runRowEnrichment).

### sim tables rows search \[#sim-tables-rows-search]

Search cells for a value and return their coordinates

```bash
sim tables rows search <tableId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `tableId` | Yes | Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id). |

**Options**

| Option | Required | Description |
| - | - | - |
| `--query <value>` | Yes | Value to search for. |
| `--filter <json\|@file>` | No | Predicate: {"all":\[{"field":"status","op":"eq","value":"active"}]}; groups use all/any. Operators: eq, ne, gt, gte, lt, lte, in, nin, contains, ncontains, startsWith, endsWith, like, ilike, nlike, nilike, isEmpty, isNotEmpty, isNull, isNotNull (JSON, or @path / @- to read a file or stdin). |
| `--sort <json\|@file>` | No | Ordered sort keys: \[{"field":"createdAt","direction":"desc"}] (direction: asc or desc) (JSON, or @path / @- to read a file or stdin). |

API request and response schemas: [searchTableRows](/api-reference/tables/searchTableRows).

### sim tables rows batch-update \[#sim-tables-rows-batch-update]

Update every row matching a filter

This updates every matching row and cannot be undone.

```bash
sim tables rows batch-update <tableId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `tableId` | Yes | Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id). |

**Options**

| Option | Required | Description |
| - | - | - |
| `--filter <json\|@file>` | Yes | Predicate: {"all":\[{"field":"status","op":"eq","value":"active"}]}; groups use all/any. Operators: eq, ne, gt, gte, lt, lte, in, nin, contains, ncontains, startsWith, endsWith, like, ilike, nlike, nilike, isEmpty, isNotEmpty, isNull, isNotNull (JSON, or @path / @- to read a file or stdin). |
| `--data <json\|@file>` | Yes | Row-data patch applied to every matching row. (JSON, or @path / @- to read a file or stdin). |
| `--limit <value>` | No | Maximum matching rows to update. (caps a --filter match only; omit it to act on every match, and note 0 is not accepted). |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [updateRowsByFilter](/api-reference/tables/updateTableRows).

### sim tables rows update \[#sim-tables-rows-update]

Update row

```bash
sim tables rows update <tableId> <rowId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `tableId` | Yes | Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id). |
| `rowId` | Yes | Unique table row identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--data <json\|@file>` | Yes | Partial row-data patch keyed by column name. (JSON, or @path / @- to read a file or stdin). |

API request and response schemas: [updateTableRow](/api-reference/tables/updateTableRow).

### sim tables dispatches cancel \[#sim-tables-dispatches-cancel]

Cancel a running dispatch

This stops the dispatch. Cells already handed to the queue keep running — use `tables cancel-runs` to stop those.

```bash
sim tables dispatches cancel <tableId> <dispatchId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `tableId` | Yes | Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id). |
| `dispatchId` | Yes | Unique table run-dispatch identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [cancelTableDispatch](/api-reference/tables/cancelTableDispatch).

### sim tables dispatches create \[#sim-tables-dispatches-create]

Start a column or enrichment run

```bash
sim tables dispatches create <tableId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `tableId` | Yes | Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id). |

**Options**

| Option | Required | Description |
| - | - | - |
| `--group-ids <value...>` | Yes | Workflow or enrichment groups to run. (space- or comma-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
| `--run-mode <value>` | No | Whether to run all or only incomplete cells. Defaults to "all". Accepted values: `all`, `incomplete`. |
| `--row-ids <value...>` | No | Explicit row subset to run. (space- or comma-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
| `--filter <json\|@file>` | No | Predicate: {"all":\[{"field":"status","op":"eq","value":"active"}]}; groups use all/any. Operators: eq, ne, gt, gte, lt, lte, in, nin, contains, ncontains, startsWith, endsWith, like, ilike, nlike, nilike, isEmpty, isNotEmpty, isNull, isNotNull (JSON, or @path / @- to read a file or stdin). |
| `--exclude-row-ids <value...>` | No | Rows excluded from a select-all run scope. (space- or comma-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
| `--max-rows <n>` | No | Stop after this many eligible rows have run (1-1,000,000). Omit for an unbounded run. |

API request and response schemas: [createTableDispatch](/api-reference/tables/createTableDispatch).

### sim tables dispatches get \[#sim-tables-dispatches-get]

Get run dispatch

```bash
sim tables dispatches get <tableId> <dispatchId>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `tableId` | Yes | Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id). |
| `dispatchId` | Yes | Unique table run-dispatch identifier. |

API request and response schemas: [getTableDispatch](/api-reference/tables/getTableDispatch).

### sim tables dispatches list \[#sim-tables-dispatches-list]

List run dispatches

```bash
sim tables dispatches list <tableId>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `tableId` | Yes | Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id). |

API request and response schemas: [listTableDispatches](/api-reference/tables/listTableDispatches).

### sim tables exports cancel \[#sim-tables-exports-cancel]

Stop a running export

```bash
sim tables exports cancel <tableId> <exportId>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `tableId` | Yes | Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id). |
| `exportId` | Yes | Unique table-export identifier. |

API request and response schemas: [cancelTableExport](/api-reference/tables/cancelTableExport).

### sim tables exports create \[#sim-tables-exports-create]

Create table export

```bash
sim tables exports create <tableId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `tableId` | Yes | Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id). |

**Options**

| Option | Required | Description |
| - | - | - |
| `--format <value>` | No | Export file format. Defaults to "csv". Accepted values: `csv`, `json`. |

API request and response schemas: [createTableExport](/api-reference/tables/createTableExport).

### sim tables exports get \[#sim-tables-exports-get]

Get table export

```bash
sim tables exports get <tableId> <exportId>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `tableId` | Yes | Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id). |
| `exportId` | Yes | Unique table-export identifier. |

API request and response schemas: [getTableExport](/api-reference/tables/getTableExport).

### sim tables exports download \[#sim-tables-exports-download]

Get the download URL for a finished export

```bash
sim tables exports download <tableId> <exportId>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `tableId` | Yes | Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id). |
| `exportId` | Yes | Unique table-export identifier. |

API request and response schemas: [tableExportDownload](/api-reference/tables/downloadTableExport).

### sim tables imports cancel \[#sim-tables-imports-cancel]

Stop a running import

This stops the import between row batches, so whatever it already wrote stays and nothing resumes it. A replace import empties the table before its first batch, so cancelling one leaves only part of the new file; an append adds its rows again if you import the file a second time.

```bash
sim tables imports cancel <importId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `importId` | Yes | Unique table-import identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [cancelTableImport](/api-reference/tables/cancelTableImport).

### sim tables imports get \[#sim-tables-imports-get]

Get table import

```bash
sim tables imports get <importId>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `importId` | Yes | Unique table-import identifier. |

API request and response schemas: [getTableImport](/api-reference/tables/getTableImport).

### sim tables cancel-runs \[#sim-tables-cancel-runs]

Stop every running column job

This cancels running column jobs — the whole table with --scope all, one row with --scope row.

```bash
sim tables cancel-runs <tableId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `tableId` | Yes | Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id). |

**Options**

| Option | Required | Description |
| - | - | - |
| `--scope <value>` | Yes | Whether to cancel across the table or one row. Accepted values: `all`, `row`. |
| `--row-id <value>` | No | Row whose runs should be canceled for row scope. |
| `--filter <json\|@file>` | No | Predicate: {"all":\[{"field":"status","op":"eq","value":"active"}]}; groups use all/any. Operators: eq, ne, gt, gte, lt, lte, in, nin, contains, ncontains, startsWith, endsWith, like, ilike, nlike, nilike, isEmpty, isNotEmpty, isNull, isNotNull (JSON, or @path / @- to read a file or stdin). |
| `--exclude-row-ids <value...>` | No | Rows excluded from an all-scope cancellation. (space- or comma-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [cancelTableRuns](/api-reference/tables/cancelTableRuns).

### sim tables create \[#sim-tables-create]

Create table

```bash
sim tables create [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--name <value>` | Yes | Identifier: letters, numbers, and underscores; cannot start with a number. |
| `--description <value>` | No | Optional table description. |
| `--schema <json\|@file>` | Yes | Initial table column definitions: {"columns":\[{"name":"email","type":"string","required":true,"unique":true}]}. Column fields: id - Optional client-provided column identifier; name (required) - Column name; type (required) - Column data type; required - Whether inserts must supply a value for this column; unique - Whether values in the column must be unique; options - Select options for select-type columns, as \[{"id":"open","name":"Open"}]; multiple - Whether a select column accepts multiple values; currencyCode - ISO 4217 code for currency columns. A column's type is one of string, number, currency, boolean, date, json, select; a select column also takes options. (JSON, or @path / @- to read a file or stdin). |
| `--folder <value>` | No | Folder path as shown in the app; the leading / is optional. |

API request and response schemas: [createTable](/api-reference/tables/createTable).

### sim tables folders create \[#sim-tables-folders-create]

Create a table folder at a path

```bash
sim tables folders create <path>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `path` | Yes | Folder path as shown in the app; the leading / is optional |

API request and response schemas: [createTableFolder](/api-reference/tables/createTablesFolder).

### sim tables folders delete \[#sim-tables-folders-delete]

Delete folder

This archives the table folder and, when recursive, everything inside it.

```bash
sim tables folders delete <path> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `path` | Yes | Folder path as shown in the app; the leading / is optional |

**Options**

| Option | Required | Description |
| - | - | - |
| `--recursive` | No | Archive the folder and its descendants. Defaults to "false". |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [deleteTableFolder](/api-reference/tables/deleteTablesFolder).

### sim tables folders list \[#sim-tables-folders-list]

List table folders

```bash
sim tables folders list [options]
```

Also available as `sim tables folders ls`.

**Options**

| Option | Required | Description |
| - | - | - |
| `--parent <value>` | No | Direct parent folder path. |
| `--search <value>` | No | Case-insensitive substring match against the folder name. |
| `--sort-by <value>` | No | Field used to sort the result. Do not rely on case-insensitive ordering when sorting by `name`. Defaults to "name". Accepted values: `name`, `createdAt`, `updatedAt`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "asc". Accepted values: `asc`, `desc`. |

API request and response schemas: [listTableFolders](/api-reference/tables/listTablesFolders).

### sim tables folders move \[#sim-tables-folders-move]

Rename or move a table folder

```bash
sim tables folders move <path> <destination>
```

Also available as `sim tables folders mv`.

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `path` | Yes | Folder path as shown in the app; the leading / is optional |
| `destination` | Yes | Folder path as shown in the app; the leading / is optional |

API request and response schemas: [relocateTableFolder](/api-reference/tables/relocateTablesFolder).

### sim tables folders restore \[#sim-tables-folders-restore]

Restore an archived table folder

```bash
sim tables folders restore <path>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `path` | Yes | Folder path as shown in the app; the leading / is optional |

API request and response schemas: [restoreTableFolder](/api-reference/tables/restoreTablesFolder).

### sim tables views create \[#sim-tables-views-create]

Create view

```bash
sim tables views create <tableId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `tableId` | Yes | Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id). |

**Options**

| Option | Required | Description |
| - | - | - |
| `--name <value>` | Yes | Saved-view display name. |
| `--config <json\|@file>` | Yes | Saved filter, sort, and column-layout configuration. (JSON, or @path / @- to read a file or stdin). |

API request and response schemas: [createTableView](/api-reference/tables/createTableView).

### sim tables views delete \[#sim-tables-views-delete]

Delete view

This deletes the saved view and its filters.

```bash
sim tables views delete <tableId> <viewId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `tableId` | Yes | Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id). |
| `viewId` | Yes | Unique saved-view identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [deleteTableView](/api-reference/tables/deleteTableView).

### sim tables views get \[#sim-tables-views-get]

Get view

```bash
sim tables views get <tableId> <viewId>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `tableId` | Yes | Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id). |
| `viewId` | Yes | Unique saved-view identifier. |

API request and response schemas: [getTableView](/api-reference/tables/getTableView).

### sim tables views list \[#sim-tables-views-list]

List views

```bash
sim tables views list <tableId>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `tableId` | Yes | Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id). |

API request and response schemas: [listTableViews](/api-reference/tables/listTableViews).

### sim tables views update \[#sim-tables-views-update]

Update view

```bash
sim tables views update <tableId> <viewId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `tableId` | Yes | Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id). |
| `viewId` | Yes | Unique saved-view identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--name <value>` | No | Replacement saved-view display name. |
| `--config <json\|@file>` | No | Complete replacement saved-view configuration. (JSON, or @path / @- to read a file or stdin). |
| `--config-patch <json\|@file>` | No | Saved-view configuration fields to shallow-merge. (JSON, or @path / @- to read a file or stdin). |
| `--default` | No | Whether to promote this view to the table default. |
| `--no-default` | No | Send --default as false. |

API request and response schemas: [updateTableView](/api-reference/tables/updateTableView).

### sim tables delete \[#sim-tables-delete]

Delete table

This archives the table and all of its rows; restore with `tables restore`.

```bash
sim tables delete <tableId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `tableId` | Yes | Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id). |

**Options**

| Option | Required | Description |
| - | - | - |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [deleteTable](/api-reference/tables/deleteTable).

### sim tables enrichment get \[#sim-tables-enrichment-get]

Get row group run

```bash
sim tables enrichment get <tableId> <rowId> <groupId>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `tableId` | Yes | Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id). |
| `rowId` | Yes | Unique table row identifier. |
| `groupId` | Yes | Workflow or enrichment group to run. |

API request and response schemas: [getRowEnrichment](/api-reference/tables/getRowEnrichment).

### sim tables get \[#sim-tables-get]

Get table

```bash
sim tables get <tableId>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `tableId` | Yes | Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id). |

API request and response schemas: [getTable](/api-reference/tables/getTable).

### sim tables list \[#sim-tables-list]

List tables

```bash
sim tables list [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--scope <value>` | No | Which lifecycle set to list: `active` (default) for live tables, `archived` for tables a delete archived and a table restore can bring back. `folderPath` resolves against active folders only, so pairing it with `scope=archived` returns an empty page when the containing folder was archived too. Accepted values: `active`, `archived`. |
| `--folder <value>` | No | Folder path as shown in the app; the leading / is optional. |
| `--search <value>` | No | Case-insensitive substring match against the resource name. |
| `--sort-by <value>` | No | Field used to sort the result. Do not rely on case-insensitive ordering when sorting by `name`. Defaults to "createdAt". Accepted values: `name`, `createdAt`, `updatedAt`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "asc". Accepted values: `asc`, `desc`. |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `0`. |

API request and response schemas: [listTables](/api-reference/tables/listTables).

### sim tables move \[#sim-tables-move]

Move tables and folders

```bash
sim tables move [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--table-ids <json\|@file>` | No | Tables to move, by identifier. Defaults to \[]. (JSON, or @path / @- to read a file or stdin). |
| `--folder <value...>` | No | Table folders to move, by path as shown in the app; the leading / is optional (space-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
| `--to <value>` | No | Destination folder path; omit for root. |

API request and response schemas: [moveTables](/api-reference/tables/moveTables).

### sim tables restore \[#sim-tables-restore]

Restore an archived table

```bash
sim tables restore <tableId>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `tableId` | Yes | Unique identifier of the archived table. A restore takes the id alone: archived tables need not have unique names. |

API request and response schemas: [restoreTable](/api-reference/tables/restoreTable).

### sim tables update \[#sim-tables-update]

Update table

```bash
sim tables update <tableId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `tableId` | Yes | Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id). |

**Options**

| Option | Required | Description |
| - | - | - |
| `--name <value>` | No | Identifier: letters, numbers, and underscores; cannot start with a number. |
| `--description <value>` | No | Replacement table description, or null to clear it. (--description null sends the word, not JSON null). |
| `--folder <value>` | No | Folder path as shown in the app; the leading / is optional. |

API request and response schemas: [updateTable](/api-reference/tables/updateTable).

### sim tables mv \[#sim-tables-mv]

Move a table to a folder

```bash
sim tables mv <tableId> <folder>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `tableId` | Yes | Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id). |
| `folder` | Yes | Folder path as shown in the app; the leading / is optional |

API request and response schemas: [updateTable](/api-reference/tables/updateTable).

### sim tables upsert \[#sim-tables-upsert]

Insert a row, or replace the one matching a unique column

```bash
sim tables upsert <tableId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `tableId` | Yes | Unique table identifier. With a workspace named, the name of one of its active tables also works (a reference starting `tbl_` is always read as an id). |

**Options**

| Option | Required | Description |
| - | - | - |
| `--data <json\|@file>` | Yes | Complete set of row cells keyed by column name. On the update branch this REPLACES the matched row: any column not present here is cleared, unlike a single-row update, which merges. (JSON, or @path / @- to read a file or stdin). |
| `--on <value>` | No | Unique column to resolve the conflict against. |

API request and response schemas: [upsertTableRow](/api-reference/tables/upsertTableRow).

### sim tables import \[#sim-tables-import]

Import a CSV, into a new table by default

Choose exactly one source: a local CSV path or `--file-id`. For a new table imported with `--file-id`, supply `--name`. With `--table-id`, omit the new-table `--name` and `--folder` flags; `--mode`, `--mapping`, and `--create-columns` apply only to an existing table.

**Replace mode deletes all existing rows before loading the CSV and cannot be undone.** It requires `--yes`; cancellation leaves only the rows already imported.

The command watches the import by default. `--no-wait` returns a queued receipt. A completed import can still report `rowsRejected`, `cellsRejected`, and `rejectedSamples`; inspect them before accepting the result.

```bash
sim tables import [path] [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `path` | No | Local CSV file to import; choose exactly one source: this path or --file-id |

**Options**

| Option | Required | Description |
| - | - | - |
| `--name <name>` | Conditional | Name for a new table: letters, numbers, and underscores. A local CSV defaults to its sanitized filename; required with --file-id unless --table-id names an existing table. |
| `--table-id <id>` | No | Import into this existing table instead of creating one. |
| `--mode <append\|replace>` | No | How to write into --table-id (default: append). Accepted values: `append`, `replace`. |
| `--folder <path>` | No | Folder path for the new table, as shown in the app. |
| `--file-id <id>` | No | Import a file already in the workspace instead of a local path. |
| `--mapping <json\|@file>` | No | Column mapping (--table-id only). |
| `--create-columns <json\|@file>` | No | Columns to create (--table-id only). |
| `--timezone <iana>` | No | Timezone for date parsing, e.g. America/New_York. |
| `-y, --yes` | Conditional | Confirm this destructive operation (required with --mode replace). |
| `--no-wait` | No | Return once the import is queued instead of watching it. |

API request and response schemas: [createTableImport](/api-reference/tables/createTableImport), [createTableImportPartUrls](/api-reference/tables/createTableImportPartUrls), [completeTableImport](/api-reference/tables/completeTableImportUpload), [cancelTableImport](/api-reference/tables/cancelTableImport), [getTableImport](/api-reference/tables/getTableImport).

### sim tables ls \[#sim-tables-ls]

List table resources and child folders together

```bash
sim tables ls [path] [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `path` | No | Folder path to list; defaults to the root folder |

**Options**

| Option | Required | Description |
| - | - | - |
| `--search <text>` | No | Filter folders and resources by name. |
| `--limit <n>` | No | Maximum combined items to return (0 for everything). Defaults to `0`. |

API request and response schemas: [listTables](/api-reference/tables/listTables), [listTableFolders](/api-reference/tables/listTablesFolders).

### sim tables mkdir \[#sim-tables-mkdir]

Create a table directory at a path

```bash
sim tables mkdir <path>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `path` | Yes | Folder path to create; the leading / is optional |

API request and response schemas: [createTableFolder](/api-reference/tables/createTablesFolder).

## sim tools \[#sim-tools]

Find built-in tools, inspect their parameters, and run them.

Inspect a tool with `sim tools get <toolId>` before passing its parameters to `sim tools execute`.

### sim tools execute \[#sim-tools-execute]

Run one built-in tool and print what it produced (OAuth login or personal API key required)

```bash
sim tools execute <toolId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `toolId` | Yes | Tool identifier. An exact visible ID is retained; an unversioned name resolves to the newest visible family version. The response echoes the resolved ID. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--input <json\|@file>` | No | Tool arguments as JSON, keyed by the parameter ids `sim tools get <toolId>` lists. Defaults to {}. (JSON, or @path / @- to read a file or stdin). |
| `--credential-id <value>` | No | Credential to authenticate with, required for OAuth tools. |
| `--timeout <value>` | No | Seconds to wait before abandoning the call. |

API request and response schemas: [executeTool](/api-reference/catalog/executeTool).

### sim tools get \[#sim-tools-get]

Get tool

```bash
sim tools get <toolId>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `toolId` | Yes | Tool identifier. An exact visible ID is retained; an unversioned name resolves to the newest visible family version. The response echoes the resolved ID. |

API request and response schemas: [getTool](/api-reference/catalog/getTool).

### sim tools list \[#sim-tools-list]

List tools

```bash
sim tools list [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--search <value>` | No | Case-insensitive substring match against the tool id, name, and description. |
| `--hosted-api-key <value>` | No | Restrict to tools by how their API key is supplied. Accepted values: `always`, `conditional`, `none`. |
| `--oauth-provider <value>` | No | Restrict to tools that authenticate against this OAuth service. |
| `--sort-by <value>` | No | Field used to sort the result. Do not rely on case-insensitive ordering when sorting by `name`. Defaults to "id". Accepted values: `id`, `name`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "asc". Accepted values: `asc`, `desc`. |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `0`. |

API request and response schemas: [listTools](/api-reference/catalog/listTools).

## sim workflow-mcp-servers \[#sim-workflow-mcp-servers]

Serve deployed workflows as tools for Model Context Protocol (MCP) clients.

These servers expose Sim workflows. To connect a server that provides external tools, use [MCP servers](/cli/mcp-servers).

### sim workflow-mcp-servers create \[#sim-workflow-mcp-servers-create]

Create workflow MCP server (OAuth login or personal API key required)

```bash
sim workflow-mcp-servers create [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--name <value>` | Yes | Server display name, shown to connecting MCP clients. |
| `--description <value>` | No | Optional server description. |
| `--is-public` | No | Whether the server accepts MCP clients without a Sim API key. Defaults to false; a public server lets anyone holding its URL execute the workflows it exposes. |
| `--no-is-public` | No | Send --is-public as false. |
| `--workflow <value...>` | No | Deployed workflows to expose as MCP tools on the new server. (space- or comma-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |

API request and response schemas: [createWorkflowMcpServer](/api-reference/mcp-servers/createWorkflowMcpServer).

### sim workflow-mcp-servers delete \[#sim-workflow-mcp-servers-delete]

Delete workflow MCP server (OAuth login or personal API key required)

This deletes the MCP server, and any agent calling its tools loses access.

```bash
sim workflow-mcp-servers delete <serverId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `serverId` | Yes | Unique workflow-MCP server identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [deleteWorkflowMcpServer](/api-reference/mcp-servers/deleteWorkflowMcpServer).

### sim workflow-mcp-servers tools create \[#sim-workflow-mcp-servers-tools-create]

Deploy workflow as MCP tool (OAuth login or personal API key required)

```bash
sim workflow-mcp-servers tools create <serverId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `serverId` | Yes | Unique workflow-MCP server identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--workflow-id <value>` | Yes | Workflow to expose as an MCP tool. It must already be deployed. |
| `--tool-name <value>` | No | Name MCP clients call. Normalized to the MCP tool-name grammar, and derived from the workflow name when omitted. |
| `--tool-description <value>` | No | Description shown to MCP clients. Derived from the workflow name when omitted. |
| `--parameter-descriptions <json\|@file>` | No | Per-field description overrides applied to the schema generated from the deployed workflow inputs, as \[{"name":"email","description":"Customer email address"}]. A name matching no input field is ignored (JSON, or @path / @- to read a file or stdin). |

API request and response schemas: [deployWorkflowMcpTool](/api-reference/mcp-servers/deployWorkflowMcpTool).

### sim workflow-mcp-servers tools list \[#sim-workflow-mcp-servers-tools-list]

List workflow MCP tools (OAuth login or personal API key required)

```bash
sim workflow-mcp-servers tools list <serverId>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `serverId` | Yes | Unique workflow-MCP server identifier. |

API request and response schemas: [listWorkflowMcpTools](/api-reference/mcp-servers/listWorkflowMcpTools).

### sim workflow-mcp-servers tools delete \[#sim-workflow-mcp-servers-tools-delete]

Undeploy workflow MCP tool (OAuth login or personal API key required)

This withdraws the tool, and any agent calling it loses access.

```bash
sim workflow-mcp-servers tools delete <serverId> <workflowId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `serverId` | Yes | Unique workflow-MCP server identifier. |
| `workflowId` | Yes | Workflow registered as an MCP tool on this server. |

**Options**

| Option | Required | Description |
| - | - | - |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [undeployWorkflowMcpTool](/api-reference/mcp-servers/undeployWorkflowMcpTool).

### sim workflow-mcp-servers get \[#sim-workflow-mcp-servers-get]

Get workflow MCP server (OAuth login or personal API key required)

```bash
sim workflow-mcp-servers get <serverId>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `serverId` | Yes | Unique workflow-MCP server identifier. |

API request and response schemas: [getWorkflowMcpServer](/api-reference/mcp-servers/getWorkflowMcpServer).

### sim workflow-mcp-servers list \[#sim-workflow-mcp-servers-list]

List workflow MCP servers (OAuth login or personal API key required)

```bash
sim workflow-mcp-servers list [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--sort-by <value>` | No | Field used to sort the result. Do not rely on case-insensitive ordering when sorting by `name`. Defaults to "createdAt". Accepted values: `name`, `createdAt`, `updatedAt`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "desc". Accepted values: `asc`, `desc`. |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `0`. |

API request and response schemas: [listWorkflowMcpServers](/api-reference/mcp-servers/listWorkflowMcpServers).

### sim workflow-mcp-servers update \[#sim-workflow-mcp-servers-update]

Update workflow MCP server (OAuth login or personal API key required)

```bash
sim workflow-mcp-servers update <serverId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `serverId` | Yes | Unique workflow-MCP server identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--name <value>` | No | Server display name, shown to connecting MCP clients. |
| `--description <value>` | No | New server description, or null to clear it. (--description null sends the word, not JSON null). |
| `--is-public` | No | Whether the server answers MCP clients without a Sim API key. |
| `--no-is-public` | No | Send --is-public as false. |

API request and response schemas: [updateWorkflowMcpServer](/api-reference/mcp-servers/updateWorkflowMcpServer).

## sim workflows \[#sim-workflows]

Build, deploy, run, and inspect workflows from the terminal.

Also spelled `sim workflow`.

### sim workflows activate create \[#sim-workflows-activate-create]

Activate workflow version (OAuth login or personal API key required)

This changes which deployed version runs in production for every API and chat consumer.

```bash
sim workflows activate create <workflowId> <version> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `workflowId` | Yes | Unique workflow identifier. |
| `version` | Yes | Numeric deployment version. |

**Options**

| Option | Required | Description |
| - | - | - |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [activateWorkflowVersion](/api-reference/workflows/activateWorkflowVersion).

### sim workflows operations apply \[#sim-workflows-operations-apply]

Edit a workflow’s blocks, connections and settings with a batch of operations (OAuth login or personal API key required)

This edits the draft graph: the batch adds, edits, or deletes blocks and their edges as written.

```bash
sim workflows operations apply <workflowId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `workflowId` | Yes | Unique workflow identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--dry` | No | Validate and lint without writing, auditing, or notifying collaborators. Returns the same validation, preparation warnings, lint findings, and ID-ownership conflicts (`409`) as a committed write. `needsRedeployment` describes the pre-write state. For semantic operations, `mintedBlockIds` is empty; `previewBlockIds` contains provisional IDs with a warning, since committing mints new IDs. |
| `--no-dry` | No | Send --dry as false. |
| `--operations <json\|@file>` | Yes | Edits to apply, in a single batch, keyed by operation_type: \[{"operation_type":"add","block_id":"my-fn","params":{"type":"function","name":"My Fn","inputs":{"code":"return {ok:true}"}}},{"operation_type":"edit","block_id":"\<uuid>","params":{"name":"Renamed","connections":{"source":"my-fn"}}},{"operation_type":"delete","block_id":"\<uuid>"}]. Also extract_from_subflow, whose params carry {"subflowId":"\<loop-id>"}, and insert_into_subflow, which creates a block and so takes an add’s params plus that subflowId. To move an existing block into a loop or parallel (keeping its id), edit it with params {"parentId":"\<loop-id>"}; {"parentId":null} moves it out (JSON, or @path / @- to read a file or stdin). |
| `--atomic` | No | Fail the whole batch when any operation is declined or any block input would be dropped. The default applies what it can and reports the rest in `skipped` and `inputValidationErrors`; `true` writes nothing and answers `409` instead. |
| `--no-atomic` | No | Send --atomic as false. |
| `--layout <value>` | No | Whether to reposition blocks the batch touched. `targeted` (default) nudges only the affected subgraph; `none` leaves every position exactly as supplied. Accepted values: `targeted`, `none`. |
| `--set-block-enabled <json\|@file>` | No | Blocks to enable or disable, applied after --operations: \[{"block_id":"\<uuid>","enabled":false}]. Disabling a loop or parallel cascades to its unlocked descendants; enabling a block whose container is disabled is declined (JSON, or @path / @- to read a file or stdin). |
| `-y, --yes` | Conditional | Confirm this operation (required unless --dry). |

```text
Edges:
  connections maps a source handle to its targets: {"source":"<id>"}, {"source":["<a>","<b>"]},
  or {"source":{"block":"<id>","handle":"<target handle>"}}; "success" is an alias of "source".
  An add's connections create the new block's edges. An edit's connections REPLACE every
  outgoing edge of that block, on every handle: list again each edge to keep; {} removes them all.
  Moving a block into or out of a loop or parallel (parentId) removes each of its existing edges
  that would cross the container's boundary, atomic or not, and names them in warnings. Edges the
  batch itself asks for across a boundary are refused. Wire into the body from loop-start-source
  and onward from loop-end-source (parallel-start-source, parallel-end-source).
  To remove one edge, edit its source block with
  {"removeEdges":[{"targetBlockId":"<id>","sourceHandle":"source"}]} (sourceHandle defaults to
  "source").
Source handles:
  source               the normal path
  error                a failure (a block that has an error output)
  if, else-if-0, else  a condition's branches, in order (else-if-1, … for more)
  route-0, route-1, …  a router's routes, in order
  loop-start-source    a loop into its body; loop-end-source after the loop
  parallel-start-source, parallel-end-source  the same for a parallel
Renames:
  An edit's {"name":"New name"} also rewrites every <old key.field> reference to the block, in
  other blocks' inputs and in a loop's or parallel's collection and condition. Edits run after the
  batch's adds, so a block added in the same batch is rewritten too.
Inputs:
  inputs takes the field ids `sim blocks get <type>` lists (inputSchema, operationInputSchema),
  or the name a pair of them shares (inputDefinitions: tableId for tableSelector and
  manualTableId; a string goes to the typed field). Add the type it answers with: `blocks get
  table` answers table_v2, and an add of legacy table is refused. An edit's inputs replace each
  field they name whole (a responseFormat schema too) and keep the fields they do not name.
  conditions (condition): [{"title":"if","value":"<start.n> > 3"},{"title":"else if","value":"…"},
  {"title":"else","value":""}]; the last entry is the else. Each entry's id comes from its
  position (<block id>-if, <block id>-else-if-0, …, <block id>-else): an id you pass is replaced.
  inputFormat (Start): [{"name":"email","type":"string"}]; types string, number, boolean,
  object, array, file[]; an optional default "value" as text.
Block settings, beside inputs in an add's or edit's params:
  "retry":{"enabled":true,"maxTries":3,"waitBetweenTriesMs":1000} retries a failed block; null
  clears it. An api block's retries input repeats the request after a timeout, reset, 429 or
  5xx, not when the host does not resolve or refuses the connection; "retry" covers that. They
  nest: every try of "retry" runs the request with its retries.
Outputs:
  A block that fails outputs {"error":"<message>"}: connect its error handle and read
  <name.error> there (without one, the run fails). A Function's error leads with the line and
  code that threw; its <name.errorMessage> is the thrown message alone, the one to reply with.
  A Workflow block's result is the child's
  output; a child ending in a Response block gives {data, status, headers}, so read
  <call.result.data.x>. A Table block's row holds its cells under data: read a cell as
  <name.row.data.column> (<name.rows[0].data.column>).
References:
  Inside a loop or parallel body read <loop.currentItem> and <loop.index>, or
  <parallel.currentItem> and <parallel.index>; after it, <name.results>. A reference to a block
  that did not run (a branch not taken) is null as a whole value, in a condition or in a
  Function's code, and '' inside text.
Order:
  Operations run in phases whatever their order in the batch: deletes first, then
  extract_from_subflow, adds, insert_into_subflow and edits; operations of one type keep the
  order given, except insert_into_subflow, which runs a parent before its children. A delete plus an add with the same name therefore replaces the block in one batch.
Run logs:
  `sim logs list --workflow <workflowId>` lists a workflow's runs; `sim logs get <runId> --trace
  --no-include-workflow-state` shows each block's resolved inputs, outputs and errors.
```

API request and response schemas: [applyWorkflowOperations](/api-reference/workflows/applyWorkflowOperations).

### sim workflows variables update \[#sim-workflows-variables-update]

Update workflow variables

This applies the listed variable changes; variables omitted from the operations remain unchanged.

```bash
sim workflows variables update <workflowId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `workflowId` | Yes | Unique workflow identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--operations <json\|@file>` | Yes | Variable changes to apply in order, keyed by operation: \[{"operation":"add","name":"my_var","type":"string","value":"hello"},{"operation":"edit","name":"my_var","value":"updated"},{"operation":"delete","name":"my_var"}] (JSON, or @path / @- to read a file or stdin). |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [applyWorkflowVariables](/api-reference/workflows/applyWorkflowVariables).

### sim workflows runs cancel \[#sim-workflows-runs-cancel]

Cancel a running workflow run

Canceling a paused run prevents resuming that run. Starting a new run can repeat side effects already performed.

```bash
sim workflows runs cancel <runId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `runId` | Yes | Unique workflow run identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--workflow <workflowId>` | Yes | Workflow ID. |

API request and response schemas: [cancelWorkflowRun](/api-reference/workflow-runs/cancelRunV2).

### sim workflows runs get \[#sim-workflows-runs-get]

Show run status (requested outputs are included in JSON or YAML output)

```bash
sim workflows runs get <runId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `runId` | Yes | Unique workflow run identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--workflow <workflowId>` | Yes | Workflow ID. |
| `--include-output` | No | Include the final output in JSON or YAML output. |
| `--select-output <value...>` | No | Include blockName.path or blockId.path values (e.g. agent_1.content) in JSON or YAML output; names resolve against the workflow’s current blocks, and missing paths are omitted (space-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
| `--include-file-base64` | No | Inline each produced file's bytes as base64. Requires `includeOutput`. A file above the inline ceiling answers `413` naming its download path; fetch large files from `downloadPath` instead. |
| `--no-include-file-base64` | No | Send --include-file-base64 as false. |
| `--base64-max-bytes <value>` | No | Per-file inline ceiling, lowering but never raising the server limit of 16 MiB. |

API request and response schemas: [getWorkflowRun](/api-reference/workflow-runs/getWorkflowRunV2).

### sim workflows runs paused \[#sim-workflows-runs-paused]

List runs waiting on human input across the workspace

```bash
sim workflows runs paused [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--include-output` | No | Include each pause point's reviewer `display` content when true. |
| `--no-include-output` | No | Send --include-output as false. |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `100`. |
| `--cursor <value>` | No | Continue from nextCursor returned by a previous result. |
| `--sort-by <value>` | No | Field used to sort the result. Defaults to "pausedAt". Accepted values: `pausedAt`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "desc". Accepted values: `asc`, `desc`. |

API request and response schemas: [listPausedRuns](/api-reference/workflow-runs/listPausedWorkflowRunsV2).

### sim workflows runs list \[#sim-workflows-runs-list]

List runs for a workflow

```bash
sim workflows runs list [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--workflow <workflowId>` | Yes | Workflow ID. |
| `--status <value>` | No | Filter by run status. Accepted values: `pending`, `running`, `completed`, `failed`, `cancelled`, `paused`. |
| `--trigger <value>` | No | Filter by trigger type. |
| `--start-date <value>` | No | Only include runs started at or after this UTC ISO 8601 timestamp, e.g. `2026-08-06T00:00:00Z`. A date without a time, or a timestamp carrying a UTC offset instead of `Z`, is rejected, as is year `0000`, which names no storable instant. |
| `--end-date <value>` | No | Only include runs started at or before this UTC ISO 8601 timestamp, e.g. `2026-08-06T00:00:00Z`. A date without a time, or a timestamp carrying a UTC offset instead of `Z`, is rejected, as is year `0000`, which names no storable instant. |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `100`. |
| `--cursor <value>` | No | Continue from nextCursor returned by a previous result. |
| `--order <value>` | No | Sort direction by run start time. This list is sortable only by run start time, so it takes `order` in place of `sortBy`/`sortOrder`, which it rejects. Defaults to "desc". Accepted values: `asc`, `desc`. |

API request and response schemas: [listWorkflowRuns](/api-reference/workflow-runs/listWorkflowRunsV2).

### sim workflows runs resume \[#sim-workflows-runs-resume]

Resume a paused run (output is included in JSON or YAML output)

```bash
sim workflows runs resume <runId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `runId` | Yes | Unique workflow run identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--workflow <workflowId>` | Yes | Workflow ID. |
| `--context <value>` | Yes | Pause context ID returned by run status. |
| `--input <json\|@file>` | No | Resume input as JSON (JSON, or @path / @- to read a file or stdin). |

API request and response schemas: [resumeWorkflow](/api-reference/workflow-runs/resumeWorkflowRunV2).

### sim workflows runs wait \[#sim-workflows-runs-wait]

Wait until a run finishes or needs input

```bash
sim workflows runs wait <runId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `runId` | Yes | Unique workflow run identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--workflow <workflowId>` | Yes | Workflow ID. |
| `--wait-timeout <seconds>` | No | Give up after this many seconds, or 0 to wait indefinitely (default: 3600). Bounds the whole wait; SIM_TIMEOUT_SECONDS bounds one request. |

Exit codes: 0 completed, 1 failed, 2 cancelled, 3 needs input, 4 timed out. Time-based pauses continue waiting; a human pause or an unspecified pause kind ends the wait with code 3. Use `sim workflows runs resume` with the pause context to continue.

API request and response schemas: [getWorkflowRun](/api-reference/workflow-runs/getWorkflowRunV2).

### sim workflows versions compare \[#sim-workflows-versions-compare]

Compare workflow versions

```bash
sim workflows versions compare <workflowId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `workflowId` | Yes | Unique workflow identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--base <value>` | Yes | Deployment version to compare from. |
| `--target <value>` | Yes | Deployment version to compare to, in the same workflow. |

API request and response schemas: [compareWorkflowVersions](/api-reference/workflows/compareWorkflowVersionsV2).

### sim workflows versions get \[#sim-workflows-versions-get]

Get workflow version

```bash
sim workflows versions get <workflowId> <version>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `workflowId` | Yes | Unique workflow identifier. |
| `version` | Yes | Numeric deployment version. |

API request and response schemas: [getWorkflowVersion](/api-reference/workflows/getWorkflowVersionV2).

### sim workflows versions list \[#sim-workflows-versions-list]

List workflow versions

```bash
sim workflows versions list <workflowId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `workflowId` | Yes | Unique workflow identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `100`. |
| `--cursor <value>` | No | Continue from nextCursor returned by a previous result. |

API request and response schemas: [listWorkflowVersions](/api-reference/workflows/listWorkflowVersionsV2).

### sim workflows versions update \[#sim-workflows-versions-update]

Update workflow version

```bash
sim workflows versions update <workflowId> <version> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `workflowId` | Yes | Unique workflow identifier. |
| `version` | Yes | Numeric deployment version. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--name <value>` | No | New label for the deployment version. |
| `--description <value>` | No | New release note for the deployment version, or null to clear it. (--description null sends the word, not JSON null). |

API request and response schemas: [updateWorkflowVersion](/api-reference/workflows/updateWorkflowVersionV2).

### sim workflows create \[#sim-workflows-create]

Create workflow

```bash
sim workflows create [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--name <value>` | Yes | Workflow name. |
| `--description <value>` | No | Optional workflow description. |
| `--folder <value>` | No | Existing folder path (leading / optional); create it first with sim workflows mkdir \<path>. |

The new workflow's draft holds one Start block (start_trigger, named Start): connect the blocks you add from it.

API request and response schemas: [createWorkflow](/api-reference/workflows/createWorkflowV2).

### sim workflows folders create \[#sim-workflows-folders-create]

Create a workflow folder at a path

```bash
sim workflows folders create <path>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `path` | Yes | Folder path as shown in the app; the leading / is optional |

API request and response schemas: [createWorkflowFolder](/api-reference/workflows/createWorkflowsFolder).

### sim workflows folders delete \[#sim-workflows-folders-delete]

Delete workflow folder

This archives the workflow folder and, when recursive, everything inside it.

```bash
sim workflows folders delete <path> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `path` | Yes | Folder path as shown in the app; the leading / is optional |

**Options**

| Option | Required | Description |
| - | - | - |
| `--recursive` | No | Archive the folder and its descendants. Defaults to "false". |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [deleteWorkflowFolder](/api-reference/workflows/deleteWorkflowsFolder).

### sim workflows folders list \[#sim-workflows-folders-list]

List workflow folders

```bash
sim workflows folders list [options]
```

Also available as `sim workflows folders ls`.

**Options**

| Option | Required | Description |
| - | - | - |
| `--parent <value>` | No | Direct parent folder path. |
| `--search <value>` | No | Case-insensitive substring match against the folder name. |
| `--sort-by <value>` | No | Field used to sort the result. Do not rely on case-insensitive ordering when sorting by `name`. Defaults to "name". Accepted values: `name`, `createdAt`, `updatedAt`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "asc". Accepted values: `asc`, `desc`. |

API request and response schemas: [listWorkflowFolders](/api-reference/workflows/listWorkflowsFolders).

### sim workflows folders move \[#sim-workflows-folders-move]

Rename or move a workflow folder

```bash
sim workflows folders move <path> <destination>
```

Also available as `sim workflows folders mv`.

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `path` | Yes | Folder path as shown in the app; the leading / is optional |
| `destination` | Yes | Folder path as shown in the app; the leading / is optional |

API request and response schemas: [relocateWorkflowFolder](/api-reference/workflows/relocateWorkflowsFolder).

### sim workflows delete \[#sim-workflows-delete]

Delete workflow

This archives the workflow and its run history; restore with `workflows restore`.

```bash
sim workflows delete <workflowId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `workflowId` | Yes | Unique workflow identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [deleteWorkflow](/api-reference/workflows/deleteWorkflowV2).

### sim workflows chat unpublish \[#sim-workflows-chat-unpublish]

Take a workflow’s chat deployment offline (OAuth login or personal API key required)

This takes the chat offline and frees its identifier. The workflow itself stays deployed and executable.

```bash
sim workflows chat unpublish <workflowId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `workflowId` | Yes | Unique workflow identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [deleteWorkflowChatDeployment](/api-reference/workflows/deleteWorkflowChatDeployment).

### sim workflows chat status \[#sim-workflows-chat-status]

Show a workflow’s chat deployment (OAuth login or personal API key required)

```bash
sim workflows chat status <workflowId>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `workflowId` | Yes | Unique workflow identifier. |

API request and response schemas: [getWorkflowChatDeployment](/api-reference/workflows/getWorkflowChatDeployment).

### sim workflows chat publish \[#sim-workflows-chat-publish]

Deploy or replace a workflow chat (OAuth login or personal API key required)

This replaces visitor access settings for the chat deployment. Omitted authentication fields reset to defaults, including the password and allowed-email list; avatar and welcome-message behavior follows their option descriptions.

Omitting `--auth-type` selects public access: anyone holding the URL can chat. Supply the complete password or allow-list settings again when replacing a restricted deployment.

```bash
sim workflows chat publish <workflowId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `workflowId` | Yes | Unique workflow identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--identifier <value>` | Yes | URL slug the deployed chat answers on. Must be free across live deployments. |
| `--title <value>` | Yes | Title shown to visitors. |
| `--description <value>` | No | Description shown to visitors. Omitted clears it. |
| `--customizations <json\|@file>` | No | Presentation overrides. Omitted `primaryColor` and `welcomeMessage` use platform defaults; an omitted or empty `imageUrl` keeps the existing avatar. An empty `welcomeMessage` keeps the existing message. (JSON, or @path / @- to read a file or stdin). |
| `--auth-type <value>` | No | How visitors are gated. `public` leaves the chat open to anyone holding the URL. Defaults to "public". Accepted values: `public`, `password`, `email`, `sso`. |
| `--password <value>` | Conditional | Write-only password of 15 to 1024 characters, not only whitespace. Required whenever `authType` is `password`, and rejected otherwise. Never readable back. Taken literally, except that a request from the Sim agent resolves a whole-value `{{ENV_VAR}}` reference to that variable before the rules apply. |
| `--allowed-emails <json\|@file>` | No | Email addresses or domains admitted under `email` and `sso` gating. At least one is required for those modes. (JSON, or @path / @- to read a file or stdin). |
| `--output-configs <json\|@file>` | No | Block outputs to surface to visitors. Omitted surfaces none. (JSON, or @path / @- to read a file or stdin). |
| `--include-thinking` | No | Allow visitors to receive provider thinking events. Defaults to false. |
| `--no-include-thinking` | No | Send --include-thinking as false. |
| `--include-tool-calls` | No | Allow visitors to receive tool lifecycle events. Defaults to false. |
| `--no-include-tool-calls` | No | Send --include-tool-calls as false. |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [replaceWorkflowChatDeployment](/api-reference/workflows/replaceWorkflowChatDeployment).

### sim workflows deploy \[#sim-workflows-deploy]

Deploy workflow (OAuth login or personal API key required)

```bash
sim workflows deploy <workflowId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `workflowId` | Yes | Unique workflow identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--name <value>` | No | Optional label for the deployment version. |
| `--description <value>` | No | Optional release note for the deployment version. |
| `--expected-draft-fingerprint <value>` | No | Deploy only this draft: the `sf1:` fingerprint a source apply answered with (`base.fingerprint`). When the draft changed since, the deploy answers `409` and publishes nothing. |
| `-y, --yes` | No | Accepted and ignored: this command needs no confirmation. |

API request and response schemas: [deployWorkflow](/api-reference/workflows/deployWorkflow).

### sim workflows duplicate create \[#sim-workflows-duplicate-create]

Duplicate workflow

```bash
sim workflows duplicate create <workflowId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `workflowId` | Yes | Unique workflow identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--name <value>` | No | Name for the copy. Defaults to the source name, deduplicated within the folder. |
| `--folder <value>` | No | Folder path as shown in the app; the leading / is optional. |

API request and response schemas: [duplicateWorkflow](/api-reference/workflows/duplicateWorkflow).

### sim workflows run \[#sim-workflows-run]

Run a deployed workflow, or its saved draft

```bash
sim workflows run <workflowId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `workflowId` | Yes | Unique workflow identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--input <json\|@file>` | No | Trigger input as JSON (JSON, or @path / @- to read a file or stdin). |
| `--async` | No | Queue the run and return immediately. Defaults to false. |
| `--execution-timeout-seconds <value>` | No | Maximum duration of the run in seconds, capped by the plan's execution timeout. Requires --async or --wait-timeout. |
| `--select-output <value...>` | No | Return blockName.path values (e.g. agent_1.content), or childWorkflowId.blockName.path for a child workflow (applies to every invocation) — in blockOutputs on a sync run, or from the streamed result with --follow; missing paths are omitted. Not available with --async (space-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
| `--include-file-base64` | No | Inline eligible output files as base64 content. Defaults to true for the installed CLI; Chat defaults to file references and admits requested bytes only for synchronous runs. Rejected when async is true. |
| `--no-include-file-base64` | No | Send --include-file-base64 as false. |
| `--base64-max-bytes <value>` | No | Maximum total bytes of file content to inline as base64, lowering but never raising the server limit of 16 MiB. Rejected when `async` is true. |
| `--run-id <value>` | No | One-shot identifier for this run; NOT an idempotency key — reusing a claimed value fails with RUN_ID_CONFLICT instead of replaying the first result, and a fresh value starts another run. |
| `--draft` | No | Run the saved draft instead of the active deployment, sending its writes. |
| `--deployment-version <n>` | No | Run this deployed version instead of the active one (a version number from `sim workflows versions list`); a Workflow block in it still runs its child workflow's active deployment. Needs workspace write access, through a full-access API key or an OAuth token with api:write. Not with --draft or any flag that runs the draft. |
| `--dry` | No | Dry run of the saved draft (implies --draft): writes are not sent but answered with placeholders and listed with their request payloads in sideEffects; reads, model calls and code run for real. Logged as a test run. Not with --follow, --async or --wait-timeout. |
| `--allow <block>` | No | Send this block's writes for real during a dry run (its id, display name or key, or \<workflow>.\<block> for a workflow it calls); for an Agent, only its own tool calls, not a workflow or custom block it calls; repeatable. |
| `--mock <block>=<json\|@file>` | No | Answer this block with the given JSON object instead of running it during a dry run (its id, display name or key, or \<workflow>.\<block> for a workflow it calls), to steer a branch or give a stubbed write a realistic result; a bare --mock \<block> takes its output from --mock-from. Not a locked block, or one of a locked workflow or folder; data only (the API reference lists the fields a mock cannot set). The run records only which blocks were mocked, not the outputs, so a rerun reads them again with --mock-from; repeatable. |
| `--mock-from <runId>` | No | Answer each block a bare --mock \<block> names with the output it recorded in this earlier run of the workflow, redacted as the run shows it: this workflow's blocks (not a child's; not inside a loop or parallel unless that run mocked it); fields a mock cannot set, such as cost or model, are left out. |
| `--trigger <blockId>` | No | Enter the run through this runnable trigger, by its block id; runs the saved draft (implies --draft). |
| `--sample` | No | Run with the selected trigger's sample payload instead of --input; runs the saved draft (implies --draft), whose writes are sent unless --dry. |
| `--from-block <block>` | No | Rerun the saved draft from this block (its id, display name or key), reusing the outputs --source-run produced before it; a failed run prints this command as next. |
| `--source-run <runId>` | No | Earlier run of this workflow, deployed or draft, whose outputs the blocks before --from-block keep (requires --from-block). |
| `--stop-after <block>` | No | Stop the run after this saved block (its id, display name or key), failing it if the run takes a path that skips the block; with --from-block on the same block, re-runs only that block (implies --draft). Unless --select-output names others, blockOutputs holds the output of that block under its key (or id); output stays empty. |
| `--dir <dir>` | No | This workflow's source directory: a failed run names the source file and line of the block that failed, read through its .sim/lock.json. Not with --async or --follow, and not for a run --wait-timeout leaves running. |
| `--wait-timeout <seconds>` | No | Wait at most this many seconds for a synchronous run (0 waits until it settles). A run still going then continues in the background under async limits: the command prints its run record and exits 4, and `sim workflows runs wait` keeps waiting. Not with --async or --follow. |
| `--follow` | No | Stream the run as it happens; progress on stderr, result on stdout. The stream reports only success and output, so the result omits the run id and timings a non-streaming run returns. |
| `--include-thinking` | No | Show model reasoning while following (requires --follow). |
| `--include-tool-calls` | No | Show tool calls while following (requires --follow). |

Without --draft (or a flag that implies it) this runs the active deployment; a workflow never deployed has none. --deployment-version \<n> runs that deployed version instead (it needs workspace write access, through a full-access API key or an OAuth token with api:write); the child workflows it calls still run their own active deployment. --draft runs the saved draft, as the source loop leaves it, sending its writes.

\--dry runs the saved draft without its writes: each call that could change something (a write tool, any MCP call, an HTTP request other than GET/HEAD/OPTIONS, code's other fetches) gets a placeholder (ids like dry_run_row_1, numbers above 900000000) and is listed in sideEffects.stubbed with the request it would have sent; check those payloads. A read that would send a placeholder is held back too (reason placeholder), and an MCP call its server calls read-only says so (reason mcp-read-only). Reads, model calls and code run for real; code in a remote sandbox (shell, Python, imports) runs for real too, its network requests included, and is listed in sideEffects.unchecked. Child workflows run dry too; custom, Human in the loop and Wait blocks are answered whole, so the run never pauses. --allow \<block> sends that block's writes for real (use a test resource). --mock \<block>=\<json> answers a block with fixed output, to steer a branch; --mock-from \<runId> with a bare --mock \<block> answers it with the output that run recorded. --allow and --mock also name a block of a workflow this one calls as \<workflow>.\<block>. --allow, --mock and --mock-from imply --dry; --draft sends every write, so it refuses them. Overrides the run never reached are listed in sideEffects.unreached, and mock fields a block never gets in sideEffects.mockFields. The API reference describes each list and refusal.

The result is the run: runId, status (completed, failed, paused or cancelled), error, output (the workflow's final output) and blockOutputs (what --select-output named). It has no success field: branch on status, or on the exit code. With --follow it is the stream's final frame instead: success and output.

A run that failed in a block has next: { command, reason }, the command that reruns the saved draft from that block (or the outermost loop or parallel holding it) with this run as --source-run. A dry run's keeps --dry and --allow, and reads its mocks again with --mock-from; a mock it cannot read again (a child's block, one never reached, or one passed beside --mock-from) is left out and named in nextNote, for you to pass again. A run paused for input has next: the runs resume command.

Exit codes: 0 completed or paused (--async: queued); 1 failed or cancelled (the result is printed first, then the error on stderr), or the command failed; 4 still running when --wait-timeout elapsed.

API request and response schemas: [executeWorkflow](/api-reference/workflows/executeWorkflowV2).

### sim workflows export \[#sim-workflows-export]

Print a workflow as a portable JSON document

The export clears credentials, passwords, and table sub-block values, but it is not a general secret scanner. Inspect literal variables and inline configuration before sharing the document.

```bash
sim workflows export <workflowId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `workflowId` | Yes | Unique workflow identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--include-references` | No | Include non-secret resource identities for mapped import. |
| `--include-workspace-bindings` | No | Keep table, knowledge base, document, folder, channel and other workspace bindings. On by default; --no-include-workspace-bindings clears them for a copy to share outside this workspace. Credentials are cleared either way. |
| `--no-include-workspace-bindings` | No | Send --include-workspace-bindings as false. |

A table, child workflow, knowledge base or other workspace binding prints as its id; a credential always prints as null. For a copy to share outside this workspace, pass --no-include-workspace-bindings to clear the bindings too.

API request and response schemas: [exportWorkflow](/api-reference/workflows/exportWorkflow).

### sim workflows source catalog \[#sim-workflows-source-catalog]

Show the block catalog workflow source is checked against

```bash
sim workflows source catalog [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--workflow-id <value>` | No | Return the source catalog for this workflow: the workspace catalog plus every block type already placed in it, the ones the caller could not add marked `addable: false`. |

API request and response schemas: [getSourceCatalog](/api-reference/catalog/getSourceCatalog).

### sim workflows source resources \[#sim-workflows-source-resources]

List the tables, knowledge bases, credentials, workflows, skills, custom tools, MCP servers and env names source can name

```bash
sim workflows source resources
```

API request and response schemas: [getSourceResources](/api-reference/workflows/getSourceResources).

### sim workflows source get \[#sim-workflows-source-get]

Show a workflow’s draft as TypeScript source with its identity lock

```bash
sim workflows source get <workflow> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `workflow` | Yes | Workflow id, or its exact name |

**Options**

| Option | Required | Description |
| - | - | - |
| `--function-code <value>` | No | Where function-block code goes: `files` (default) writes it to `functions/*` files referenced with `codeFile()`; `inline` prints it in tagged templates. Accepted values: `inline`, `files`. |
| `--dir <dir>` | No | Write the source, its lock and SDK type declarations into this directory instead of printing them. |
| `--force` | No | With --dir: replace another workflow's source or edits no apply has saved. |

Exit codes with --dir: 0 written; 1 the command failed, no workflow or several are named exactly the name given (WORKFLOW_NOT_FOUND, WORKFLOW_NAME_AMBIGUOUS: each candidate is listed with its id), the directory is a workspace source directory (SOURCE_DIR_KIND_MISMATCH, even with --force), or it holds another workflow's source (SOURCE_WORKFLOW_MISMATCH) or edits no apply has saved (SOURCE_LOCAL_EDITS: apply them, get into another directory, or pass --force); 7 the workflow is too large to print as source; 9 rate limited (HTTP 429) after the CLI's retries: wait a minute and run it again; 10 (busy, retry) another sim command is using --dir, or the workspace directory it is a workflow folder of (SOURCE_DIR_BUSY): nothing was read or written, run it again once the other finished; 13 not logged in, the login expired, or the server refused the credential (AUTH_REQUIRED): nothing was read or written, run `sim login` and the get again.

API request and response schemas: [getWorkflowSource](/api-reference/workflows/getWorkflowSource).

### sim workflows source apply \[#sim-workflows-source-apply]

Apply a workflow source directory to a workflow draft

```bash
sim workflows source apply [workflowId] [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `workflowId` | No | Refuse unless .sim/base.json names this workflow (default: the workflowId there) |

**Options**

| Option | Required | Description |
| - | - | - |
| `--verbose` | No | Also list the info findings hidden by default: every one with --output json, blocks placed by autolayout in the display. |
| `--summary-file <path>` | No | Also write the plan as Markdown to this file (or set SIM_SUMMARY_FILE), replacing it each run; its first line is a comment that names the directory, for a CI step that updates one pull-request comment. |
| `--dir <dir>` | No | Source directory: workflow\.ts, functions/\*, .sim/lock.json and .sim/base.json. Defaults to `.`. |
| `--dry` | No | Check the source and show the outcome without saving or writing files. |
| `-y, --yes` | No | Apply without asking for confirmation. |
| `--run [input]` | No | After the write is saved, dry-run the draft with this input (JSON or @file, as `sim workflows run --dry --input` takes it): a run that does not complete exits 1 and deploys nothing. Sandboxed code (Python, shell, imports) really runs in it, network requests included, and is listed in sideEffects.unchecked, so --run --deploy in CI sends those. |
| `--deploy` | No | After the write is saved (and a --run completed), deploy the workflow (as `sim workflows deploy <workflowId>` does). |
| `--allow-delete` | No | Delete blocks and variables the source no longer declares; without it, an apply that deletes one is refused. |

Exit codes: 0 applied (or a clean dry run); 1 the source has errors (each printed as file:line:column with its frame and hint), the workflowId given is not the one .sim/base.json names (SOURCE_WORKFLOW_MISMATCH: the directory holds another workflow's source), the --run test run did not complete (the draft is saved; nothing was deployed), or the command failed; 5 the workflow changed since the directory was read (SOURCE_STALE, on a dry run too: get it again, reapply the edit, retry); 6 the workflow or its folder is locked (E_APPLY_LOCKED; a locked block exits 1, E_APPLY_LOCKED_BLOCK); 7 the source is too large; 9 rate limited (HTTP 429) after the CLI's retries, so nothing was written: wait a minute and run it again; 10 (busy, retry) another sim command is using --dir, or the workspace directory it is a workflow folder of (SOURCE_DIR_BUSY): nothing was read or written, run it again once the other finished; 13 not logged in, the login expired, or the server refused the credential (AUTH_REQUIRED): nothing was sent, run `sim login` (or fix or unset SIM_API_KEY when the key comes from it) and the command again; 14 without --yes and with no terminal to ask: the plan was printed with no errors and nothing was written (run the same command with --yes to apply it); 130 interrupted (Ctrl-C): a write already sent is finished and saved into the directory first, waiting up to 60s for its answer, and a second Ctrl-C, or no answer by then, stops at once and prints that it may have been written and how to check.

API request and response schemas: [applyWorkflowSource](/api-reference/workflows/applyWorkflowSource), [deployWorkflow](/api-reference/workflows/deployWorkflow), [getWorkflowDeployment](/api-reference/workflows/getWorkflowDeployment), [getSourceResources](/api-reference/workflows/getSourceResources), [executeWorkflow](/api-reference/workflows/executeWorkflowV2).

### sim workflows source create \[#sim-workflows-source-create]

Create a workflow from a workflow source directory

```bash
sim workflows source create [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--verbose` | No | Also list the info findings hidden by default: every one with --output json, blocks placed by autolayout in the display. |
| `--summary-file <path>` | No | Also write the plan as Markdown to this file (or set SIM_SUMMARY_FILE), replacing it each run; its first line is a comment that names the directory, for a CI step that updates one pull-request comment. |
| `--dir <dir>` | Yes | Source directory: workflow\.ts and functions/\*. Without workflow\.ts, writes a starter and the types instead (an error with --dry or --yes). |
| `--dry` | No | Check the source and show the outcome without creating anything. |
| `--name <name>` | No | The workflow name (default: the source's). |
| `--folder <path>` | No | The folder to create it in (default: the root). |
| `-y, --yes` | No | Create without asking for confirmation. |
| `--run [input]` | No | After the write is saved, dry-run the draft with this input (JSON or @file, as `sim workflows run --dry --input` takes it): a run that does not complete exits 1 and deploys nothing. Sandboxed code (Python, shell, imports) really runs in it, network requests included, and is listed in sideEffects.unchecked, so --run --deploy in CI sends those. |
| `--deploy` | No | After the write is saved (and a --run completed), deploy the workflow (as `sim workflows deploy <workflowId>` does). |

Exit codes: 0 created (or a clean dry run, or a starter written); 1 the source has errors (each printed as file:line:column with its frame and hint), the workflow name is taken (SOURCE_NAME_TAKEN: pass --name), the --run test run did not complete (the workflow is created; nothing was deployed), or the command failed (a starter is created in the workspace its types were written for unless --workspace or SIM_WORKSPACE names another); 6 the folder is locked; 7 the source is too large; 9 rate limited (HTTP 429) after the CLI's retries, so nothing was created: wait a minute and run it again; 10 (busy, retry) another sim command is using --dir, or the workspace directory it is a workflow folder of (SOURCE_DIR_BUSY): nothing was read or written, run it again once the other finished; 13 not logged in, the login expired, or the server refused the credential (AUTH_REQUIRED): nothing was sent, run `sim login` (or fix or unset SIM_API_KEY when the key comes from it) and the command again; 14 without --yes and with no terminal to ask: the plan was printed with no errors and nothing was created (run the same command with --yes); 130 interrupted (Ctrl-C): a write already sent is finished and saved into the directory first, waiting up to 60s for its answer, and a second Ctrl-C, or no answer by then, stops at once and prints that it may have been written and how to check.

API request and response schemas: [createWorkflowFromSource](/api-reference/workflows/createWorkflowFromSource), [getSourceCatalog](/api-reference/catalog/getSourceCatalog), [getSourceResources](/api-reference/workflows/getSourceResources), [deployWorkflow](/api-reference/workflows/deployWorkflow), [getWorkflowDeployment](/api-reference/workflows/getWorkflowDeployment), [executeWorkflow](/api-reference/workflows/executeWorkflowV2).

### sim workflows source check \[#sim-workflows-source-check]

Compile and type-check a workflow source directory locally, without the server

```bash
sim workflows source check [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--dir <dir>` | No | Source directory: workflow\.ts, functions/\* and .sim/. Defaults to `.`. |
| `--strict` | No | Fail on the warnings listed below in every block, not only new ones. |
| `--no-strict` | No | Never fail on a warning an apply saves. |
| `--no-types` | No | Skip the type check (TypeScript 7.0.2 over tsconfig.json) that runs after the compile. |
| `--verbose` | No | Also list the info findings hidden by default: every one with --output json, blocks placed by autolayout in the display. |

Compiles workflow\.ts (and the function files it names) with the compiler the server runs, against the workspace's block catalog the last get or create cached, and prints the findings as the dry run does. No request is made to Sim. It covers the source itself (syntax, builders, params, references, wiring). In a workflow folder of a workspace directory (workflows/\<key>), it reads the workspace's .sim/base.json and also checks env names, resource keys and table columns against what the directory declares. The dry run still checks what only the server knows (stored values, deployment), so run it before applying. A check also adds the blocks the source now uses to the CLI's tsconfig.json, so a block the edit added is typed; in a workspace directory it also regenerates .sim/sdk/workspace.d.ts from the files, so each key and workflow input they declare is. Then it type-checks the directory with TypeScript 7.0.2 (the release the declarations are built for) over tsconfig.json. Each type error is an E_TYPE error, its message starting with TypeScript's code. One is left out on a line the compile already reports an error on, and in a file still as the last get or apply wrote it when that file had the same error then (against the declarations as that get or apply left them). The first check installs that release with npm into the CLI's cache, once (none when SIM_TYPESCRIPT_DIR already holds it); when it cannot (offline, no npm), the check warns W_TYPES_UNCHECKED and passes or fails on the compile alone. --no-types skips the type check.

Exit codes: 0 no errors; 1 errors (each printed as file:line:column with its frame and hint), or no cached catalog (run the get once). With --output json, stdout is one document that also lists every finding under diagnostics.

These warnings, which an apply saves as written, fail the check as errors on every block the lock does not bind (a block added since the get, or every block of a new workflow): W_REQUIRED_MISSING, W_UNKNOWN_OPTION, W_UNKNOWN_OUTPUT_PATH, W_VALUE_KIND, W_OUT_OF_RANGE, W_LITERAL_SECRET, W_TABLE_UNKNOWN_COLUMN, W_CHILD_INPUT_UNKNOWN, W_CHILD_RESULT_PATH, W_BRANCH_UNWIRED, W_UNRESOLVED_REF, W_REF_OUT_OF_SCOPE, W_LOOP_CONDITION_SYNTAX. --strict fails on them in every block, except W_BRANCH_UNWIRED on a block the lock binds (the stored workflow may hold it, and the server then stays quiet); --no-strict fails on none of them. In every mode, as the server refuses them: W_REF_OUT_OF_SCOPE is the error E_APPLY_REF_OUT_OF_SCOPE in any file of a block the edit added or changed; W_LOOP_CONDITION_SYNTAX is the error E_APPLY_LOOP_CONDITION_SYNTAX in any file of a block the edit added or changed; W_UNKNOWN_OPTION is the error E_APPLY_INVALID_SUBBLOCK_FIELD in workflow\.ts on a block the edit added or changed; W_UNKNOWN_OUTPUT_PATH is the error E_APPLY_UNRESOLVED_REF in workflow\.ts on a block the edit added or changed; W_UNRESOLVED_REF is the error E_APPLY_UNRESOLVED_REF in workflow\.ts on a block the edit added or changed; W_UNKNOWN_BLOCK_TYPE is the error E_APPLY_INVALID_BLOCK_TYPE in workflow\.ts on a block the edit added or changed; W_TYPE_NOT_ADDABLE is the error E_APPLY_TYPE_NOT_ADDABLE in workflow\.ts on a block the edit added or changed; W_UNRESOLVED_REF is the error E_APPLY_UNRESOLVED_REF in a function file changed since the get; W_UNKNOWN_OUTPUT_PATH is the error E_APPLY_UNRESOLVED_REF in a function file changed since the get; W_CODE_FILE_REF_SYNTAX is the error E_APPLY_CODE_FILE_REF_SYNTAX in a function file changed since the get. A block counts as changed when the lock does not bind it, when the source moved it into another container, or when it compiles differently than in the source the last get or apply printed (.sim/stored-edges.json records a digest of each block). That last comparison needs the catalog the source was printed with in the cache: without it, a bound block that did not move counts as unchanged, so the server may refuse what the check passes. A $ref in a function file to a block the lock binds that the source no longer declares stays a warning, unless a warning cap left findings out: the server may infer that block was renamed and rewrite the reference, and refuses it otherwise. W_JSON_REF_UNTYPED is reported, as the server reports it, only on a field the edit made store the reference anew: one whose text differs from what the printed source stored, through block renames, or where the reference was typed then, as when an edit elsewhere (a Start input, a Function's code) changes its type. Without the record or that catalog, it is reported on every block the edit added or changed; with --strict, on every block.

Exit 10 (busy, retry): another sim workspaces source or workflows source command is using this directory or a workflow folder in it (SOURCE_DIR_BUSY); nothing was read or written. Run this one again once it finished.

### sim workflows source status \[#sim-workflows-source-status]

Show what changed locally and on the server since the directory was read

```bash
sim workflows source status [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--summary-file <path>` | No | Also write the plan as Markdown to this file (or set SIM_SUMMARY_FILE), replacing it each run; its first line is a comment that names the directory, for a CI step that updates one pull-request comment. |
| `--dir <dir>` | No | Source directory: workflow\.ts, functions/\* and .sim/. Defaults to `.`. |
| `--offline` | No | Report local changes only, without asking the server. |
| `--json` | No | Print the machine-readable status (same as --output json). |

With --json, `plan` is what applying would do as `apply --dry --allow-delete` reports it (its errors and warnings counted the same, a conflict as an error), and `next` the command to run (with --allow-delete only when the plan deletes something).

Exit codes: 0 clean (nothing to apply, and the server changed nothing since the directory was read); a server that cannot be reached is not a failure: the status shows the local changes only and says so (exit 0 or 11); 1 the command failed; 7 the source is too large for the server to read in one dry run; 9 rate limited (HTTP 429) after the CLI's retries: wait a minute and run it again; 10 (busy, retry) another sim command is using --dir, or the workspace directory it is a workflow folder of (SOURCE_DIR_BUSY): nothing was read or written, run it again once the other finished; 11 local changes only (applying writes them); 12 the server changed since the directory was read: drift (a resource edited, added or deleted there that the directory leaves alone) or a conflict (also changed here, so applying it is refused as stale), with or without local changes; 13 not logged in (AUTH_REQUIRED) or the credential was refused: the status shows the local changes only, then run `sim login`.

API request and response schemas: [planWorkflowSource](/api-reference/workflows/planWorkflowSource), [getSourceResources](/api-reference/workflows/getSourceResources).

### sim workflows source diff \[#sim-workflows-source-diff]

Show the content of the changes in a workflow source directory

```bash
sim workflows source diff [paths...] [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `paths...` | No | Files or folders to compare (default: every file) |

**Options**

| Option | Required | Description |
| - | - | - |
| `--dir <dir>` | No | Source directory: workflow\.ts, functions/\* and .sim/. Defaults to `.`. |
| `--server` | No | Compare with the server's current source instead of the base. |
| `--json` | No | Print the machine-readable diff (same as --output json). |

Without --server, each file created, edited or deleted since the directory was read is shown against the text it was read at. The CLI records only each file's digest, so that text is the server's current text where it still matches the digest; a file the server changed since is named instead (compare it with --server). A binary file is shown by its sizes. Paths filter by file or folder (and in a workspace directory by kind:key, such as table:leads). Exit codes: 0 the differences were shown, whether or not there were any; 7 the source is too large for the server to read; 1 the command failed.

API request and response schemas: [getWorkflowSource](/api-reference/workflows/getWorkflowSource).

### sim workflows source params \[#sim-workflows-source-params]

Print a builder's params and outputs from the cached block catalog (offline)

```bash
sim workflows source params <builder> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `builder` | Yes | Builder path (table.upsertRow, agent, trigger.schedule) or namespace |

**Options**

| Option | Required | Description |
| - | - | - |
| `--dir <dir>` | No | Source directory whose catalog to read. Defaults to `.`. |
| `--full` | No | Print every param with its type, enum, default and doc, not the brief form. |

Prints a builder in brief (an example call, the required params with types, the optional ones by name, the gate field that picks which others apply, and the outputs), from the block catalog the last get, create or check cached. --full prints every param with its type, enum, default and doc. A legacy builder names the one that replaces it. No request is made. \<builder> is the dotted builder path as source writes it: table.upsertRow, agent, trigger.schedule, slack.sendMessage (slack.tool.sendMessage names the same builder). A namespace (gmail, trigger.gmail) lists its builders; a block type prints the builder written for it (function is fn) or lists them (table_v2); a construct core.d.ts declares (loop, parallel, t, env) prints its declaration. Run it from a workflow or workspace source directory, or pass --dir.

Exit codes: 0 printed; 1 no builder or namespace of that name (the closest one is named), or no cached catalog (run a get once).

### sim workflows source find \[#sim-workflows-source-find]

Print a block's declaration, edges and readers with line numbers (offline)

```bash
sim workflows source find <block> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `block` | Yes | Block name, key or identifier; a part of a name matches every block |

**Options**

| Option | Required | Description |
| - | - | - |
| `--dir <dir>` | No | Workflow source directory to read. Defaults to `.`. |

Prints each block the name matches, read from the directory alone (no request is made): its declaration in workflow\.ts with line numbers, its function file, the wiring statements of its incoming and outgoing edges, and every block that reads its outputs (a param, a branch, or a function file's $ref), each as file:line. \<block> is a block name (Security Score), its key (securityscore) or its identifier (securityScore); with no exact match, every block whose name contains it is printed (at most 20). Run it from a workflow source directory, or pass --dir. When the source does not compile, readers are left out (JSON output carries compiles: false).

Exit codes: 0 printed; 1 no block matches (the closest name is suggested), or the directory is not a workflow source directory.

### sim workflows get \[#sim-workflows-get]

Get workflow

```bash
sim workflows get <workflowId>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `workflowId` | Yes | Unique workflow identifier. |

API request and response schemas: [getWorkflow](/api-reference/workflows/getWorkflow).

### sim workflows deployment status \[#sim-workflows-deployment-status]

Show a workflow’s current deployment

```bash
sim workflows deployment status <workflowId>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `workflowId` | Yes | Unique workflow identifier. |

API request and response schemas: [getWorkflowDeployment](/api-reference/workflows/getWorkflowDeployment).

### sim workflows deployment update \[#sim-workflows-deployment-update]

Update workflow public API access (OAuth login or personal API key required)

```bash
sim workflows deployment update <workflowId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `workflowId` | Yes | Unique workflow identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--is-public-api <true\|false>` | Yes | Whether the deployed workflow should accept unauthenticated public API execution. Accepted values: `true`, `false`. |

API request and response schemas: [updateWorkflowPublicApi](/api-reference/workflows/updateWorkflowPublicApi).

### sim workflows outline \[#sim-workflows-outline]

Show a workflow’s draft as a compact read-only outline

```bash
sim workflows outline <workflowId>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `workflowId` | Yes | Unique workflow identifier. |

API request and response schemas: [getWorkflowOutline](/api-reference/workflows/getWorkflowOutline).

### sim workflows state get \[#sim-workflows-state-get]

Get workflow state

```bash
sim workflows state get <workflowId>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `workflowId` | Yes | Unique workflow identifier. |

API request and response schemas: [getWorkflowState](/api-reference/workflows/getWorkflowState).

### sim workflows state replace \[#sim-workflows-state-replace]

Replace workflow state (OAuth login or personal API key required)

This replaces the entire draft graph and cannot be undone.

```bash
sim workflows state replace <workflowId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `workflowId` | Yes | Unique workflow identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--dry` | No | Validate and lint without writing, auditing, or notifying collaborators. Returns the same validation, preparation warnings, lint findings, and ID-ownership conflicts (`409`) as a committed write. `needsRedeployment` describes the pre-write state. For semantic operations, `mintedBlockIds` is empty; `previewBlockIds` contains provisional IDs with a warning, since committing mints new IDs. |
| `--no-dry` | No | Send --dry as false. |
| `--blocks <json\|@file>` | Yes | Blocks keyed by block id. (JSON, or @path / @- to read a file or stdin). |
| `--edges <json\|@file>` | Yes | Directed connections between blocks. (JSON, or @path / @- to read a file or stdin). |
| `--loops <json\|@file>` | No | Ignored on write: loop containers are recomputed from `blocks`. (JSON, or @path / @- to read a file or stdin). |
| `--parallels <json\|@file>` | No | Ignored on write: parallel containers are recomputed from `blocks`. (JSON, or @path / @- to read a file or stdin). |
| `--variables <json\|@file>` | No | Replacement variable set. Omit to leave the stored variables untouched. (JSON, or @path / @- to read a file or stdin). |
| `-y, --yes` | Conditional | Confirm this operation (required unless --dry). |

API request and response schemas: [replaceWorkflowState](/api-reference/workflows/replaceWorkflowState).

### sim workflows import \[#sim-workflows-import]

Import workflow

```bash
sim workflows import [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--workflow <json\|@file>` | Yes | Workflow export object, bare workflow state, or JSON string containing either form. (JSON, or @path / @- to read a file or stdin). |
| `--folder <value>` | No | Folder path as shown in the app; the leading / is optional. |
| `--name <value>` | No | Override for the imported workflow name. |
| `--description <value>` | No | Override for the imported workflow description. |
| `--mappings <json\|@file>` | No | Mapping entries addressed by resource kind and source identifier. (JSON, or @path / @- to read a file or stdin). |
| `--bindings <json\|@file>` | No | Resolved and unresolved source occurrences with their destination selections. (JSON, or @path / @- to read a file or stdin). |
| `--dependent-values <json\|@file>` | No | Destination-specific values addressed by the source block ID and field key, before imported IDs are regenerated. (JSON, or @path / @- to read a file or stdin). |
| `--request-id <value>` | No | Stable client request ID for mapped import. Reuse it with identical inputs after an uncertain response; changed inputs return 409. A new ID can create another workflow. |
| `--preview-fingerprint <value>` | No | Fingerprint returned by an import preview with the same choices. A changed plan returns 409; preview again. Do not invent this value. |
| `--wait` | No | Wait for the committed operation to finish; missing configuration and failure exit nonzero. |
| `--wait-timeout <seconds>` | No | Maximum operation wait in seconds (default 3600; 0 waits indefinitely). |

API request and response schemas: [importWorkflow](/api-reference/workflows/importWorkflow).

### sim workflows list \[#sim-workflows-list]

List workflows

```bash
sim workflows list [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--scope <value>` | No | Which lifecycle set to list: `active` (default) for live workflows, `archived` for workflows a `DELETE` archived. The folder filter resolves against active folders only, so pairing it with `archived` returns an empty page when the containing folder was archived too. Accepted values: `active`, `archived`. |
| `--folder <value>` | No | Folder path as shown in the app; the leading / is optional. |
| `--deployed-only` | No | Return only workflows with an active deployment when true. |
| `--no-deployed-only` | No | Send --deployed-only as false. |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `0`. |
| `--search <value>` | No | Case-insensitive substring match against the resource name. |
| `--sort-by <value>` | No | Field used to sort the result. Do not rely on case-insensitive ordering when sorting by `name`. Defaults to "position". Accepted values: `position`, `name`, `createdAt`, `updatedAt`, `runCount`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "asc". Accepted values: `asc`, `desc`. |

API request and response schemas: [listWorkflows](/api-reference/workflows/listWorkflows).

### sim workflows triggers list \[#sim-workflows-triggers-list]

Show the health of every trigger the live deployment serves

```bash
sim workflows triggers list <workflowId>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `workflowId` | Yes | Unique workflow identifier. |

API request and response schemas: [listWorkflowTriggers](/api-reference/workflows/listWorkflowTriggers).

### sim workflows triggers update \[#sim-workflows-triggers-update]

Enable or disable one trigger of the live deployment

```bash
sim workflows triggers update <workflowId> <blockId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `workflowId` | Yes | Unique workflow identifier. |
| `blockId` | Yes | Trigger block in the deployed workflow. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--enabled <true\|false>` | Yes | Whether the trigger should fire. A disable lasts until the next deploy or version activation, which re-enables every trigger. Accepted values: `true`, `false`. |

API request and response schemas: [updateWorkflowTrigger](/api-reference/workflows/updateWorkflowTrigger).

### sim workflows move \[#sim-workflows-move]

Move workflows

```bash
sim workflows move [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--workflow <value...>` | Yes | Workflows to move. Duplicates are collapsed. (space- or comma-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
| `--to <value>` | Yes | Destination folder path; / moves the workflows to the workspace root. |

API request and response schemas: [moveWorkflows](/api-reference/workflows/moveWorkflows).

### sim workflows import-preview \[#sim-workflows-import-preview]

Preview workflow import

```bash
sim workflows import-preview [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--workflow <json\|@file>` | Yes | Workflow export object, bare workflow state, or JSON string containing either form. (JSON, or @path / @- to read a file or stdin). |
| `--folder <value>` | No | Folder path as shown in the app; the leading / is optional. |
| `--name <value>` | No | Override for the imported workflow name. |
| `--description <value>` | No | Override for the imported workflow description. |
| `--mappings <json\|@file>` | No | Mapping entries addressed by resource kind and source identifier. (JSON, or @path / @- to read a file or stdin). |
| `--bindings <json\|@file>` | No | Resolved and unresolved source occurrences with their destination selections. (JSON, or @path / @- to read a file or stdin). |
| `--dependent-values <json\|@file>` | No | Destination-specific values addressed by the source block ID and field key, before imported IDs are regenerated. (JSON, or @path / @- to read a file or stdin). |

API request and response schemas: [previewWorkflowImport](/api-reference/workspace-sync/previewWorkflowImport).

### sim workflows restore \[#sim-workflows-restore]

Restore an archived workflow

```bash
sim workflows restore <workflowId>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `workflowId` | Yes | Unique workflow identifier. |

API request and response schemas: [restoreWorkflow](/api-reference/workflows/restoreWorkflow).

### sim workflows revert create \[#sim-workflows-revert-create]

Revert workflow to version (OAuth login or personal API key required)

This overwrites the draft graph with the selected version and cannot be undone.

```bash
sim workflows revert create <workflowId> <version> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `workflowId` | Yes | Unique workflow identifier. |
| `version` | Yes | Numeric deployment version, or `active` for the currently live version. |

**Options**

| Option | Required | Description |
| - | - | - |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [revertWorkflowVersion](/api-reference/workflows/revertWorkflowVersion).

### sim workflows rollback \[#sim-workflows-rollback]

Rollback workflow (OAuth login or personal API key required)

This changes which deployed version runs in production for every API and chat consumer.

```bash
sim workflows rollback <workflowId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `workflowId` | Yes | Unique workflow identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--to-version <value>` | No | Deployment version to reactivate. Omit to select the previous active version. |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [rollbackWorkflow](/api-reference/workflows/rollbackWorkflow).

### sim workflows undeploy \[#sim-workflows-undeploy]

Take a workflow out of deployment (OAuth login or personal API key required)

This takes the workflow offline for every API and chat consumer, and agents calling its MCP tools lose access until it is deployed again.

```bash
sim workflows undeploy <workflowId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `workflowId` | Yes | Unique workflow identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [undeployWorkflow](/api-reference/workflows/undeployWorkflow).

### sim workflows update \[#sim-workflows-update]

Update workflow

```bash
sim workflows update <workflowId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `workflowId` | Yes | Unique workflow identifier. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--name <value>` | No | Replacement workflow name. |
| `--description <value>` | No | Replacement workflow description; null clears it. (--description null sends the word, not JSON null). |
| `--folder <value>` | No | Folder path as shown in the app; the leading / is optional. |

API request and response schemas: [updateWorkflow](/api-reference/workflows/updateWorkflowV2).

### sim workflows mv \[#sim-workflows-mv]

Move a workflow to a folder

```bash
sim workflows mv <workflowId> <folder>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `workflowId` | Yes | Unique workflow identifier. |
| `folder` | Yes | Folder path as shown in the app; the leading / is optional |

API request and response schemas: [updateWorkflow](/api-reference/workflows/updateWorkflowV2).

### sim workflows ls \[#sim-workflows-ls]

List workflow resources and child folders together

```bash
sim workflows ls [path] [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `path` | No | Folder path to list; defaults to the root folder |

**Options**

| Option | Required | Description |
| - | - | - |
| `--search <text>` | No | Filter folders and resources by name. |
| `--limit <n>` | No | Maximum combined items to return (0 for everything). Defaults to `0`. |

API request and response schemas: [listWorkflows](/api-reference/workflows/listWorkflows), [listWorkflowFolders](/api-reference/workflows/listWorkflowsFolders).

### sim workflows mkdir \[#sim-workflows-mkdir]

Create a workflow directory at a path

```bash
sim workflows mkdir <path>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `path` | Yes | Folder path to create; the leading / is optional |

API request and response schemas: [createWorkflowFolder](/api-reference/workflows/createWorkflowsFolder).

## sim workspaces \[#sim-workspaces]

Read workspace access and manage reviewed fork, push, and pull operations.

Also spelled `sim workspace`.

### sim workspaces access-requests cancel \[#sim-workspaces-access-requests-cancel]

Cancel workspace access request (OAuth login or personal API key required)

```bash
sim workspaces access-requests cancel <requestId>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `requestId` | Yes | Access request identifier. |

API request and response schemas: [cancelWorkspaceAccessRequest](/api-reference/access-requests/cancelWorkspaceAccessRequest).

### sim workspaces access-requests create \[#sim-workspaces-access-requests-create]

Create workspace access request (OAuth login or personal API key required)

```bash
sim workspaces access-requests create [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--target <json\|@file>` | Yes | Target returned by Discover Workspace Access Requests or Discover Organization Access Requests. The target must currently be requestable. (JSON, or @path / @- to read a file or stdin). |
| `--reason <value>` | No | Why the acting user needs this access. Defaults to "". |

API request and response schemas: [createWorkspaceAccessRequest](/api-reference/access-requests/createWorkspaceAccessRequest).

### sim workspaces access-requests discover \[#sim-workspaces-access-requests-discover]

Discover workspace access requests (OAuth login or personal API key required)

```bash
sim workspaces access-requests discover [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--search <value>` | No | Case-insensitive substring match against the access item label. |
| `--target-kind <value>` | No | Category of access to discover. Accepted values: `feature`, `integration`, `provider`, `model`, `tool`, `knowledge_connector`, `file_share_auth`, `chat_deploy_auth`, `usage_limit`. |
| `--state <value>` | No | Filter by the acting user’s current access. Requestable items can be submitted for review. Accepted values: `allowed`, `requestable`, `unavailable`. |
| `--sort-by <value>` | No | Field used to sort the result. Defaults to "label". Accepted values: `label`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "asc". Accepted values: `asc`, `desc`. |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `100`. |
| `--cursor <value>` | No | Continue from nextCursor returned by a previous result. |

API request and response schemas: [discoverWorkspaceAccessRequests](/api-reference/access-requests/discoverWorkspaceAccessRequests).

### sim workspaces access-requests mine \[#sim-workspaces-access-requests-mine]

List my workspace access requests (OAuth login or personal API key required)

```bash
sim workspaces access-requests mine [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--status <value>` | No | Filter by request status; omit to include all statuses. Accepted values: `pending`, `fulfilled`, `declined`, `cancelled`, `closed`. |
| `--sort-by <value>` | No | Field used to sort the result. Defaults to "createdAt". Accepted values: `createdAt`, `targetLabel`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "desc". Accepted values: `asc`, `desc`. |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `100`. |
| `--cursor <value>` | No | Continue from nextCursor returned by a previous result. |

API request and response schemas: [listMyWorkspaceAccessRequests](/api-reference/access-requests/listMyWorkspaceAccessRequests).

### sim workspaces invitations create \[#sim-workspaces-invitations-create]

Create workspace invitations (OAuth login or personal API key required)

```bash
sim workspaces invitations create [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--emails <value...>` | Yes | Email addresses to invite. Each address is processed separately; inspect failed for unsuccessful recipients. (space- or comma-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
| `--permission <value>` | No | Workspace permission to grant. Existing workspace access is preserved. Defaults to "read". Accepted values: `admin`, `write`, `read`. |
| `--membership <value>` | No | Organization membership: member or admin uses a seat when billing is enabled. External grants workspace access only and requires an eligible paid account when billing is enabled. Existing members of another organization remain external. Defaults to "member". Accepted values: `member`, `admin`, `external`. |

API request and response schemas: [createWorkspaceInvitations](/api-reference/workspaces/createWorkspaceInvitations).

### sim workspaces fork \[#sim-workspaces-fork]

Fork workspace (OAuth login or personal API key required)

```bash
sim workspaces fork [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--name <value>` | No | Display name of the workflow or workspace. |
| `--copy <json\|@file>` | No | Explicit resource selections to copy into the new fork; omitted resource kinds are not copied. (JSON, or @path / @- to read a file or stdin). |
| `--request-id <value>` | Yes | Stable client request ID. Reuse it with identical inputs after an uncertain response; changed inputs return 409. A new ID can apply another operation. |
| `--preview-fingerprint <value>` | Yes | Fingerprint returned by a preview with the same choices. A changed plan returns 409; preview again. The example hash is illustrative; use the actual preview value. |
| `--wait` | No | Wait for the committed operation to finish; missing configuration and failure exit nonzero. |
| `--wait-timeout <seconds>` | No | Maximum operation wait in seconds (default 3600; 0 waits indefinitely). |

API request and response schemas: [forkWorkspace](/api-reference/workspace-sync/forkWorkspace).

### sim workspaces get \[#sim-workspaces-get]

Get workspace

```bash
sim workspaces get
```

API request and response schemas: [getWorkspace](/api-reference/workspaces/getWorkspace).

### sim workspaces fork-availability \[#sim-workspaces-fork-availability]

Get workspace fork availability (OAuth login or personal API key required)

```bash
sim workspaces fork-availability
```

API request and response schemas: [getWorkspaceForkAvailability](/api-reference/workspace-sync/getWorkspaceForkAvailability).

### sim workspaces lineage \[#sim-workspaces-lineage]

Get workspace fork lineage (OAuth login or personal API key required)

```bash
sim workspaces lineage
```

API request and response schemas: [getWorkspaceForkLineage](/api-reference/workspace-sync/getWorkspaceForkLineage).

### sim workspaces mappings get \[#sim-workspaces-mappings-get]

Get workspace fork mappings (OAuth login or personal API key required)

```bash
sim workspaces mappings get [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--other-workspace-id <value>` | Yes | Workspace on the other side of the direct fork edge. |
| `--direction <value>` | Yes | Push means current to other; pull means other to current, independent of parent/child orientation. Accepted values: `push`, `pull`. |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `100`. |
| `--cursor <value>` | No | Continue from nextCursor returned by a previous result. |
| `--sort-by <value>` | No | Supported stable sort key for this collection. Defaults to "id". Accepted values: `id`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "asc". Accepted values: `asc`. |

API request and response schemas: [getWorkspaceForkMappings](/api-reference/workspace-sync/getWorkspaceForkMappings).

### sim workspaces mappings update \[#sim-workspaces-mappings-update]

Update workspace fork mappings (OAuth login or personal API key required)

```bash
sim workspaces mappings update [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--other-workspace-id <value>` | Yes | Workspace on the other side of the direct fork edge. |
| `--direction <value>` | Yes | Push means current to other; pull means other to current, independent of parent/child orientation. Accepted values: `push`, `pull`. |
| `--mappings <json\|@file>` | Yes | Mapping entries addressed by resource type and `sourceId`. `targetId: null` clears a mapping. (JSON, or @path / @- to read a file or stdin). |

API request and response schemas: [updateWorkspaceForkMappings](/api-reference/workspace-sync/updateWorkspaceForkMappings).

### sim workspaces operations get \[#sim-workspaces-operations-get]

Get workspace operation

```bash
sim workspaces operations get <operationId>
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `operationId` | Yes | Durable operation identifier to use for polling. |

API request and response schemas: [getWorkspaceOperation](/api-reference/workspace-sync/getWorkspaceOperation).

### sim workspaces operations list \[#sim-workspaces-operations-list]

List workspace operations

```bash
sim workspaces operations list [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `100`. |
| `--cursor <value>` | No | Continue from nextCursor returned by a previous result. |
| `--request-id <value>` | No | Find an uncertain mutation by the original client request ID; keep the same filter while paging. |

API request and response schemas: [listWorkspaceOperations](/api-reference/workspace-sync/listWorkspaceOperations).

### sim workspaces operations wait \[#sim-workspaces-operations-wait]

Wait for workspace copy and deployment readiness

```bash
sim workspaces operations wait <operationId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `operationId` | Yes | Operation ID returned by import, fork, push, or pull |

**Options**

| Option | Required | Description |
| - | - | - |
| `--wait-timeout <seconds>` | No | Maximum total wait (default 3600; 0 waits indefinitely). |

Exit codes: 0 completed (including completion with warnings), 1 follow-up work failed, 3 destination configuration is required, 4 timed out. The mutation may already be committed; reconcile using the same operation or request ID rather than repeating it with a new ID.

API request and response schemas: [getWorkspaceOperation](/api-reference/workspace-sync/getWorkspaceOperation).

### sim workspaces permission-config \[#sim-workspaces-permission-config]

Get workspace permission config (OAuth login or personal API key required)

```bash
sim workspaces permission-config
```

API request and response schemas: [getWorkspacePermissionConfig](/api-reference/workspaces/getWorkspacePermissionConfig).

### sim workspaces children \[#sim-workspaces-children]

List workspace fork children (OAuth login or personal API key required)

```bash
sim workspaces children [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `100`. |
| `--cursor <value>` | No | Continue from nextCursor returned by a previous result. |
| `--sort-by <value>` | No | Supported stable sort key for this collection. Defaults to "createdAt". Accepted values: `createdAt`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "desc". Accepted values: `desc`. |

API request and response schemas: [listWorkspaceForkChildren](/api-reference/workspace-sync/listWorkspaceForkChildren).

### sim workspaces fork-resources \[#sim-workspaces-fork-resources]

List workspace fork resources (OAuth login or personal API key required)

```bash
sim workspaces fork-resources [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `100`. |
| `--cursor <value>` | No | Continue from nextCursor returned by a previous result. |
| `--kind <value>` | Yes | Kind of source resource to list for copy selection. Accepted values: `files`, `tables`, `knowledgeBases`, `customTools`, `skills`, `mcpServers`, `workflowMcpServers`. |
| `--sort-by <value>` | No | Supported stable sort key for this collection. Defaults to "id". Accepted values: `id`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "asc". Accepted values: `asc`. |

API request and response schemas: [listWorkspaceForkResources](/api-reference/workspace-sync/listWorkspaceForkResources).

### sim workspaces members list \[#sim-workspaces-members]

List workspace members

```bash
sim workspaces members list [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `0`. |

API request and response schemas: [listWorkspaceMembers](/api-reference/workspaces/listWorkspaceMembers).

### sim workspaces members remove \[#sim-workspaces-members-remove]

Remove workspace member (OAuth login or personal API key required)

This removes the member’s workspace access. If it was their last workspace in the organization, their organization membership is removed and their sessions end.

```bash
sim workspaces members remove <userId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `userId` | Yes | User identifier of the workspace member, as returned by List workspace members. |

**Options**

| Option | Required | Description |
| - | - | - |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [removeWorkspaceMember](/api-reference/workspaces/removeWorkspaceMember).

### sim workspaces members update \[#sim-workspaces-members-update]

Update workspace member (OAuth login or personal API key required)

```bash
sim workspaces members update <userId> [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `userId` | Yes | User identifier of the workspace member, as returned by List workspace members. |

**Options**

| Option | Required | Description |
| - | - | - |
| `--role <value>` | Yes | New workspace role. Inherited organization Admin access, the workspace owner, and the workspace billing account keep Admin and cannot be changed here. Accepted values: `admin`, `write`, `read`. |

API request and response schemas: [updateWorkspaceMember](/api-reference/workspaces/updateWorkspaceMember).

### sim workspaces list \[#sim-workspaces-list]

List workspaces

```bash
sim workspaces list [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--sort-by <value>` | No | Field used to sort the result. Do not rely on case-insensitive ordering when sorting by `name`. Defaults to "createdAt". Accepted values: `name`, `createdAt`, `updatedAt`. |
| `--sort-order <value>` | No | Sort direction. Defaults to "desc". Accepted values: `asc`, `desc`. |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `0`. |

API request and response schemas: [listWorkspaces](/api-reference/workspaces/listWorkspaces).

### sim workspaces fork-preview \[#sim-workspaces-fork-preview]

Preview workspace fork (OAuth login or personal API key required)

```bash
sim workspaces fork-preview [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--name <value>` | No | Display name of the workflow or workspace. |
| `--copy <json\|@file>` | No | Explicit resource selections to copy into the new fork; omitted resource kinds are not copied. (JSON, or @path / @- to read a file or stdin). |

API request and response schemas: [previewWorkspaceFork](/api-reference/workspace-sync/previewWorkspaceFork).

### sim workspaces pull-preview \[#sim-workspaces-pull-preview]

Preview workspace pull (OAuth login or personal API key required)

```bash
sim workspaces pull-preview [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--other-workspace-id <value>` | Yes | Workspace on the other side of the direct fork edge. |
| `--mappings <json\|@file>` | No | Proposed mapping entries addressed by resource type and `sourceId`. Preview does not save them; apply commits them with the sync. (JSON, or @path / @- to read a file or stdin). |
| `--dependent-values <json\|@file>` | No | Destination-specific choices addressed by source workflow ID, source block ID, and field key. Omission keeps saved overrides; an explicit empty array clears them. (JSON, or @path / @- to read a file or stdin). |
| `--copy-resources <json\|@file>` | No | Explicit source resources to copy before syncing the workflows. (JSON, or @path / @- to read a file or stdin). |
| `--drop-references <json\|@file>` | No | Source-deleted references explicitly acknowledged for removal; live source references cannot be dropped. (JSON, or @path / @- to read a file or stdin). |
| `--trigger-mappings <json\|@file>` | No | Public trigger path choices from preview\.triggerSlots, addressed by source workflow and block IDs. Duplicate or unavailable choices are rejected. (JSON, or @path / @- to read a file or stdin). |

API request and response schemas: [previewWorkspacePull](/api-reference/workspace-sync/previewWorkspacePull).

### sim workspaces push-preview \[#sim-workspaces-push-preview]

Preview workspace push (OAuth login or personal API key required)

```bash
sim workspaces push-preview [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--other-workspace-id <value>` | Yes | Workspace on the other side of the direct fork edge. |
| `--mappings <json\|@file>` | No | Proposed mapping entries addressed by resource type and `sourceId`. Preview does not save them; apply commits them with the sync. (JSON, or @path / @- to read a file or stdin). |
| `--dependent-values <json\|@file>` | No | Destination-specific choices addressed by source workflow ID, source block ID, and field key. Omission keeps saved overrides; an explicit empty array clears them. (JSON, or @path / @- to read a file or stdin). |
| `--copy-resources <json\|@file>` | No | Explicit source resources to copy before syncing the workflows. (JSON, or @path / @- to read a file or stdin). |
| `--drop-references <json\|@file>` | No | Source-deleted references explicitly acknowledged for removal; live source references cannot be dropped. (JSON, or @path / @- to read a file or stdin). |
| `--trigger-mappings <json\|@file>` | No | Public trigger path choices from preview\.triggerSlots, addressed by source workflow and block IDs. Duplicate or unavailable choices are rejected. (JSON, or @path / @- to read a file or stdin). |

API request and response schemas: [previewWorkspacePush](/api-reference/workspace-sync/previewWorkspacePush).

### sim workspaces pull \[#sim-workspaces-pull]

Pull workspace (OAuth login or personal API key required)

This replaces target workflows and may archive targets whose sources were deleted.

```bash
sim workspaces pull [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--other-workspace-id <value>` | Yes | Workspace on the other side of the direct fork edge. |
| `--mappings <json\|@file>` | No | Proposed mapping entries addressed by resource type and `sourceId`. Preview does not save them; apply commits them with the sync. (JSON, or @path / @- to read a file or stdin). |
| `--dependent-values <json\|@file>` | No | Destination-specific choices addressed by source workflow ID, source block ID, and field key. Omission keeps saved overrides; an explicit empty array clears them. (JSON, or @path / @- to read a file or stdin). |
| `--copy-resources <json\|@file>` | No | Explicit source resources to copy before syncing the workflows. (JSON, or @path / @- to read a file or stdin). |
| `--drop-references <json\|@file>` | No | Source-deleted references explicitly acknowledged for removal; live source references cannot be dropped. (JSON, or @path / @- to read a file or stdin). |
| `--trigger-mappings <json\|@file>` | No | Public trigger path choices from preview\.triggerSlots, addressed by source workflow and block IDs. Duplicate or unavailable choices are rejected. (JSON, or @path / @- to read a file or stdin). |
| `--request-id <value>` | Yes | Stable client request ID. Reuse it with identical inputs after an uncertain response; changed inputs return 409. A new ID can apply another operation. |
| `--preview-fingerprint <value>` | Yes | Fingerprint returned by a preview with the same choices. A changed plan returns 409; preview again. The example hash is illustrative; use the actual preview value. |
| `--wait` | No | Wait for the committed operation to finish; missing configuration and failure exit nonzero. |
| `--wait-timeout <seconds>` | No | Maximum operation wait in seconds (default 3600; 0 waits indefinitely). |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [pullWorkspace](/api-reference/workspace-sync/pullWorkspace).

### sim workspaces push \[#sim-workspaces-push]

Push workspace (OAuth login or personal API key required)

This replaces target workflows and may archive targets whose sources were deleted.

```bash
sim workspaces push [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--other-workspace-id <value>` | Yes | Workspace on the other side of the direct fork edge. |
| `--mappings <json\|@file>` | No | Proposed mapping entries addressed by resource type and `sourceId`. Preview does not save them; apply commits them with the sync. (JSON, or @path / @- to read a file or stdin). |
| `--dependent-values <json\|@file>` | No | Destination-specific choices addressed by source workflow ID, source block ID, and field key. Omission keeps saved overrides; an explicit empty array clears them. (JSON, or @path / @- to read a file or stdin). |
| `--copy-resources <json\|@file>` | No | Explicit source resources to copy before syncing the workflows. (JSON, or @path / @- to read a file or stdin). |
| `--drop-references <json\|@file>` | No | Source-deleted references explicitly acknowledged for removal; live source references cannot be dropped. (JSON, or @path / @- to read a file or stdin). |
| `--trigger-mappings <json\|@file>` | No | Public trigger path choices from preview\.triggerSlots, addressed by source workflow and block IDs. Duplicate or unavailable choices are rejected. (JSON, or @path / @- to read a file or stdin). |
| `--request-id <value>` | Yes | Stable client request ID. Reuse it with identical inputs after an uncertain response; changed inputs return 409. A new ID can apply another operation. |
| `--preview-fingerprint <value>` | Yes | Fingerprint returned by a preview with the same choices. A changed plan returns 409; preview again. The example hash is illustrative; use the actual preview value. |
| `--wait` | No | Wait for the committed operation to finish; missing configuration and failure exit nonzero. |
| `--wait-timeout <seconds>` | No | Maximum operation wait in seconds (default 3600; 0 waits indefinitely). |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [pushWorkspace](/api-reference/workspace-sync/pushWorkspace).

### sim workspaces fork-rollback \[#sim-workspaces-fork-rollback]

Rollback workspace fork (OAuth login or personal API key required)

This restores the latest sync using its prior deployed versions.

```bash
sim workspaces fork-rollback [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--other-workspace-id <value>` | Yes | Workspace on the other side of the direct fork edge. |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [rollbackWorkspaceFork](/api-reference/workspace-sync/rollbackWorkspaceFork).

### sim workspaces unlink \[#sim-workspaces-unlink]

Unlink workspace fork (OAuth login or personal API key required)

This removes the fork relationship and its persisted mappings.

```bash
sim workspaces unlink [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--other-workspace-id <value>` | Yes | Workspace on the other side of the direct fork edge. |
| `-y, --yes` | Yes | Confirm this operation. |

API request and response schemas: [unlinkWorkspaceFork](/api-reference/workspace-sync/unlinkWorkspaceFork).

### sim workspaces update \[#sim-workspaces-update]

Update workspace (OAuth login or personal API key required)

```bash
sim workspaces update [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--name <value>` | No | New workspace display name. |
| `--logo-url <value>` | No | New workspace logo: a root-relative path (starting with /) or an https\:// URL. To remove the logo, send logoUrl: null through the API or MCP (--logo-url null sends the word, not JSON null). |

API request and response schemas: [updateWorkspace](/api-reference/workspaces/updateWorkspace).

### sim workspaces sync-exclusions \[#sim-workspaces-sync-exclusions]

Update workspace fork exclusions (OAuth login or personal API key required)

```bash
sim workspaces sync-exclusions [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--workflow <value...>` | Yes | Workflow identifiers in the current workspace. (space- or comma-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
| `--fork-sync-excluded <true\|false>` | Yes | Whether the named workflows should be skipped as sync sources and targets. Accepted values: `true`, `false`. |

API request and response schemas: [updateWorkspaceForkExclusions](/api-reference/workspace-sync/updateWorkspaceForkExclusions).

### sim workspaces source get \[#sim-workspaces-source-get]

Write a workspace as a source directory

```bash
sim workspaces source get [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--dir <dir>` | Yes | Directory to write the workspace source into. |
| `--only <kinds>` | No | Read only these kinds (comma-separated folders: secrets.ts, credentials.ts, tools, skills, mcp, tables, knowledge, files, workflows, deployments). |
| `--force` | No | Replace files with edits no apply has saved. |

A directory that already holds a .sim/base.json is refreshed from the workspace it was read from, whatever the profile's default workspace.

Exit codes: 0 written; 1 the command failed, the directory holds edits no apply has saved (SOURCE_LOCAL_EDITS: apply them, get into another directory, or pass --force), --workspace or SIM_WORKSPACE names another workspace than the one the directory was read from (SOURCE_OTHER_WORKSPACE), the directory is a workflow source directory (SOURCE_DIR_KIND_MISMATCH, even with --force), or a downloaded binary file does not match its listing (SOURCE_BLOB_MISMATCH: nothing was written); 9 rate limited (HTTP 429) after the CLI's retries: nothing was written, the binary files already downloaded are kept in .sim/downloads, and running the get again downloads only the rest; 10 (busy, retry) another sim workspaces source or workflows source command is using this directory or a workflow folder in it (SOURCE_DIR_BUSY): nothing was read or written, run it again once it finished; 13 not logged in, the login expired, or the server refused the credential (AUTH_REQUIRED): nothing was read or written, run `sim login` and the get again.

API request and response schemas: [getWorkspaceSource](/api-reference/workflows/getWorkspaceSource), [getSourceCatalog](/api-reference/catalog/getSourceCatalog), [getSourceResources](/api-reference/workflows/getSourceResources), [downloadFile](/api-reference/files/downloadFile), [downloadKnowledgeDocument](/api-reference/knowledge-bases/downloadKnowledgeDocument).

### sim workspaces source apply \[#sim-workspaces-source-apply]

Apply a workspace source directory

```bash
sim workspaces source apply [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--verbose` | No | Also list the info findings hidden by default: every one with --output json, blocks placed by autolayout in the display. |
| `--summary-file <path>` | No | Also write the plan as Markdown to this file (or set SIM_SUMMARY_FILE), replacing it each run; its first line is a comment that names the directory, for a CI step that updates one pull-request comment. |
| `--dir <dir>` | No | Workspace source directory written by `workspaces source get`. Defaults to `.`. |
| `--dry` | No | Plan and check without writing anything. |
| `-y, --yes` | No | Apply without asking for confirmation. |
| `--allow-delete` | No | Delete resources, columns and data the directory no longer declares (with --to, only what it deleted since the last promotion: the target's own resources are kept). |
| `--delete-target-only` | No | With --to and --allow-delete, also delete the target's resources this directory never declared and no promotion from it left there (prod-only tables and their rows, skills made in prod). Without it a promotion keeps them, naming each with a warning. |
| `--only <kinds>` | No | Apply only these kinds (comma-separated folders: secrets.ts, credentials.ts, tools, skills, mcp, tables, knowledge, files, workflows, deployments). |
| `--to <workspaceId>` | No | Promote the directory to another workspace (dev to prod): its resources bind by key to that workspace's own and are updated in place. Only .sim/targets/\<workspaceId>.json changes, the record the next promotion compares with: a resource changed there since is kept, or refused as stale (exit 5) when the directory changed it too. |
| `--run <key=input>` | No | After the apply, dry-run workflows/\<key>/'s saved draft with this input (JSON or @file, as `sim workflows run --dry --input` takes it; `--run <key>` alone: no input). Repeat it to test more workflows. deployments/ is applied only after every run completed, and only when every draft it publishes was test-run; a run that does not complete exits 1 and leaves the applied drafts in place. Sandboxed code (Python, shell, imports) really runs in it, network requests included, and is listed in runs\[].sideEffects.unchecked. |

Exit codes: 0 applied (or a clean dry run); 1 the source has errors (each printed as file:line:column with its frame and hint), or every change it would write was held back because it uses a declared secret the workspace has no value for or a declared credential key nothing binds to (nothing was written; a dry run of such an apply exits 1 too), the directory was read from another workspace than the one --workspace or SIM_WORKSPACE names (SOURCE_OTHER_WORKSPACE: drop it, or promote it with --to; without either an apply targets the workspace the directory was read from), its base records binary files no get downloaded (SOURCE_BLOBS_NOT_FETCHED: get again first), a --run test run did not complete (the apply is written; deployments/ was not applied), or the command failed; 5 a resource changed or was deleted on the server since the directory was read (SOURCE_STALE: get it again into a fresh directory, reapply the edit, retry); 6 a resource (a workflow or its folder, a table) is locked (a locked block exits 1, E_APPLY_LOCKED_BLOCK); 7 the directory is too large; 8 the apply stopped part-way on a server failure: what was written is saved into the directory, and applying again continues. An apply a resource refused part-way (stale, locked, forbidden) saves what was written too, and exits as that refusal: 5, 6 or 1; 9 rate limited (HTTP 429) after the CLI's retries, before anything was written: wait a minute and apply again (binary files already uploaded are not sent again); 10 another apply is writing the workspace (SOURCE_BUSY), or another command is using the directory (SOURCE_DIR_BUSY): nothing was written, run the command again once the other finished; 13 not logged in, the login expired, or the server refused the credential (AUTH_REQUIRED): nothing was sent, run `sim login` (or fix or unset SIM_API_KEY when the key comes from it) and the command again; 14 without --yes and with no terminal to ask: the plan was printed with no errors and nothing was written (run the same command with --yes to apply it); 15 written in part: changes that use a declared secret the workspace has no value for, or a declared credential key nothing binds to, were held back and the rest was applied and saved (set the secret or connect the credential, then apply again); a dry run that would do so exits 15 too, having written nothing; 130 interrupted (Ctrl-C): a write already sent is finished and saved into the directory first, waiting up to 60s for its answer, and a second Ctrl-C, or no answer by then, stops at once and prints that it may have been written and how to check.

API request and response schemas: [applyWorkspaceSource](/api-reference/workflows/applyWorkspaceSource), [findMissingWorkspaceSourceBlobs](/api-reference/workflows/findMissingWorkspaceSourceBlobs), [stageWorkspaceSourceBlobs](/api-reference/workflows/stageWorkspaceSourceBlobs), [getWorkspaceSource](/api-reference/workflows/getWorkspaceSource), [getSourceCatalog](/api-reference/catalog/getSourceCatalog), [getWorkflowDeployment](/api-reference/workflows/getWorkflowDeployment), [executeWorkflow](/api-reference/workflows/executeWorkflowV2).

### sim workspaces source check \[#sim-workspaces-source-check]

Compile and type-check every workflow of a workspace source directory locally, without the server

```bash
sim workspaces source check [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--dir <dir>` | No | Workspace source directory: the kind folders and .sim/base.json. Defaults to `.`. |
| `--strict` | No | Fail on the warnings listed below in every block, not only new ones. |
| `--no-strict` | No | Never fail on a warning an apply saves. |
| `--no-types` | No | Skip the type check (TypeScript 7.0.2 over tsconfig.json) that runs after the compile. |
| `--verbose` | No | Also list the info findings hidden by default: every one with --output json, blocks placed by autolayout in the display. |

Compiles every workflows/\<key>/workflow\.ts (and the function files each names) with the compiler the server runs, against the workspace's block catalog the last get cached (in a fresh clone with no cache, such as CI, it downloads the catalog once with the profile's credentials). No other request is made to Sim. It checks, against what the directory declares: - env names (secrets.ts), with a did-you-mean - credential keys (credentials.ts) - the keys of tables, knowledge bases, skills, custom tools, MCP servers and workflows, with a did-you-mean, and a key holding a look-alike letter (a Cyrillic а) named by its code point - the columns and select options of a table row write - a child workflow call: an inputMapping key the child's Start trigger does not declare, and a child with no Start trigger - each tables/\<key>.rows.jsonl: a malformed line, an undeclared column, a managed key two lines share, an empty required cell, a repeated unique value, a value its column's type or options cannot hold - block names whose words mix Latin with Cyrillic, Greek, Armenian or Cherokee letters The dry run still checks what only the server knows (stored values, MCP tool names, model ids, deployments, credential bindings), so run it before applying. A check also regenerates .sim/sdk/workspace.d.ts from the declarations (so a key added since the get is typed, and each workflow's inputs) and adds the blocks the workflows now use to the CLI's tsconfig.json. Then it type-checks the directory with TypeScript 7.0.2 (the release the declarations are built for) over tsconfig.json. Each type error is an E_TYPE error, its message starting with TypeScript's code. One is left out on a line the compile already reports an error on, and in a file still as the last get or apply wrote it when that file had the same error then (against the declarations as that get or apply left them). The first check installs that release with npm into the CLI's cache, once (none when SIM_TYPESCRIPT_DIR already holds it); when it cannot (offline, no npm), the check warns W_TYPES_UNCHECKED and passes or fails on the compile alone. --no-types skips the type check.

Exit codes: 0 no errors; 1 errors (each printed as file:line:column with its frame and hint), or no cached catalog that could not be downloaded (a check downloads it once when none is cached, with the profile's credentials; 13 when there is no login to download it with). With --output json, stdout is one document that also lists every finding under diagnostics.

These warnings, which an apply saves as written, fail the check as errors on every block the lock does not bind (a block added since the get, or every block of a new workflow): W_REQUIRED_MISSING, W_UNKNOWN_OPTION, W_UNKNOWN_OUTPUT_PATH, W_VALUE_KIND, W_OUT_OF_RANGE, W_LITERAL_SECRET, W_TABLE_UNKNOWN_COLUMN, W_CHILD_INPUT_UNKNOWN, W_CHILD_RESULT_PATH, W_BRANCH_UNWIRED, W_UNRESOLVED_REF, W_REF_OUT_OF_SCOPE, W_LOOP_CONDITION_SYNTAX. --strict fails on them in every block, except W_BRANCH_UNWIRED on a block the lock binds (the stored workflow may hold it, and the server then stays quiet); --no-strict fails on none of them. In every mode, as the server refuses them: W_REF_OUT_OF_SCOPE is the error E_APPLY_REF_OUT_OF_SCOPE in any file of a block the edit added or changed; W_LOOP_CONDITION_SYNTAX is the error E_APPLY_LOOP_CONDITION_SYNTAX in any file of a block the edit added or changed; W_UNKNOWN_OPTION is the error E_APPLY_INVALID_SUBBLOCK_FIELD in workflow\.ts on a block the edit added or changed; W_UNKNOWN_OUTPUT_PATH is the error E_APPLY_UNRESOLVED_REF in workflow\.ts on a block the edit added or changed; W_UNRESOLVED_REF is the error E_APPLY_UNRESOLVED_REF in workflow\.ts on a block the edit added or changed; W_UNKNOWN_BLOCK_TYPE is the error E_APPLY_INVALID_BLOCK_TYPE in workflow\.ts on a block the edit added or changed; W_TYPE_NOT_ADDABLE is the error E_APPLY_TYPE_NOT_ADDABLE in workflow\.ts on a block the edit added or changed; W_UNRESOLVED_REF is the error E_APPLY_UNRESOLVED_REF in a function file changed since the get; W_UNKNOWN_OUTPUT_PATH is the error E_APPLY_UNRESOLVED_REF in a function file changed since the get; W_CODE_FILE_REF_SYNTAX is the error E_APPLY_CODE_FILE_REF_SYNTAX in a function file changed since the get. A block counts as changed when the lock does not bind it, when the source moved it into another container, or when it compiles differently than in the source the last get or apply printed (.sim/stored-edges.json records a digest of each block). That last comparison needs the catalog the source was printed with in the cache: without it, a bound block that did not move counts as unchanged, so the server may refuse what the check passes. A $ref in a function file to a block the lock binds that the source no longer declares stays a warning, unless a warning cap left findings out: the server may infer that block was renamed and rewrite the reference, and refuses it otherwise. W_JSON_REF_UNTYPED is reported, as the server reports it, only on a field the edit made store the reference anew: one whose text differs from what the printed source stored, through block renames, or where the reference was typed then, as when an edit elsewhere (a Start input, a Function's code) changes its type. Without the record or that catalog, it is reported on every block the edit added or changed; with --strict, on every block.

Exit 10 (busy, retry): another sim workspaces source or workflows source command is using this directory or a workflow folder in it (SOURCE_DIR_BUSY); nothing was read or written. Run this one again once it finished.

API request and response schemas: [getSourceCatalog](/api-reference/catalog/getSourceCatalog).

### sim workspaces source status \[#sim-workspaces-source-status]

Show what changed locally and on the server since the directory was read

```bash
sim workspaces source status [options]
```

**Options**

| Option | Required | Description |
| - | - | - |
| `--summary-file <path>` | No | Also write the plan as Markdown to this file (or set SIM_SUMMARY_FILE), replacing it each run; its first line is a comment that names the directory, for a CI step that updates one pull-request comment. |
| `--dir <dir>` | No | Workspace source directory written by `workspaces source get`. Defaults to `.`. |
| `--only <kinds>` | No | Report only these kinds (comma-separated folders: secrets.ts, credentials.ts, tools, skills, mcp, tables, knowledge, files, workflows, deployments). |
| `--offline` | No | Report local changes only, without asking the server. |
| `--json` | No | Print the machine-readable status (same as --output json). |

With --json, `plan` is what applying would do as `apply --dry --allow-delete` reports it (its errors and warnings counted the same, a conflict as an error), and `next` the command to run (with --allow-delete only when the plan deletes something).

Exit codes: 0 clean (nothing to apply, and the server changed nothing since the directory was read); a server that cannot be reached is not a failure: the status shows the local changes only and says so (exit 0 or 11); 1 the command failed; 7 the source is too large for the server to read in one dry run; 9 rate limited (HTTP 429) after the CLI's retries: wait a minute and run it again; 10 (busy, retry) another sim workspaces source or workflows source command is using this directory or a workflow folder in it (SOURCE_DIR_BUSY): nothing was read or written, run it again once it finished; 11 local changes only (applying writes them); 12 the server changed since the directory was read: drift (a resource edited, added or deleted there that the directory leaves alone) or a conflict (also changed here, so applying it is refused as stale), with or without local changes; 13 not logged in (AUTH_REQUIRED) or the credential was refused: the status shows the local changes only, then run `sim login`.

API request and response schemas: [planWorkspaceSource](/api-reference/workflows/planWorkspaceSource).

### sim workspaces source diff \[#sim-workspaces-source-diff]

Show the content of the changes in a workspace source directory

```bash
sim workspaces source diff [paths...] [options]
```

**Arguments**

| Argument | Required | Description |
| - | - | - |
| `paths...` | No | Files, folders or kind:key resources to compare (default: every file) |

**Options**

| Option | Required | Description |
| - | - | - |
| `--dir <dir>` | No | Workspace source directory written by `workspaces source get`. Defaults to `.`. |
| `--server` | No | Compare with the server's current source instead of the base. |
| `--json` | No | Print the machine-readable diff (same as --output json). |

Without --server, each file created, edited or deleted since the directory was read is shown against the text it was read at. The CLI records only each file's digest, so that text is the server's current text where it still matches the digest; a file the server changed since is named instead (compare it with --server). A binary file is shown by its sizes. Paths filter by file or folder (and in a workspace directory by kind:key, such as table:leads). Exit codes: 0 the differences were shown, whether or not there were any; 7 the source is too large for the server to read; 1 the command failed.

Exit 10 (busy, retry): another sim workspaces source or workflows source command is using this directory or a workflow folder in it (SOURCE_DIR_BUSY); nothing was read or written. Run this one again once it finished.

API request and response schemas: [getWorkspaceSource](/api-reference/workflows/getWorkspaceSource).
