# login

Learn how to authenticate your user.

This command authenticates your session, allowing the CLI to manage resources on your behalf. Your session remains valid for 7 days and is automatically renewed each time you run a CLI command.

Currently, the only supported method is [credentials](/reference/cli/commands/login-credentials).

## Usage

This command has the following syntax:

```sh
croct login
```

## Example

Authenticate your session:

```sh
croct login
```

## Options

This command only accepts [global options](../global-options).

## Explore

- [Login credentials](/reference/cli/commands/login-credentials): Learn how to authenticate using email and password.
- [Logout](/reference/cli/commands/logout): Learn how to terminate your current session.
