Cannot XXX until this project has either a remote or a production environment

Hello everyone :wave:

I’m completely new to ForestAdmin and cannot figure out an issue (probably trivial… but I’m stuck).

I created a project using the CLI as suggested by performing

forest login
forest init ...

but I accidentally deleted my folder, so I tried to re-create it.
Now every time I try to re-run forest init I have the following error:

forest init
√ Selecting your project
× Analyzing your setup
× You cannot create your development environment until this project has either a remote or a production environment.

In fact, this error happens all the time: I tried to see if the other commands of the forest-cli could help, but they all complain in the same manner, for ex.:

forest switch
× You cannot run branch commands until this project has either a remote or a production environment.

Does anybody have an idea why this is happening ?

Here are the mandatory details:

  • Project ID: 86233
  • Environment name: development
  • Agent type & version: not sure since I trashed the directory… it’s was Node.js and my CLI is forest-cli/2.6.8 darwin-arm64 node-v16.14.2
  • Recent changes made on your end if any: none (except deleting the originally-generated project)

Kind Regards :heart:
Aurélien

Hi @Aurel,

Sorry for the late reply.

If you deleted you project folder, I am afraid you’ll have to create a new one (unless you kept a copy of it somewhere).

To do so, you can create a new project from here:
https://app.forestadmin.com/new-project

Or use directly the CLI, and run the following command:
forest projects:create "My new admin panel"

Let me know if it helps.