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

**URL:** <https://community.forestadmin.com/t/cannot-xxx-until-this-project-has-either-a-remote-or-a-production-environment/4675>\
**Category:** Help me!\
**Created:** [May 13, 2022, 1:40pm UTC](https://community.forestadmin.com/t/cannot-xxx-until-this-project-has-either-a-remote-or-a-production-environment/4675 "2022-05-13T13:40:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aurel](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/aurel/32/4499_2.png) [@Aurel](https://community.forestadmin.com/u/Aurel)\
**Post date:** [May 13, 2022, 1:40pm UTC](https://community.forestadmin.com/t/cannot-xxx-until-this-project-has-either-a-remote-or-a-production-environment/4675/1 "2022-05-13T13:40:28Z")

</div>

Hello everyone 👋

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

```nohighlight
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:

```nohighlight
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.:

```nohighlight
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 ❤  
Aurélien

---

<div class="post-metadata">

**Author:** ![arnaud](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/arnaud/32/32_2.png) [@arnaud](https://community.forestadmin.com/u/arnaud)\
**Post date:** [May 20, 2022, 10:03am UTC](https://community.forestadmin.com/t/cannot-xxx-until-this-project-has-either-a-remote-or-a-production-environment/4675/2 "2022-05-20T10:03:29Z")

</div>

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](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.
