# org

> Your organizations (Personal first, then your companies; switch without signing in again) and the organization's settings: how long chat messages are kept and how artifacts may be shared outside it; owners and admins change them. `nexus orgs` is the same command.

Your organizations (Personal first, then your companies; switch without signing in again) and the organization's settings: how long chat messages are kept and how artifacts may be shared outside it; owners and admins change them. `nexus orgs` is the same command.

## nexus org list

```sh
nexus org list
```

Your organizations: Personal first, then your companies; the one you are signed in to is marked.

## nexus org waiting

```sh
nexus org waiting
```

Your pending Gateway approvals and waiting cloud sessions, by organization.

## nexus org switch

```sh
nexus org switch <org>
```

Sign in to another of your organizations (its slug, or personal): a new token, saved in your config.

```sh
nexus org switch personal
nexus org switch acme --json
```

## nexus org settings

```sh
nexus org settings [list]
nexus org settings get <key>
nexus org settings set <key> <value>
```

Your organization's settings: each value and its default.

- `nexus org settings get <key>`: One setting's value.
- `nexus org settings set <key> <value>`: Change a setting (owners and admins): a JSON value or a word; null restores the default.

```sh
nexus org settings
nexus org settings set artifacts.external named
nexus org settings set artifacts.external.domains '{"allow":["partner.example"],"deny":[]}'
nexus org settings set chatRetentionDays null
nexus org settings set agentSubscriptions false
nexus org settings set webSearch.engine borrowed
```

## nexus org domains

```sh
nexus org domains [list]
nexus org domains add <domain> [--enrollment M] [--dry-run]
nexus org domains remove <domain> [--dry-run]
```

Your organization's verified email domains and how people on them join (owners and admins).

- `nexus org domains add <domain> [--enrollment M] [--dry-run]`: Add a domain you have a verified email on; the sign-in provider invites everyone with a verified email there.
- `nexus org domains remove <domain> [--dry-run]`: Remove a domain (its name or id); the sign-in provider stops inviting people on it, and who joined stays.

| Option | Meaning |
| --- | --- |
| `--enrollment <M>` | How people with a verified email on the domain join: automatic_invitation (the default), automatic_suggestion or manual_invitation |
| `--dry-run` | Show what would change, change nothing |

## nexus org subscription

```sh
nexus org subscription [show]
nexus org subscription set [--payer U] [--billing-contact U] [--effective-at T] [--dry-run]
```

Your organization's subscription: plan, status, payer, billing contact and paid term.

- `nexus org subscription set [--payer U] [--billing-contact U] [--effective-at T] [--dry-run]`: Name the payer and the billing contact (owners): a member's id or email, none clears it; Billing sets the plan, term and status.

| Option | Meaning |
| --- | --- |
| `--payer <U>` | The member who pays: their email or user id (none clears it) |
| `--billing-contact <U>` | The member who receives billing mail: their email or user id (none clears it) |
| `--effective-at <T>` | When the change took effect, an ISO 8601 time (default now; never in the future) |
| `--dry-run` | Show what would change, change nothing |

```sh
nexus org subscription
nexus org subscription set --payer ada@acme.example --dry-run
```
