# Sign in to your organization

> For the complete documentation index, see [llms.txt](https://docs-stg.ringleader.dev/llms.txt).


> Sign in to your organization's Ringleader console from the application or the command line, and choose the namespace your commands use by default.


Sign in to your organization's Ringleader console from the application or the command line, and
choose the namespace your commands use by default. You want this when you join an
organization, or when your session has ended and Ringleader asks you to sign in again.

## Prerequisites

- [Install Ringleader](https://docs-stg.ringleader.dev/install/).
- The address of your organization's Ringleader console, if it isn't `https://app.ringleader.dev`.
- The examples use a namespace named `team-a`. Replace it with one of yours.

## Sign in

You sign in once per Ringleader console. A device signs in to one console at a time, so
signing in to a different one is refused until you run `rl auth logout`.


### Use the application


1. In the account menu at the bottom of the sidebar, click **Account**.
2. On the **Sign in to Ringleader Console** card, start the device-code sign-in, and follow
   it in your browser. The **Account** page then shows the console you are signed in to,
   with your user.

The application offers one console. To sign in to another, use the command line.



### Use the command line


1. Run the login. With no address, it signs in to `https://app.ringleader.dev`:

   ```bash
   rl auth login
   ```

   For another console, give its address:

   ```bash
   rl auth login https://ringleader.example.com
   ```

2. Follow the device-code sign-in in your browser. The command stores your session when you
   finish.






## Check your sign-in

Run `rl auth status`. It shows who you are, the console you are signed in to, and
whether the daemon is running. It answers even when the console can't be reached.

```bash
rl auth status
```

To also see what you are allowed to do, add `--show-access`.

The application's **Account** page shows who you are and the console you are signed in to. The check is otherwise command-line only.

## Choose your default namespace

A command that doesn't name a namespace with `-n` uses the one pinned on this device, then
the default your sign-in assigned, then `local`. Pin one to stop typing `-n`.

1. Pin the namespace:

   ```bash
   rl namespace use team-a
   ```

   The command prints `namespace pinned to "team-a"`.

2. Optional: Check what bare commands target, and why:

   ```bash
   rl namespace use
   ```

   The output is `team-a (pinned on this device)`.

To drop the pin and follow your sign-in's default again, run `rl namespace use --unset`. Pinning a namespace is command-line only.

## Troubleshoot

- **If `rl auth status` says `session expired`,** sign in again with the command it names, such
  as `rl auth login https://cp.example.com`. A session lasts 90 days from the time you sign in,
  and signing in again is the only fix. The application shows a **Session expired** notice
  with a **Sign in again** button.
- **If `rl auth login` is refused because you are signed in to a different console,**
  run `rl auth logout`, then sign in again.

## Next steps

- [Authentication commands](https://docs-stg.ringleader.dev/reference/cli/commands/authentication/) lists every `rl auth` command and flag,
  including sign-in for a script or a CI job.
- [Desktop application](https://docs-stg.ringleader.dev/reference/desktop-application/#account) describes the **Account**
  page.
- [Complete Ringleader setup](https://docs-stg.ringleader.dev/guides/complete-ringleader-setup/) walks through the
  application's first-run screens, which include signing in.

