> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ankra.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# ankra org

> Manage organisations

## ankra org

Commands to list, switch, create, and manage organisations.

## ankra org create

Create a new organisation

```bash theme={null}
ankra org create <name> [flags]
```

**Flags**

| Flag             | Default | Description                                           |
| ---------------- | ------- | ----------------------------------------------------- |
| `--country`      |         | Country code for the organisation                     |
| `-o`, `--output` |         | Output format: json or yaml (default: human-readable) |

## ankra org current

Show the currently selected organisation

```bash theme={null}
ankra org current [flags]
```

**Flags**

| Flag             | Default | Description                                           |
| ---------------- | ------- | ----------------------------------------------------- |
| `-o`, `--output` |         | Output format: json or yaml (default: human-readable) |

## ankra org invite

Invite a user by email to the current organisation.

Valid roles: member (default), admin, read-only

Examples:
ankra org invite [user@example.com](mailto:user@example.com)
ankra org invite [user@example.com](mailto:user@example.com) --role admin

```bash theme={null}
ankra org invite <email> [flags]
```

**Flags**

| Flag     | Default  | Description                                          |
| -------- | -------- | ---------------------------------------------------- |
| `--role` | `member` | Role for the invited user (member, admin, read-only) |

## ankra org list

List all organisations you belong to

```bash theme={null}
ankra org list [flags]
```

**Flags**

| Flag             | Default | Description                                           |
| ---------------- | ------- | ----------------------------------------------------- |
| `-o`, `--output` |         | Output format: json or yaml (default: human-readable) |

## ankra org members

List members of an organisation

```bash theme={null}
ankra org members [org_id] [flags]
```

**Flags**

| Flag             | Default | Description                                           |
| ---------------- | ------- | ----------------------------------------------------- |
| `-o`, `--output` |         | Output format: json or yaml (default: human-readable) |

## ankra org remove

Remove a user from the current organisation

```bash theme={null}
ankra org remove <user_id> [flags]
```

**Flags**

| Flag            | Default | Description              |
| --------------- | ------- | ------------------------ |
| `-f`, `--force` | `false` | Skip confirmation prompt |

## ankra org switch

Switch to a different organisation by slug, name, or ID

```bash theme={null}
ankra org switch <organisation>
```

## ankra org variables

Manage organisation-scoped variables that are available to every cluster
in the organisation as template substitutions in stack manifests and addon
values.

ankra org variables list
ankra org variables get DB\_HOST
ankra org variables set DB\_HOST db.prod.example.com --description "Primary database"
ankra org variables delete DB\_HOST

Variable resolution order at deploy time is stack > cluster > organisation; a
more specific scope overrides a less specific one.

## ankra org variables delete

Delete an organisation variable

```bash theme={null}
ankra org variables delete <name> [flags]
```

**Flags**

| Flag    | Default | Description                  |
| ------- | ------- | ---------------------------- |
| `--yes` | `false` | Skip the confirmation prompt |

## ankra org variables get

Get a single organisation variable

```bash theme={null}
ankra org variables get <name> [flags]
```

**Flags**

| Flag             | Default | Description                                           |
| ---------------- | ------- | ----------------------------------------------------- |
| `-o`, `--output` |         | Output format: json or yaml (default: human-readable) |

## ankra org variables list

List all organisation variables

```bash theme={null}
ankra org variables list [flags]
```

**Flags**

| Flag             | Default | Description                                           |
| ---------------- | ------- | ----------------------------------------------------- |
| `-o`, `--output` |         | Output format: json or yaml (default: human-readable) |

## ankra org variables set

Create or update an organisation variable (upsert). If the variable
does not exist it is created; otherwise its value (and description, when
supplied) is updated.

The value can also be read from stdin by passing "-":

echo "secret-token" | ankra org variables set API\_TOKEN -

```bash theme={null}
ankra org variables set <name> <value> [flags]
```

**Flags**

| Flag            | Default | Description                         |
| --------------- | ------- | ----------------------------------- |
| `--description` |         | Optional human-readable description |
