Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ jobs:
github.event_name == 'push' &&
(github.ref == 'refs/heads/main' || github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/dev')
runs-on: ${{ (vars.CI_PROVIDER == '' || vars.CI_PROVIDER == 'blacksmith') && 'blacksmith-4vcpu-ubuntu-2404' || 'ubuntu-latest' }}
timeout-minutes: 15
timeout-minutes: 30
outputs:
version: ${{ steps.deploy.outputs.deploymentVersion }}
environment: ${{ steps.target.outputs.environment }}
Expand Down Expand Up @@ -289,7 +289,7 @@ jobs:
if [ -n "$TRIGGER_BRANCH" ]; then
TARGET_ARGS+=(--branch "$TRIGGER_BRANCH")
fi
bunx trigger.dev@4.5.12 deploy "${TARGET_ARGS[@]}" --skip-promotion
bunx trigger.dev@4.5.16 deploy "${TARGET_ARGS[@]}" --skip-promotion

- name: Validate deployment version output
env:
Expand Down Expand Up @@ -643,7 +643,7 @@ jobs:
if [ -n "$TRIGGER_BRANCH" ]; then
TARGET_ARGS+=(--branch "$TRIGGER_BRANCH")
fi
bunx trigger.dev@4.5.12 promote "$VERSION" "${TARGET_ARGS[@]}"
bunx trigger.dev@4.5.16 promote "$VERSION" "${TARGET_ARGS[@]}"

# Build ARM64 images for GHCR (main branch only, runs in parallel with
# tests). Pushes only the immutable sha tag — latest-arm64/version-arm64
Expand Down
2 changes: 2 additions & 0 deletions apps/docs/content/docs/api-reference/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
"(generated)/files",
"(generated)/knowledge-bases",
"(generated)/workspaces",
"(generated)/organizations",
"(generated)/permission-groups",
"(generated)/workspace-sync",
"(generated)/mcp-servers",
"(generated)/skills",
Expand Down
2 changes: 2 additions & 0 deletions apps/docs/content/docs/cli/commands.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ These apply to every command, and may be written before or after it.
| [`sim logs`](/cli/logs) | Manage logs |
| [`sim mcp-servers`](/cli/mcp-servers) | Manage mcp servers |
| [`sim meta`](/cli/meta) | Manage meta |
| [`sim organizations`](/cli/organizations) | Manage organizations |
| [`sim permission-groups`](/cli/permission-groups) | Manage permission groups |
| [`sim sandboxes`](/cli/sandboxes) | Manage sandboxes |
| [`sim secrets`](/cli/secrets) | Manage secrets |
| [`sim selectors`](/cli/selectors) | Manage selectors |
Expand Down
2 changes: 2 additions & 0 deletions apps/docs/content/docs/cli/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
"logs",
"mcp-servers",
"meta",
"organizations",
"permission-groups",
"sandboxes",
"secrets",
"selectors",
Expand Down
278 changes: 278 additions & 0 deletions apps/docs/content/docs/cli/organizations.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,278 @@
---
title: Organizations
description: Manage organizations — every subcommand, argument, and flag
---

import { CommandTable } from '@/components/ui/command-table'

Every command below also accepts the [global options](/cli/commands#global-options).

## Create organization invitation

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

Create Organization Invitation (OAuth login or personal API key required)

**Options**

<CommandTable>

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

</CommandTable>

## Get organization invitation

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

Get Organization Invitation (OAuth login or personal API key required)

**Arguments**

<CommandTable>

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

</CommandTable>

**Options**

<CommandTable>

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

</CommandTable>

## List organization invitations

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

List Organization Invitations (OAuth login or personal API key required)

**Options**

<CommandTable>

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

</CommandTable>

## Resend organization invitation

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

Resend Organization Invitation (OAuth login or personal API key required)

**Arguments**

<CommandTable>

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

</CommandTable>

**Options**

<CommandTable>

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

</CommandTable>

## Revoke organization invitation

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

Revoke Organization Invitation (OAuth login or personal API key required)

**Arguments**

<CommandTable>

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

</CommandTable>

**Options**

<CommandTable>

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

</CommandTable>

## Get organization

```bash
sim organizations get <organizationId>
```

Get Organization (OAuth login or personal API key required)

**Arguments**

<CommandTable>

| Argument | Required | Description |
| --- | --- | --- |
| `organizationId` | Yes | Organization identifier. |

</CommandTable>

## List organization members

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

List Organization Members (OAuth login or personal API key required)

**Options**

<CommandTable>

| Option | Required | Description |
| --- | --- | --- |
| `--organization <value>` | Yes | Organization identifier. |
| `--search <value>` | No | Case-insensitive substring match against member name or email. |
| `--sort-by <value>` | No | Field used to sort the result. Sorting by `name` is case-sensitive and follows the storage collation, so do not rely on a case-insensitive order. Accepted values: `name`, `email`, `joinedAt`. |
| `--sort-order <value>` | No | Sort direction. Accepted values: `asc`, `desc`. |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `0`. |

</CommandTable>

## Remove organization member

```bash
sim organizations members remove <userId> [options]
```

Remove Organization Member (OAuth login or personal API key required)

**Arguments**

<CommandTable>

| Argument | Required | Description |
| --- | --- | --- |
| `userId` | Yes | User identifier of the organization member. |

</CommandTable>

**Options**

<CommandTable>

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

</CommandTable>

## Update organization member

```bash
sim organizations members update <userId> [options]
```

Update Organization Member (OAuth login or personal API key required)

**Arguments**

<CommandTable>

| Argument | Required | Description |
| --- | --- | --- |
| `userId` | Yes | User identifier of the organization member. |

</CommandTable>

**Options**

<CommandTable>

| Option | Required | Description |
| --- | --- | --- |
| `--organization <value>` | Yes | Organization identifier. |
| `--role <value>` | Yes | New organization role. Ownership transfers use a separate operation. Accepted values: `member`, `admin`. |

</CommandTable>

## List organizations

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

List Organizations (OAuth login or personal API key required)

**Options**

<CommandTable>

| Option | Required | Description |
| --- | --- | --- |
| `--search <value>` | No | Case-insensitive substring match against the organization name. |
| `--sort-by <value>` | No | Field used to sort the result. Sorting by `name` is case-sensitive and follows the storage collation, so do not rely on a case-insensitive order. Accepted values: `name`, `createdAt`. |
| `--sort-order <value>` | No | Sort direction. Accepted values: `asc`, `desc`. |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `0`. |

</CommandTable>

## List organization workspaces

```bash
sim organizations workspaces [options]
```

List Organization Workspaces (OAuth login or personal API key required)

**Options**

<CommandTable>

| Option | Required | Description |
| --- | --- | --- |
| `--organization <value>` | Yes | Organization identifier. |
| `--search <value>` | No | Case-insensitive substring match against the workspace name. |
| `--sort-by <value>` | No | Field used to sort the result. Sorting by `name` is case-sensitive and follows the storage collation, so do not rely on a case-insensitive order. Accepted values: `name`, `id`. |
| `--sort-order <value>` | No | Sort direction. Accepted values: `asc`, `desc`. |
| `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `0`. |

</CommandTable>
Loading
Loading