---
title: "af auth"
description: "Sign in through your organization's identity provider"
---

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

# af auth

<!-- Generated by tools/gen-reference.mjs from `af auth --help`. Change the help text in crates/atoll-forge-cli/src/main.rs, then run `npm run gen:reference`. -->

Without --token, `af` prints a web address and a one-time code to enter there, in any browser. The sign-in is saved in the credential file and used by later commands until it expires.

## Usage

```text
af auth [OPTIONS]
```

## Options

- `--token <TOKEN>`

  OpenID Connect ID token obtained some other way, to sign in without a browser

  Environment variable: `AF_TOKEN`

- `--client-secret <CLIENT_SECRET>`

  Client secret for the identity provider, if it requires one for command-line apps

  Environment variable: `AF_OIDC_CLIENT_SECRET`

## Global options

Every `af` command also takes the [global options](https://docs.forge.workreef.dev/reference/af/#global-options).

## Examples

```sh
af auth
```

Source: https://docs.forge.workreef.dev/reference/af/auth/index.mdx
