Every command on one page, generated from the CLI itself. Start at the overview 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 is this page as plain text. The docs
are also published as /llms.txt and
/llms-full.txt.
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.
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 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 for these and the command-specific codes.
sim login
Log in through the browser and store the login for the profile
Options
sim logout
Sign out and remove the profile's stored login
Options
sim whoami
Show the resolved profile, where each setting came from, and whether it works
Options
API request and response schemas: getMeta, getWorkspace.
sim configure
Switch a profile's default workspace, or set its endpoint or output format
Options
sim update
Update this global CLI installation to the newest release on its channel
Options
sim chat
Ask Sim and print the reply
Arguments
Options
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
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
List configured profiles
sim profiles add
Add a workspace profile that shares the active stored login
Arguments
Options
API request and response schemas: getWorkspace, listWorkspaces.
sim telemetry
Inspect and change this machine’s anonymous usage-reporting preference.
sim telemetry status
Show usage-reporting 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
Enable the usage-reporting preference for this machine
sim telemetry disable
Turn usage reporting off for this machine
sim cli
Find a command by describing the task you want to perform.
sim cli search
Find commands for a task
Arguments
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
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
Get audit log (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: getAuditLog.
sim audit-logs list
List audit logs (OAuth login or personal API key required)
Options
API request and response schemas: listAuditLogs.
sim billing
Read billing status, credit usage, and storage usage.
sim billing status
Show billing status, credits spent, and storage used (credits and storage require an OAuth login or personal API key)
Options
API request and response schemas: getBillingStatus.
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)
Options
API request and response schemas: listBillingLogs.
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
Get block
Arguments
API request and response schemas: getBlock.
sim blocks list
List blocks
Options
API request and response schemas: listBlocks.
sim chat-deployments
List workflow chat deployments in the workspace.
sim chat-deployments list
List chat deployments
Options
API request and response schemas: listChatDeployments.
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
List connector types
Options
API request and response schemas: listConnectorTypes.
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
Disconnect credential (OAuth login or personal API key required)
This disconnects the credential and removes its stored authentication.
Arguments
Options
API request and response schemas: deleteCredential.
sim credentials members list
List credential members (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: listCredentialMembers.
sim credentials members remove
Remove credential member (OAuth login or personal API key required)
This revokes the selected user’s explicit credential grant.
Arguments
Options
API request and response schemas: removeCredentialMember.
sim credentials members upsert
Upsert credential member (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: upsertCredentialMember.
sim credentials providers list
List credential providers
Options
API request and response schemas: listCredentialProviders.
sim credentials list
List credentials
Options
API request and response schemas: listCredentials.
sim credentials update
Update credential (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: updateCredential.
sim credentials create
Create a service-account credential using its discovered provider schema (OAuth login or personal API key required)
Arguments
Options
--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
API request and response schemas: createServiceAccountCredential.
sim credentials keyless-subject
Issue the subject and proof for a new keyless (workload identity) credential (OAuth login or personal API key required)
Arguments
Options
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
API request and response schemas: createCredentialWorkloadIdentitySubject.
sim credentials connect
Create a short-lived link for connecting an OAuth provider (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: createCredentialConnection.
sim credentials reconnect
Create a short-lived link for reconnecting an OAuth credential (OAuth login or personal API key required)
Arguments
API request and response schemas: createCredentialConnection.
sim custom-tools
Create and manage code-backed tools that agents can call.
Also spelled sim custom-tool.
sim custom-tools create
Create custom tool
Options
API request and response schemas: createCustomTool.
sim custom-tools delete
Delete custom tool
This deletes the custom tool.
Arguments
Options
API request and response schemas: deleteCustomTool.
sim custom-tools get
Get custom tool
Arguments
API request and response schemas: getCustomTool.
sim custom-tools list
List custom tools
Options
API request and response schemas: listCustomTools.
sim custom-tools update
Update custom tool
Arguments
Options
API request and response schemas: updateCustomTool.
sim files
Browse workspace files, read or write content, manage versions, and configure sharing.
Also spelled sim file.
sim files batch-delete
Delete several files at once
This archives the listed files; restore them with files restore.
Arguments
Options
API request and response schemas: bulkDeleteFiles.
sim files copy
Copy file items (OAuth login or personal API key required)
Options
sim files create
Create file
Options
API request and response schemas: createFile.
sim files folders create
Create a file folder at a path
Arguments
API request and response schemas: createFileFolder.
sim files folders delete
Delete folder
This archives the file folder and, when recursive, everything inside it.
Arguments
Options
API request and response schemas: deleteFileFolder.
sim files folders list
List folders
Also available as sim files folders ls.
Options
API request and response schemas: listFileFolders.
sim files folders move
Rename or move a file folder
Also available as sim files folders mv.
Arguments
API request and response schemas: relocateFileFolder.
sim files folders restore
Restore an archived file folder
Arguments
API request and response schemas: restoreFileFolder.
sim files delete
Delete file
This archives the file.
Arguments
Options
API request and response schemas: deleteFile.
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.
Arguments
Options
API request and response schemas: deleteFileVersion.
sim files versions describe
Show the metadata of one version of a file
Arguments
API request and response schemas: getFileVersion.
sim files versions list
List the recorded versions of a file
Arguments
Options
API request and response schemas: listFileVersions.
sim files versions read
Read the text content of one version of a file as JSON or YAML
Arguments
Options
API request and response schemas: readFileVersionText.
sim files versions revert
Make a previous version of a file current again
Arguments
Options
API request and response schemas: revertFileVersion.
sim files versions download
Download the content of one version of a file
Arguments
Options
API request and response schemas: downloadFileVersion.
sim files edit
Apply one exact or anchor-based edit to a text file
Arguments
Options
API request and response schemas: editFileContent.
sim files describe
Show file metadata and sharing status
Arguments
Options
API request and response schemas: getFile.
sim files share get
Show a file’s share settings
Arguments
API request and response schemas: getFileShare.
sim files share set
Enable or disable sharing for a file (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: upsertFileShare.
sim files list
List files
Options
API request and response schemas: listFiles.
sim files move
Move files into another folder
Also available as sim files mv.
Options
API request and response schemas: moveFileItems.
sim files read
Read a file’s text content as JSON or YAML
Arguments
Options
API request and response schemas: readFileText.
sim files rename
Rename a file
Arguments
Options
API request and response schemas: renameFile.
sim files restore
Restore an archived file
Arguments
API request and response schemas: restoreFile.
sim files search
Search file content
Options
API request and response schemas: searchFileContent.
sim files unzip
Unzip an archive into a new folder beside it
This writes every file in the archive into the workspace.
Arguments
Options
API request and response schemas: unzipFile.
sim files set-content
Replace a file’s contents
Arguments
Options
API request and response schemas: updateFileContent.
sim files upload
Upload a file to the workspace
Arguments
Options
API request and response schemas: createFileUpload, createFileUploadPartUrls, completeFileUpload, abortFileUpload.
sim files get
Download a file’s content to stdout or a local file
Arguments
Options
API request and response schemas: downloadFile.
sim files ls
List file resources and child folders together
Arguments
Options
API request and response schemas: listFiles, listFileFolders.
sim files mkdir
Create a file directory at a path
Arguments
API request and response schemas: createFileFolder.
sim knowledge
Manage knowledge bases, indexed documents, search, tags, and connector syncs.
Also spelled sim kb.
sim knowledge from-workspace-files create
Index files the workspace already stores (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: addWorkspaceFilesToKnowledgeBase.
sim knowledge tags save
Declare the tag definitions a knowledge base needs (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: bulkSaveKnowledgeTagDefinitions.
sim knowledge tags create
Create tag (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: createKnowledgeTag.
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.
Arguments
Options
API request and response schemas: deleteKnowledgeTag.
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.
Arguments
Options
API request and response schemas: deleteKnowledgeTagDefinitions.
sim knowledge tags next-slot
Show which tag slot a create would take for a field type (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: getNextKnowledgeTagSlot.
sim knowledge tags list
List tags
Arguments
API request and response schemas: listKnowledgeTags.
sim knowledge tags usage
Show how many documents and chunks carry each tag (OAuth login or personal API key required)
Arguments
API request and response schemas: listKnowledgeTagUsage.
sim knowledge tags update
Update tag (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: updateKnowledgeTag.
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.
Arguments
Options
API request and response schemas: bulkUpdateKnowledgeChunks.
sim knowledge chunks create
Create chunk (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: createKnowledgeChunk.
sim knowledge chunks delete
Delete chunk (OAuth login or personal API key required)
This deletes the chunk and its embedding.
Arguments
Options
API request and response schemas: deleteKnowledgeChunk.
sim knowledge chunks get
Get chunk (OAuth login or personal API key required)
Arguments
API request and response schemas: getKnowledgeChunk.
sim knowledge chunks list
List chunks (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: listKnowledgeChunks.
sim knowledge chunks update
Update chunk (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: updateKnowledgeChunk.
sim knowledge documents batch-update
Enable or disable every matching document (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: bulkUpdateKnowledgeDocuments.
sim knowledge documents delete
Delete a document from a knowledge base
This deletes the document and its embeddings.
Arguments
Options
API request and response schemas: deleteKnowledgeDocument.
sim knowledge documents get
Get document
Arguments
API request and response schemas: getKnowledgeDocument.
sim knowledge documents list
List documents
Arguments
Options
API request and response schemas: listKnowledgeDocuments.
sim knowledge documents update
Update document (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: updateKnowledgeDocument.
sim knowledge documents upload
Upload a document to a knowledge base
Arguments
Options
API request and response schemas: createKnowledgeDocumentUpload, createKnowledgeDocumentUploadPartUrls, completeKnowledgeDocumentUpload, abortKnowledgeDocumentUpload.
sim knowledge imports cancel
Stop a running import
Arguments
API request and response schemas: cancelKnowledgeImport.
sim knowledge imports get
Get knowledge base import
Arguments
API request and response schemas: getKnowledgeImport.
sim knowledge create
Create knowledge base
Options
API request and response schemas: createKnowledgeBase.
sim knowledge connectors create
Create knowledge connector (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: createKnowledgeConnector.
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.
Arguments
Options
API request and response schemas: deleteKnowledgeConnector.
sim knowledge connectors get
Get knowledge connector (OAuth login or personal API key required)
Arguments
API request and response schemas: getKnowledgeConnector.
sim knowledge connectors documents list
List knowledge connector documents (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: listKnowledgeConnectorDocuments.
sim knowledge connectors documents update
Update knowledge connector documents (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: updateKnowledgeConnectorDocuments.
sim knowledge connectors list
List knowledge connectors (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: listKnowledgeConnectors.
sim knowledge connectors sync
Queue a knowledge connector synchronization (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: syncKnowledgeConnector.
sim knowledge connectors update
Update knowledge connector (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: updateKnowledgeConnector.
sim knowledge folders create
Create a knowledge folder at a path
Arguments
API request and response schemas: createKnowledgeFolder.
sim knowledge folders delete
Delete folder
This archives the knowledge folder and, when recursive, everything inside it.
Arguments
Options
API request and response schemas: deleteKnowledgeFolder.
sim knowledge folders list
List knowledge folders
Also available as sim knowledge folders ls.
Options
API request and response schemas: listKnowledgeFolders.
sim knowledge folders move
Rename or move a knowledge folder
Also available as sim knowledge folders mv.
Arguments
API request and response schemas: relocateKnowledgeFolder.
sim knowledge delete
Delete knowledge base
This archives the knowledge base and every document in it; restore with knowledge restore.
Arguments
Options
API request and response schemas: deleteKnowledgeBase.
sim knowledge get
Get knowledge base
Arguments
API request and response schemas: getKnowledgeBase.
sim knowledge list
List knowledge bases
Options
API request and response schemas: listKnowledgeBases.
sim knowledge restore
Restore an archived knowledge base
Arguments
API request and response schemas: restoreKnowledgeBase.
sim knowledge search
Search knowledge
Options
API request and response schemas: searchKnowledge.
sim knowledge update
Update knowledge base
Arguments
Options
API request and response schemas: updateKnowledgeBase.
sim knowledge mv
Move a knowledge base to a folder
Arguments
API request and response schemas: updateKnowledgeBase.
sim knowledge export
Export a knowledge base as a .simkb.zip bundle
Arguments
Options
API request and response schemas: exportKnowledgeBase.
sim knowledge import
Create a knowledge base from an exported .simkb.zip bundle
Arguments
Options
API request and response schemas: createKnowledgeImport, createKnowledgeImportPartUrls, completeKnowledgeImport, cancelKnowledgeImport, getKnowledgeImport.
sim knowledge ls
List knowledge resources and child folders together
Arguments
Options
API request and response schemas: listKnowledgeBases, listKnowledgeFolders.
sim knowledge mkdir
Create a knowledge directory at a path
Arguments
API request and response schemas: createKnowledgeFolder.
sim logs
Read run diagnostics, follow new runs, and summarize failures and latency.
Also spelled sim log.
sim logs get
Show run diagnostics
Arguments
Options
API request and response schemas: getLog.
sim logs stats
Summarize run counts, failures and latency over a window
Options
API request and response schemas: getLogStats.
sim logs list
List run logs, such as failed or errored runs, by workflow, trigger or time
Options
API request and response schemas: listLogs.
sim logs follow
Watch runs live as they arrive, printing each new run once
Options
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
API request and response schemas: listLogs.
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.
Also spelled sim mcp-server.
sim mcp-servers create
Create MCP server
Options
API request and response schemas: createMcpServer.
sim mcp-servers delete
Delete MCP server
This removes the MCP server and the tools it provides.
Arguments
Options
API request and response schemas: deleteMcpServer.
sim mcp-servers get
Get MCP server
Arguments
API request and response schemas: getMcpServer.
sim mcp-servers list
List MCP servers
Options
API request and response schemas: listMcpServers.
sim mcp-servers tools list
List MCP server tools (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: listMcpServerTools.
sim mcp-servers update
Update MCP server
Arguments
Options
API request and response schemas: updateMcpServer.
sim meta
Inspect API availability and the calling credential’s type and expiry.
sim meta status
Show API availability and the calling credential’s type and expiry
API request and response schemas: getMeta.
sim organizations
Manage organization membership, invitations, usage, access requests, and SSO.
sim organizations domains add
Add organization domain (OAuth login or personal API key required)
Options
API request and response schemas: addOrganizationDomain.
sim organizations domains list
List organization domains (OAuth login or personal API key required)
Options
API request and response schemas: listOrganizationDomains.
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.
Arguments
Options
API request and response schemas: removeOrganizationDomain.
sim organizations domains verify
Verify organization domain (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: verifyOrganizationDomain.
sim organizations access-requests cancel
Cancel organization access request (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: cancelOrganizationAccessRequest.
sim organizations access-requests create
Create organization access request (OAuth login or personal API key required)
Options
API request and response schemas: createOrganizationAccessRequest.
sim organizations access-requests discover
Discover organization access requests (OAuth login or personal API key required)
Options
API request and response schemas: discoverOrganizationAccessRequests.
sim organizations access-requests settings get
Get organization access request settings (OAuth login or personal API key required)
Options
API request and response schemas: getOrganizationAccessRequestSettings.
sim organizations access-requests settings update
Update organization access request settings (OAuth login or personal API key required)
Options
API request and response schemas: updateOrganizationAccessRequestSettings.
sim organizations access-requests mine
List my organization access requests (OAuth login or personal API key required)
Options
API request and response schemas: listMyOrganizationAccessRequests.
sim organizations access-requests list
List organization access requests (OAuth login or personal API key required)
Options
API request and response schemas: listOrganizationAccessRequests.
sim organizations access-requests preview
Preview organization access request (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: previewOrganizationAccessRequest.
sim organizations access-requests resolve
Resolve organization access request (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: resolveOrganizationAccessRequest.
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.
Arguments
Options
API request and response schemas: completeSourcePermissionImport.
sim organizations search sources permissions imports create
Create source permission import
Arguments
Options
API request and response schemas: createSourcePermissionImport.
sim organizations search sources permissions imports put-part
Upload source permission import part
Arguments
Options
API request and response schemas: putSourcePermissionImportPart.
sim organizations search sources permissions get
Get search source permission revision (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: getSearchSourcePermissions.
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.
Arguments
Options
API request and response schemas: replaceSearchSourcePermissions.
sim organizations search sources permissions upload
Replace source permissions from two CSV files, uploaded in bounded parts
Arguments
Options
API request and response schemas: createSourcePermissionImport, putSourcePermissionImportPart, completeSourcePermissionImport.
sim organizations search sources create
Create search source
Options
API request and response schemas: createSearchSource.
sim organizations search sources delete
Delete search source
This removes the source and its permission grants.
Arguments
Options
API request and response schemas: deleteSearchSource.
sim organizations search sources get
Get search source
Arguments
Options
API request and response schemas: getSearchSource.
sim organizations search sources list
List search sources
Options
API request and response schemas: listSearchSources.
sim organizations search sources prepare
Prepare search sources
Options
API request and response schemas: prepareSearchSources.
sim organizations search sources update
Update search source
This updates source settings and may replace its permission grants.
Arguments
Options
API request and response schemas: updateSearchSource.
sim organizations invitations create
Create organization invitation (OAuth login or personal API key required)
Options
API request and response schemas: createOrganizationInvitation.
sim organizations invitations get
Get organization invitation (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: getOrganizationInvitation.
sim organizations invitations list
List organization invitations (OAuth login or personal API key required)
Options
API request and response schemas: listOrganizationInvitations.
sim organizations invitations workspaces
List organization invitation workspaces (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: listOrganizationInvitationWorkspaces.
sim organizations invitations resend
Resend organization invitation (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: resendOrganizationInvitation.
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.
Arguments
Options
API request and response schemas: revokeOrganizationInvitation.
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.
Arguments
Options
API request and response schemas: deleteSsoProvider.
sim organizations sso providers get
Get SSO provider (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: getSsoProvider.
sim organizations sso providers list
List SSO providers (OAuth login or personal API key required)
Options
API request and response schemas: listSsoProviders.
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.
Options
API request and response schemas: saveSsoProvider.
sim organizations sso providers primary
Set primary SSO provider (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: setPrimarySsoProvider.
sim organizations sso policy get
Get SSO policy (OAuth login or personal API key required)
Options
API request and response schemas: getSsoPolicy.
sim organizations sso policy update
Update SSO policy (OAuth login or personal API key required)
Options
API request and response schemas: updateSsoPolicy.
sim organizations get
Get organization (OAuth login or personal API key required)
Arguments
API request and response schemas: getOrganization.
sim organizations members usage-limit get
Get organization member credit limit (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: getOrganizationMemberUsageLimit.
sim organizations members usage-limit update
Update organization member credit limit (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: updateOrganizationMemberUsageLimit.
sim organizations members list
List organization members (OAuth login or personal API key required)
Options
API request and response schemas: listOrganizationMembers.
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.
Arguments
Options
API request and response schemas: removeOrganizationMember.
sim organizations members update
Update organization member (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: updateOrganizationMember.
sim organizations usage breakdown
Get organization usage breakdown (OAuth login or personal API key required)
Options
API request and response schemas: getOrganizationUsageBreakdown.
sim organizations usage summary
Get organization usage summary (OAuth login or personal API key required)
Options
API request and response schemas: getOrganizationUsageSummary.
sim organizations usage events
List organization usage events (OAuth login or personal API key required)
Options
API request and response schemas: listOrganizationUsageEvents.
sim organizations list
List organizations (OAuth login or personal API key required)
Options
API request and response schemas: listOrganizations.
sim organizations workspaces
List organization workspaces (OAuth login or personal API key required)
Options
API request and response schemas: listOrganizationWorkspaces.
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
Add permission group member (OAuth login or personal API key required)
Options
API request and response schemas: addPermissionGroupMember.
sim permission-groups members batch-add
Bulk add permission group members (OAuth login or personal API key required)
Options
API request and response schemas: bulkAddPermissionGroupMembers.
sim permission-groups members list
List permission group members (OAuth login or personal API key required)
Options
API request and response schemas: listPermissionGroupMembers.
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.
Arguments
Options
API request and response schemas: removePermissionGroupMember.
sim permission-groups create
Create permission group (OAuth login or personal API key required)
Options
API request and response schemas: createPermissionGroup.
sim permission-groups delete
Delete permission group (OAuth login or personal API key required)
This permanently deletes the permission group and its member assignments.
Arguments
Options
API request and response schemas: deletePermissionGroup.
sim permission-groups get
Get permission group (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: getPermissionGroup.
sim permission-groups list
List permission groups (OAuth login or personal API key required)
Options
API request and response schemas: listPermissionGroups.
sim permission-groups update
Update permission group (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: updatePermissionGroup.
sim sandboxes
Manage reusable dependency sets for Function blocks.
Also spelled sim sandbox.
sim sandboxes create
Create sandbox (OAuth login or personal API key required)
Options
API request and response schemas: createSandbox.
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.
Arguments
Options
API request and response schemas: deleteSandbox.
sim sandboxes get
Get sandbox
Arguments
API request and response schemas: getSandbox.
sim sandboxes list
List sandboxes
Options
API request and response schemas: listSandboxes.
sim sandboxes update
Update sandbox (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: updateSandbox.
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
Show the timing and health of every schedule the workspace’s deployments run
Options
API request and response schemas: listWorkspaceSchedules.
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
Delete secret (OAuth login or personal API key required)
This deletes the secret; anything using it may stop working.
Arguments
Options
API request and response schemas: deleteSecret.
sim secrets list
List secrets (OAuth login or personal API key required)
Options
API request and response schemas: listSecrets.
sim secrets set
Create or replace a named secret, such as an API key or environment variable (OAuth login or personal API key required)
Arguments
Options
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.
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
Get selector option (OAuth login or personal API key required)
Options
API request and response schemas: getSelector.
sim selectors list
List selector options (OAuth login or personal API key required)
Options
API request and response schemas: listSelector.
sim skills
Create reusable agent instructions and manage their editors.
Also spelled sim skill.
sim skills create
Create skill (OAuth login or personal API key required)
Options
API request and response schemas: createSkill.
sim skills delete
Delete skill (OAuth login or personal API key required)
This deletes the skill.
Arguments
Options
API request and response schemas: deleteSkill.
sim skills get
Get skill
Arguments
API request and response schemas: getSkill.
sim skills editors create
Grant skill editor (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: grantSkillEditor.
sim skills editors list
List skill editors
Arguments
Options
API request and response schemas: listSkillEditors.
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.
Arguments
Options
API request and response schemas: revokeSkillEditor.
sim skills list
List skills
Options
API request and response schemas: listSkills.
sim skills update
Update skill (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: updateSkill.
sim tables
Manage tables, rows, schemas, views, enrichment runs, imports, and exports.
Also spelled sim table.
sim tables columns create
Add column
Arguments
Options
API request and response schemas: addTableColumn.
sim tables columns delete
Delete column
This deletes the column and its values in every row.
Arguments
Options
API request and response schemas: deleteTableColumn.
sim tables columns update
Update column
Arguments
Options
API request and response schemas: updateTableColumn.
sim tables groups create
Add workflow group
Arguments
Options
API request and response schemas: addWorkflowGroup.
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.
Arguments
Options
API request and response schemas: deleteWorkflowGroup.
sim tables groups list
List workflow groups
Arguments
API request and response schemas: listWorkflowGroups.
sim tables groups update
Update workflow group
Arguments
Options
API request and response schemas: updateWorkflowGroup.
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.
Options
API request and response schemas: bulkDeleteTables.
sim tables rows update-each
Apply a distinct patch to each listed row
Arguments
Options
API request and response schemas: bulkUpdateTableRows.
sim tables rows create
Create rows
Arguments
Options
API request and response schemas: createTableRows.
sim tables rows delete
Delete row
This deletes the row.
Arguments
Options
API request and response schemas: deleteTableRow.
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.
Arguments
Options
API request and response schemas: deleteTableRows.
sim tables rows get
Get row
Arguments
Options
API request and response schemas: getTableRow.
sim tables rows list
List rows
Arguments
Options
API request and response schemas: listTableRows.
sim tables rows query
Query rows with a filter and sort
Arguments
Options
API request and response schemas: queryRows.
sim tables rows count
Count rows matching a filter
Arguments
Options
API request and response schemas: queryRowsCount.
sim tables rows enrich
Run one row’s enrichment group
Arguments
API request and response schemas: runRowEnrichment.
sim tables rows search
Search cells for a value and return their coordinates
Arguments
Options
API request and response schemas: searchTableRows.
sim tables rows batch-update
Update every row matching a filter
This updates every matching row and cannot be undone.
Arguments
Options
API request and response schemas: updateRowsByFilter.
sim tables rows update
Update row
Arguments
Options
API request and response schemas: updateTableRow.
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.
Arguments
Options
API request and response schemas: cancelTableDispatch.
sim tables dispatches create
Start a column or enrichment run
Arguments
Options
API request and response schemas: createTableDispatch.
sim tables dispatches get
Get run dispatch
Arguments
API request and response schemas: getTableDispatch.
sim tables dispatches list
List run dispatches
Arguments
API request and response schemas: listTableDispatches.
sim tables exports cancel
Stop a running export
Arguments
API request and response schemas: cancelTableExport.
sim tables exports create
Create table export
Arguments
Options
API request and response schemas: createTableExport.
sim tables exports get
Get table export
Arguments
API request and response schemas: getTableExport.
sim tables exports download
Get the download URL for a finished export
Arguments
API request and response schemas: tableExportDownload.
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.
Arguments
Options
API request and response schemas: cancelTableImport.
sim tables imports get
Get table import
Arguments
API request and response schemas: getTableImport.
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.
Arguments
Options
API request and response schemas: cancelTableRuns.
sim tables create
Create table
Options
API request and response schemas: createTable.
sim tables folders create
Create a table folder at a path
Arguments
API request and response schemas: createTableFolder.
sim tables folders delete
Delete folder
This archives the table folder and, when recursive, everything inside it.
Arguments
Options
API request and response schemas: deleteTableFolder.
sim tables folders list
List table folders
Also available as sim tables folders ls.
Options
API request and response schemas: listTableFolders.
sim tables folders move
Rename or move a table folder
Also available as sim tables folders mv.
Arguments
API request and response schemas: relocateTableFolder.
sim tables folders restore
Restore an archived table folder
Arguments
API request and response schemas: restoreTableFolder.
sim tables views create
Create view
Arguments
Options
API request and response schemas: createTableView.
sim tables views delete
Delete view
This deletes the saved view and its filters.
Arguments
Options
API request and response schemas: deleteTableView.
sim tables views get
Get view
Arguments
API request and response schemas: getTableView.
sim tables views list
List views
Arguments
API request and response schemas: listTableViews.
sim tables views update
Update view
Arguments
Options
API request and response schemas: updateTableView.
sim tables delete
Delete table
This archives the table and all of its rows; restore with tables restore.
Arguments
Options
API request and response schemas: deleteTable.
sim tables enrichment get
Get row group run
Arguments
API request and response schemas: getRowEnrichment.
sim tables get
Get table
Arguments
API request and response schemas: getTable.
sim tables list
List tables
Options
API request and response schemas: listTables.
sim tables move
Move tables and folders
Options
API request and response schemas: moveTables.
sim tables restore
Restore an archived table
Arguments
API request and response schemas: restoreTable.
sim tables update
Update table
Arguments
Options
API request and response schemas: updateTable.
sim tables mv
Move a table to a folder
Arguments
API request and response schemas: updateTable.
sim tables upsert
Insert a row, or replace the one matching a unique column
Arguments
Options
API request and response schemas: upsertTableRow.
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.
Arguments
Options
API request and response schemas: createTableImport, createTableImportPartUrls, completeTableImport, cancelTableImport, getTableImport.
sim tables ls
List table resources and child folders together
Arguments
Options
API request and response schemas: listTables, listTableFolders.
sim tables mkdir
Create a table directory at a path
Arguments
API request and response schemas: createTableFolder.
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
Run one built-in tool and print what it produced (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: executeTool.
sim tools get
Get tool
Arguments
API request and response schemas: getTool.
sim tools list
List tools
Options
API request and response schemas: listTools.
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.
sim workflow-mcp-servers create
Create workflow MCP server (OAuth login or personal API key required)
Options
API request and response schemas: createWorkflowMcpServer.
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.
Arguments
Options
API request and response schemas: deleteWorkflowMcpServer.
sim workflow-mcp-servers tools create
Deploy workflow as MCP tool (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: deployWorkflowMcpTool.
sim workflow-mcp-servers tools list
List workflow MCP tools (OAuth login or personal API key required)
Arguments
API request and response schemas: listWorkflowMcpTools.
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.
Arguments
Options
API request and response schemas: undeployWorkflowMcpTool.
sim workflow-mcp-servers get
Get workflow MCP server (OAuth login or personal API key required)
Arguments
API request and response schemas: getWorkflowMcpServer.
sim workflow-mcp-servers list
List workflow MCP servers (OAuth login or personal API key required)
Options
API request and response schemas: listWorkflowMcpServers.
sim workflow-mcp-servers update
Update workflow MCP server (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: updateWorkflowMcpServer.
sim workflows
Build, deploy, run, and inspect workflows from the terminal.
Also spelled sim workflow.
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.
Arguments
Options
API request and response schemas: activateWorkflowVersion.
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.
Arguments
Options
API request and response schemas: applyWorkflowOperations.
sim workflows variables update
Update workflow variables
This applies the listed variable changes; variables omitted from the operations remain unchanged.
Arguments
Options
API request and response schemas: applyWorkflowVariables.
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.
Arguments
Options
API request and response schemas: cancelWorkflowRun.
sim workflows runs get
Show run status (requested outputs are included in JSON or YAML output)
Arguments
Options
API request and response schemas: getWorkflowRun.
sim workflows runs paused
List runs waiting on human input across the workspace
Options
API request and response schemas: listPausedRuns.
sim workflows runs list
List runs for a workflow
Options
API request and response schemas: listWorkflowRuns.
sim workflows runs resume
Resume a paused run (output is included in JSON or YAML output)
Arguments
Options
API request and response schemas: resumeWorkflow.
sim workflows runs wait
Wait until a run finishes or needs input
Arguments
Options
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.
sim workflows versions compare
Compare workflow versions
Arguments
Options
API request and response schemas: compareWorkflowVersions.
sim workflows versions get
Get workflow version
Arguments
API request and response schemas: getWorkflowVersion.
sim workflows versions list
List workflow versions
Arguments
Options
API request and response schemas: listWorkflowVersions.
sim workflows versions update
Update workflow version
Arguments
Options
API request and response schemas: updateWorkflowVersion.
sim workflows create
Create workflow
Options
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.
sim workflows folders create
Create a workflow folder at a path
Arguments
API request and response schemas: createWorkflowFolder.
sim workflows folders delete
Delete workflow folder
This archives the workflow folder and, when recursive, everything inside it.
Arguments
Options
API request and response schemas: deleteWorkflowFolder.
sim workflows folders list
List workflow folders
Also available as sim workflows folders ls.
Options
API request and response schemas: listWorkflowFolders.
sim workflows folders move
Rename or move a workflow folder
Also available as sim workflows folders mv.
Arguments
API request and response schemas: relocateWorkflowFolder.
sim workflows delete
Delete workflow
This archives the workflow and its run history; restore with workflows restore.
Arguments
Options
API request and response schemas: deleteWorkflow.
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.
Arguments
Options
API request and response schemas: deleteWorkflowChatDeployment.
sim workflows chat status
Show a workflow’s chat deployment (OAuth login or personal API key required)
Arguments
API request and response schemas: getWorkflowChatDeployment.
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.
Arguments
Options
API request and response schemas: replaceWorkflowChatDeployment.
sim workflows deploy
Deploy workflow (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: deployWorkflow.
sim workflows duplicate create
Duplicate workflow
Arguments
Options
API request and response schemas: duplicateWorkflow.
sim workflows run
Run a deployed workflow, or its saved draft
Arguments
Options
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.
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.
Arguments
Options
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.
sim workflows source catalog
Show the block catalog workflow source is checked against
Options
API request and response schemas: getSourceCatalog.
sim workflows source resources
List the tables, knowledge bases, credentials, workflows, skills, custom tools, MCP servers and env names source can name
API request and response schemas: getSourceResources.
sim workflows source get
Show a workflow’s draft as TypeScript source with its identity lock
Arguments
Options
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.
sim workflows source apply
Apply a workflow source directory to a workflow draft
Arguments
Options
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, deployWorkflow, getWorkflowDeployment, getSourceResources, executeWorkflow.
sim workflows source create
Create a workflow from a workflow source directory
Options
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, getSourceCatalog, getSourceResources, deployWorkflow, getWorkflowDeployment, executeWorkflow.
sim workflows source check
Compile and type-check a workflow source directory locally, without the server
Options
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
Show what changed locally and on the server since the directory was read
Options
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, getSourceResources.
sim workflows source diff
Show the content of the changes in a workflow source directory
Arguments
Options
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.
sim workflows source params
Print a builder's params and outputs from the cached block catalog (offline)
Arguments
Options
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
Print a block's declaration, edges and readers with line numbers (offline)
Arguments
Options
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
Get workflow
Arguments
API request and response schemas: getWorkflow.
sim workflows deployment status
Show a workflow’s current deployment
Arguments
API request and response schemas: getWorkflowDeployment.
sim workflows deployment update
Update workflow public API access (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: updateWorkflowPublicApi.
sim workflows outline
Show a workflow’s draft as a compact read-only outline
Arguments
API request and response schemas: getWorkflowOutline.
sim workflows state get
Get workflow state
Arguments
API request and response schemas: getWorkflowState.
sim workflows state replace
Replace workflow state (OAuth login or personal API key required)
This replaces the entire draft graph and cannot be undone.
Arguments
Options
API request and response schemas: replaceWorkflowState.
sim workflows import
Import workflow
Options
API request and response schemas: importWorkflow.
sim workflows list
List workflows
Options
API request and response schemas: listWorkflows.
sim workflows triggers list
Show the health of every trigger the live deployment serves
Arguments
API request and response schemas: listWorkflowTriggers.
sim workflows triggers update
Enable or disable one trigger of the live deployment
Arguments
Options
API request and response schemas: updateWorkflowTrigger.
sim workflows move
Move workflows
Options
API request and response schemas: moveWorkflows.
sim workflows import-preview
Preview workflow import
Options
API request and response schemas: previewWorkflowImport.
sim workflows restore
Restore an archived workflow
Arguments
API request and response schemas: restoreWorkflow.
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.
Arguments
Options
API request and response schemas: revertWorkflowVersion.
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.
Arguments
Options
API request and response schemas: rollbackWorkflow.
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.
Arguments
Options
API request and response schemas: undeployWorkflow.
sim workflows update
Update workflow
Arguments
Options
API request and response schemas: updateWorkflow.
sim workflows mv
Move a workflow to a folder
Arguments
API request and response schemas: updateWorkflow.
sim workflows ls
List workflow resources and child folders together
Arguments
Options
API request and response schemas: listWorkflows, listWorkflowFolders.
sim workflows mkdir
Create a workflow directory at a path
Arguments
API request and response schemas: createWorkflowFolder.
sim workspaces
Read workspace access and manage reviewed fork, push, and pull operations.
Also spelled sim workspace.
sim workspaces access-requests cancel
Cancel workspace access request (OAuth login or personal API key required)
Arguments
API request and response schemas: cancelWorkspaceAccessRequest.
sim workspaces access-requests create
Create workspace access request (OAuth login or personal API key required)
Options
API request and response schemas: createWorkspaceAccessRequest.
sim workspaces access-requests discover
Discover workspace access requests (OAuth login or personal API key required)
Options
API request and response schemas: discoverWorkspaceAccessRequests.
sim workspaces access-requests mine
List my workspace access requests (OAuth login or personal API key required)
Options
API request and response schemas: listMyWorkspaceAccessRequests.
sim workspaces invitations create
Create workspace invitations (OAuth login or personal API key required)
Options
API request and response schemas: createWorkspaceInvitations.
sim workspaces fork
Fork workspace (OAuth login or personal API key required)
Options
API request and response schemas: forkWorkspace.
sim workspaces get
Get workspace
API request and response schemas: getWorkspace.
sim workspaces fork-availability
Get workspace fork availability (OAuth login or personal API key required)
API request and response schemas: getWorkspaceForkAvailability.
sim workspaces lineage
Get workspace fork lineage (OAuth login or personal API key required)
API request and response schemas: getWorkspaceForkLineage.
sim workspaces mappings get
Get workspace fork mappings (OAuth login or personal API key required)
Options
API request and response schemas: getWorkspaceForkMappings.
sim workspaces mappings update
Update workspace fork mappings (OAuth login or personal API key required)
Options
API request and response schemas: updateWorkspaceForkMappings.
sim workspaces operations get
Get workspace operation
Arguments
API request and response schemas: getWorkspaceOperation.
sim workspaces operations list
List workspace operations
Options
API request and response schemas: listWorkspaceOperations.
sim workspaces operations wait
Wait for workspace copy and deployment readiness
Arguments
Options
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.
sim workspaces permission-config
Get workspace permission config (OAuth login or personal API key required)
API request and response schemas: getWorkspacePermissionConfig.
sim workspaces children
List workspace fork children (OAuth login or personal API key required)
Options
API request and response schemas: listWorkspaceForkChildren.
sim workspaces fork-resources
List workspace fork resources (OAuth login or personal API key required)
Options
API request and response schemas: listWorkspaceForkResources.
sim workspaces members list
List workspace members
Options
API request and response schemas: listWorkspaceMembers.
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.
Arguments
Options
API request and response schemas: removeWorkspaceMember.
sim workspaces members update
Update workspace member (OAuth login or personal API key required)
Arguments
Options
API request and response schemas: updateWorkspaceMember.
sim workspaces list
List workspaces
Options
API request and response schemas: listWorkspaces.
sim workspaces fork-preview
Preview workspace fork (OAuth login or personal API key required)
Options
API request and response schemas: previewWorkspaceFork.
sim workspaces pull-preview
Preview workspace pull (OAuth login or personal API key required)
Options
API request and response schemas: previewWorkspacePull.
sim workspaces push-preview
Preview workspace push (OAuth login or personal API key required)
Options
API request and response schemas: previewWorkspacePush.
sim workspaces pull
Pull workspace (OAuth login or personal API key required)
This replaces target workflows and may archive targets whose sources were deleted.
Options
API request and response schemas: pullWorkspace.
sim workspaces push
Push workspace (OAuth login or personal API key required)
This replaces target workflows and may archive targets whose sources were deleted.
Options
API request and response schemas: pushWorkspace.
sim workspaces fork-rollback
Rollback workspace fork (OAuth login or personal API key required)
This restores the latest sync using its prior deployed versions.
Options
API request and response schemas: rollbackWorkspaceFork.
sim workspaces unlink
Unlink workspace fork (OAuth login or personal API key required)
This removes the fork relationship and its persisted mappings.
Options
API request and response schemas: unlinkWorkspaceFork.
sim workspaces update
Update workspace (OAuth login or personal API key required)
Options
API request and response schemas: updateWorkspace.
sim workspaces sync-exclusions
Update workspace fork exclusions (OAuth login or personal API key required)
Options
API request and response schemas: updateWorkspaceForkExclusions.
sim workspaces source get
Write a workspace as a source directory
Options
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, getSourceCatalog, getSourceResources, downloadFile, downloadKnowledgeDocument.
sim workspaces source apply
Apply a workspace source directory
Options
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, findMissingWorkspaceSourceBlobs, stageWorkspaceSourceBlobs, getWorkspaceSource, getSourceCatalog, getWorkflowDeployment, executeWorkflow.
sim workspaces source check
Compile and type-check every workflow of a workspace source directory locally, without the server
Options
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.
sim workspaces source status
Show what changed locally and on the server since the directory was read
Options
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.
sim workspaces source diff
Show the content of the changes in a workspace source directory
Arguments
Options
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.