> ## Documentation Index
> Fetch the complete documentation index at: https://forest-chore-open-api.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Manage your Forest environments programmatically

For continuous integration and automatization, we have developed a [CLI](https://github.com/ForestAdmin/toolbelt) which makes it easy to manage your Forest environments.

This can be used for Q\&A and testing purposes.

#### Install

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

#### Commands

```
$ forest [command]
```

**General**

* `user` display the current logged in user.
* `login` sign in to your Forest account.
* `logout` sign out of your Forest account.
* `help [cmd]` display help for \[cmd].

**Projects**

Manage Forest projects.

* `projects` list your projects.
* `projects:get` get the configuration of a project.

**Environments**

Manage Forest environments.

* `environments` list your environments.
* `environments:get` get the configuration of an environment.
* `environments:create` create a new environment.
* `environments:delete` delete an environment.
* `environments:copy-layout` copy the layout from one environment to another.

#### Schema

Manage Forest schema.

`schema:apply` apply the current schema of your repository to the specified environment (using your `.forestadmin-schema.json` file).

<Info>
  This option is available only on [agents version >+ 3](https://app.gitbook.com/@forestadmin/s/documentation/~/drafts/-LcaGvIb-WdMOABgHOTu/primary/reference-guide/upgrade-to-v3).
</Info>
