# Forest CLI commands

You've seen in the previous section how [developing on Forest Admin](https://github.com/ForestAdmin/developer-guide/blob/main/build/nodejs/deployment/README.md) leverages our powerful **Forest CLI** to manage your UI changes.

### Installing Forest CLI

To install Forest 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 Forest CLI

In the following pages, we'll cover all available Forest CLI commands in detail, from introduction to advanced usage. For now, there are 6 commands:

* [login](/developer-guide-agents-nodejs/~/revisions/RIg7Xt85Z2LyzUxn7V93/deploying-to-production/forest-cli-commands/login.md)
* [init](/developer-guide-agents-nodejs/~/revisions/RIg7Xt85Z2LyzUxn7V93/deploying-to-production/forest-cli-commands/init.md)
* [branch](/developer-guide-agents-nodejs/~/revisions/RIg7Xt85Z2LyzUxn7V93/deploying-to-production/forest-cli-commands/branch.md)
* [switch](/developer-guide-agents-nodejs/~/revisions/RIg7Xt85Z2LyzUxn7V93/deploying-to-production/forest-cli-commands/switch.md)
* [set-origin](/developer-guide-agents-nodejs/~/revisions/RIg7Xt85Z2LyzUxn7V93/deploying-to-production/forest-cli-commands/set-origin.md)
* [push](/developer-guide-agents-nodejs/~/revisions/RIg7Xt85Z2LyzUxn7V93/deploying-to-production/forest-cli-commands/push.md)
* [environments:reset](/developer-guide-agents-nodejs/~/revisions/RIg7Xt85Z2LyzUxn7V93/deploying-to-production/forest-cli-commands/environments-reset.md)
* [deploy](/developer-guide-agents-nodejs/~/revisions/RIg7Xt85Z2LyzUxn7V93/deploying-to-production/forest-cli-commands/deploy.md)

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 is run.
{% 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-nodejs/~/revisions/RIg7Xt85Z2LyzUxn7V93/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.
