# kindgi sign-in

> The workspace's sign-in settings: whether signing in takes a second factor, and the email domains people may join from

## `kindgi sign-in`

**Synopsis**

```sh signature
kindgi sign-in <command>
```

The workspace's sign-in settings: whether signing in takes a second factor, and the email domains people may join from.

**Commands**

| Command                                                                                                              | Description                                                                                                                                            |
| -------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [`kindgi sign-in settings`](https://docs.kindgi.com/v0.8.0/reference/cli/sign-in.md#kindgi-sign-in-settings)         | The workspace's sign-in settings; `--require-second-factor=on` makes signing in take a second factor (an authenticator app), `off` stops requiring it. |
| [`kindgi sign-in join-domains`](https://docs.kindgi.com/v0.8.0/reference/cli/sign-in.md#kindgi-sign-in-join-domains) | The email domains people may join the workspace from.                                                                                                  |

**See also**

- [People, API keys and service accounts](https://docs.kindgi.com/v0.8.0/deploy/people-and-keys.md)
- [Turn on sign-in](https://docs.kindgi.com/v0.8.0/deploy/self-hosted/sign-in.md)

### `kindgi sign-in settings`

**Synopsis**

```sh signature
kindgi sign-in settings [--require-second-factor=on|off]
```

The workspace's sign-in settings; `--require-second-factor=on` makes signing in take a second factor (an authenticator app), `off` stops requiring it. Once on, a session made without one ends at its next request, and signing in to the console with an API token is refused. Signing in through the workspace's own identity provider is exempt: it owns MFA there. A site's people sign in through the site, which owns their second factor, so the setting doesn't apply to them. API keys aren't covered: keep them to service accounts, and rotate them. Turning it on when signed in takes a sign-in made with your own second factor. Tenant admins only.

**Options**

| Option                            | Default                          | Description                                              |
| --------------------------------- | -------------------------------- | -------------------------------------------------------- |
| `--require-second-factor <value>` | unchanged: the settings are read | `on` or `off`: whether signing in takes a second factor. |

Every command also takes the [global flags](https://docs.kindgi.com/v0.8.0/reference/cli.md#global-flags).

**Examples**

See whether signing in takes a second factor.

```sh
kindgi sign-in settings
```

Require a second factor at sign-in (set up your own first).

```sh
kindgi sign-in settings --require-second-factor=on
```

From [Turn on sign-in](https://docs.kindgi.com/v0.8.0/deploy/self-hosted/sign-in.md):

```sh
npx --yes @kindgi/cli@0.8 sign-in settings --require-second-factor=on
```

**See also**

- [Turn on sign-in](https://docs.kindgi.com/v0.8.0/deploy/self-hosted/sign-in.md)
- [`kindgi sign-in`](https://docs.kindgi.com/v0.8.0/reference/cli/sign-in.md#kindgi-sign-in)

### `kindgi sign-in join-domains`

**Synopsis**

```sh signature
kindgi sign-in join-domains <command>
```

The email domains people may join the workspace from.

**Commands**

| Command                                                                                                                            | Description                                                                                                                                                                                                                       |
| ---------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [`kindgi sign-in join-domains list`](https://docs.kindgi.com/v0.8.0/reference/cli/sign-in.md#kindgi-sign-in-join-domains-list)     | The email domains people may join this workspace from, the first allowed first, with what a joiner gets.                                                                                                                          |
| [`kindgi sign-in join-domains allow`](https://docs.kindgi.com/v0.8.0/reference/cli/sign-in.md#kindgi-sign-in-join-domains-allow)   | Let people at an email domain join: someone with a verified mailbox there (a Google Workspace account, a Microsoft work account, or the emailed link; never GitHub) whom the workspace doesn't have yet is offered it at sign-in. |
| [`kindgi sign-in join-domains remove`](https://docs.kindgi.com/v0.8.0/reference/cli/sign-in.md#kindgi-sign-in-join-domains-remove) | Stop letting people at an email domain join.                                                                                                                                                                                      |

**See also**

- [People, API keys and service accounts](https://docs.kindgi.com/v0.8.0/deploy/people-and-keys.md)
- [Turn on sign-in](https://docs.kindgi.com/v0.8.0/deploy/self-hosted/sign-in.md)
- [`kindgi sign-in`](https://docs.kindgi.com/v0.8.0/reference/cli/sign-in.md#kindgi-sign-in)

#### `kindgi sign-in join-domains list`

**Synopsis**

```sh signature
kindgi sign-in join-domains list
```

The email domains people may join this workspace from, the first allowed first, with what a joiner gets. Anyone in the workspace may list them.

**Options**

Every command also takes the [global flags](https://docs.kindgi.com/v0.8.0/reference/cli.md#global-flags).

**Examples**

See which email domains people may join from, and what a joiner gets.

```sh
kindgi sign-in join-domains list --table
```

From [People, API keys and service accounts](https://docs.kindgi.com/v0.8.0/deploy/people-and-keys.md):

```sh
pnpm exec kindgi sign-in join-domains list --table
```

**See also**

- [People, API keys and service accounts](https://docs.kindgi.com/v0.8.0/deploy/people-and-keys.md)
- [`kindgi sign-in join-domains`](https://docs.kindgi.com/v0.8.0/reference/cli/sign-in.md#kindgi-sign-in-join-domains)

#### `kindgi sign-in join-domains allow`

**Synopsis**

```sh signature
kindgi sign-in join-domains allow <domain> [--role=viewer|runner|none]
```

Let people at an email domain join: someone with a verified mailbox there (a Google Workspace account, a Microsoft work account, or the emailed link; never GitHub) whom the workspace doesn't have yet is offered it at sign-in. Exactly that domain, not its subdomains; never a public mailbox domain like gmail.com. From the CLI it takes the deployment operator's key (one holding `kindgi:system`, on a runtime serving one tenant): an API key proves no email, so a tenant admin allows their own domain from the console's Sign-in page instead.

**Options**

| Option           | Default  | Description                                                                                                                    |
| ---------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------ |
| `--role <value>` | `viewer` | What a joiner gets: `viewer` or `runner` on the default project, or `none`, a member with no project role. Never tenant admin. |

Every command also takes the [global flags](https://docs.kindgi.com/v0.8.0/reference/cli.md#global-flags).

**Examples**

Let people at acme.com join as runner, signed in with the operator's key.

```sh
kindgi sign-in join-domains allow acme.com --role=runner
```

From [People, API keys and service accounts](https://docs.kindgi.com/v0.8.0/deploy/people-and-keys.md):

```sh
pnpm exec kindgi sign-in join-domains allow acme.com --role=runner
```

**See also**

- [People, API keys and service accounts](https://docs.kindgi.com/v0.8.0/deploy/people-and-keys.md)
- [`kindgi sign-in join-domains`](https://docs.kindgi.com/v0.8.0/reference/cli/sign-in.md#kindgi-sign-in-join-domains)

#### `kindgi sign-in join-domains remove`

**Synopsis**

```sh signature
kindgi sign-in join-domains remove <domain>
```

Stop letting people at an email domain join. New joins stop; the people who joined stay. Any tenant admin.

**Options**

Every command also takes the [global flags](https://docs.kindgi.com/v0.8.0/reference/cli.md#global-flags).

**Examples**

Stop new joins from acme.com; the people who joined stay.

```sh
kindgi sign-in join-domains remove acme.com
```

From [People, API keys and service accounts](https://docs.kindgi.com/v0.8.0/deploy/people-and-keys.md):

```sh
pnpm exec kindgi sign-in join-domains remove acme.com
```

**See also**

- [People, API keys and service accounts](https://docs.kindgi.com/v0.8.0/deploy/people-and-keys.md)
- [`kindgi sign-in join-domains`](https://docs.kindgi.com/v0.8.0/reference/cli/sign-in.md#kindgi-sign-in-join-domains)
