# lumen login

> Sign in through your browser, store the token, and make the context (server and workspace) current.

Source: https://docs.go-lumen.ai/de/reference/cli/login

Sign in through your browser, store the token, and make the context (server and workspace) current. Without flags it signs in to the built-in server and takes your workspace from the login. Other installs are configured once with flags, which the context then remembers.

You rarely need this command: any other command signs in by itself when it has to.

## Usage

```text
lumen login [flags]
```

## Examples

```sh
lumen login
lumen login --server https://api.lumen.example \
  --issuer https://login.lumen.example/ --client-id <id> --audience https://api.lumen.example
```

## Flags

| Flag | Short | Value | Description |
| --- | --- | --- | --- |
| `--audience` |  | string | audience to request the access token for |
| `--certificate-authority` |  | string | PEM file of a CA to trust for the server |
| `--client-id` |  | string | OIDC client ID of the lumen CLI at the issuer |
| `--insecure-skip-tls-verify` |  |  | do not verify the server's certificate (testing only) |
| `--issuer` |  | string | OIDC issuer URL of the install's identity provider |
| `--scopes` |  | strings | OIDC scopes (default openid,profile,email,offline\_access) |
| `--static-token` |  | string | store this bearer token instead of logging in (CI, service accounts) |
| `--use-id-token` |  |  | send the ID token instead of the access token |

## Global flags

Every command takes the [global flags](https://docs.go-lumen.ai/de/reference/cli.md#global-flags).
