# Forest Admin CLI commands

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

You've seen in the previous section how [developing on Forest Admin](/developer-guide-agents-python/deploying-to-production/development-workflow.md) leverages our powerful **Forest Admin CLI** to manage your UI changes.

#### Installing the Forest Admin CLI

To install the Forest Admin CLI, run the following command in your terminal:

```
npm install -g forest-cli
```

For further details on the package, check out [this page](https://www.npmjs.com/package/forest-cli).

#### Using the Forest Admin CLI

In the following pages, we'll cover in details the most important commands available with Forest Admin CLI, from introduction to advanced usage. Here are the main commands available:

* [login](/developer-guide-agents-python/deploying-to-production/forest-cli-commands/login.md)
* [init](/developer-guide-agents-python/deploying-to-production/forest-cli-commands/init.md)
* [branch](/developer-guide-agents-python/deploying-to-production/forest-cli-commands/branch.md)
* [switch](/developer-guide-agents-python/deploying-to-production/forest-cli-commands/switch.md)
* [set-origin](/developer-guide-agents-python/deploying-to-production/forest-cli-commands/set-origin.md)
* [push](/developer-guide-agents-python/deploying-to-production/forest-cli-commands/push.md)
* [environments:create](/developer-guide-agents-python/deploying-to-production/forest-cli-commands/environments-create.md)
* [environments:reset](/developer-guide-agents-python/deploying-to-production/forest-cli-commands/environments-reset.md)
* [deploy](/developer-guide-agents-python/deploying-to-production/forest-cli-commands/deploy.md)
* projects
* schema
* help
* user
* logout

Some additional commands might be added in the future. In the meantime, those should be largely sufficient to manage your development workflow.

{% hint style="info" %}
Be aware that almost all commands take the `FOREST_ENV_SECRET` env variable, provided on the command or inside your *.env* file, to know in which environment the command will apply.
{% 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.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.
