# Forest Admin CLI commands

{% hint style="success" %}
This is the official documentation of the `@forestadmin/agent` Node.js agent.
{% endhint %}

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 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](https://docs.forestadmin.com/developer-guide-agents-nodejs/deploying-to-production/forest-cli-commands/login)
* [init](https://docs.forestadmin.com/developer-guide-agents-nodejs/deploying-to-production/forest-cli-commands/init)
* [branch](https://docs.forestadmin.com/developer-guide-agents-nodejs/deploying-to-production/forest-cli-commands/branch)
* [switch](https://docs.forestadmin.com/developer-guide-agents-nodejs/deploying-to-production/forest-cli-commands/switch)
* [set-origin](https://docs.forestadmin.com/developer-guide-agents-nodejs/deploying-to-production/forest-cli-commands/set-origin)
* [push](https://docs.forestadmin.com/developer-guide-agents-nodejs/deploying-to-production/forest-cli-commands/push)
* [environments:create](https://docs.forestadmin.com/developer-guide-agents-nodejs/deploying-to-production/forest-cli-commands/environments-create)
* [environments:reset](https://docs.forestadmin.com/developer-guide-agents-nodejs/deploying-to-production/forest-cli-commands/environments-reset)
* [deploy](https://docs.forestadmin.com/developer-guide-agents-nodejs/deploying-to-production/forest-cli-commands/deploy)
* 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 %}
