# login

{% hint style="success" %}
This is the official documentation of the `forestadmin-agent-django` and `forestadmin-agent-flask` Python agents.
{% endhint %}

The `forest login` command allows you to authenticate using:

* your Forest Admin email address
* your Forest Admin password

```
$ forest login --help
Sign in with an existing account.

USAGE
  $ forest login

OPTIONS
  -P, --password=password  Your Forest Admin account password (ignored if token is set).
  -e, --email=email        Your Forest Admin account email.
  -t, --token=token        Your Forest Admin account token (replaces password).
```

The `--token` option refers to **application tokens** that you can create from your *Account settings*, accessible from the top right dropdown.

{% hint style="info" %}
Note that you can use `forest logout` to log out.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.forestadmin.com/developer-guide-agents-python/deploying-to-production/forest-cli-commands/login.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
