# Error on using builder create command

**URL:** <https://forum.builder.io/t/error-on-using-builder-create-command/558>\
**Category:** Shopify\
**Tags:** shopify\
**Created:** [April 6, 2021, 9:49am UTC](https://forum.builder.io/t/error-on-using-builder-create-command/558 "2021-04-06T09:49:04Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![gamersensei](https://avatars.discourse-cdn.com/v4/letter/g/f6c823/32.png) [@gamersensei](https://forum.builder.io/u/gamersensei)\
**Post date:** [April 6, 2021, 9:49am UTC](https://forum.builder.io/t/error-on-using-builder-create-command/558/1 "2021-04-06T09:49:04Z")

</div>

**I am getting this error when i use builder create command with api ke and store name**  
**I searched but was not able to figure out what to do**

Error creating space  
ClientError: Response contains errors  
{  
“message”: “Target organization must be a root”,  
“locations”: [  
{  
“line”: 1,  
“column”: 27  
}  
],  
“path”: [  
“createSpace”  
],  
“extensions”: {  
“code”: “INTERNAL\_SERVER\_ERROR”  
}  
}  
at C:\Users\Admin\AppData\Roaming\npm\node\_modules@builder.io\cli\node\_modules\graphql-typed-client\dist\client\createClient.js:85:19  
at processTicksAndRejections (internal/process/task\_queues.js:93:5) {  
errors: [  
{  
message: ‘Target organization must be a root’,  
locations: [Array],  
path: [Array],  
extensions: [Object]  
}  
]  
}

 ![tempsnip](https://us1.discourse-cdn.com/flex020/uploads/builder/original/1X/90759277312190c28bb21506cd2e10d4997dde7b.png)

---

<div class="post-metadata">

**Author:** ![aziz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/aziz/32/2551_2.png) [@aziz](https://forum.builder.io/u/aziz)\
**Post date:** [April 6, 2021, 5:12pm UTC](https://forum.builder.io/t/error-on-using-builder-create-command/558/2 "2021-04-06T17:12:26Z")

</div>

This error happens when attempting to create a space from the CLI under another space instead of an organization. Please use the private key for your organization, not another space. You can get that here: [https://builder.io/account/organization?root=true](https://builder.io/account/organization?root=true)

 ![Screen Shot 2021-04-06 at 10.11.16 AM](https://us1.discourse-cdn.com/flex020/uploads/builder/original/1X/acbebea2eebaab51fbf7d77a6bc8393924aaf315.png)

Then choose one of the private keys available, or generate a new one.

---

<div class="post-metadata">

**Author:** ![gamersensei](https://avatars.discourse-cdn.com/v4/letter/g/f6c823/32.png) [@gamersensei](https://forum.builder.io/u/gamersensei)\
**Post date:** [April 6, 2021, 5:28pm UTC](https://forum.builder.io/t/error-on-using-builder-create-command/558/3 "2021-04-06T17:28:31Z")

</div>

thanks for the reply,  
i did the same step mentioned above.  
still getting the error.

---

<div class="post-metadata">

**Author:** ![aziz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/aziz/32/2551_2.png) [@aziz](https://forum.builder.io/u/aziz)\
**Post date:** [April 6, 2021, 5:36pm UTC](https://forum.builder.io/t/error-on-using-builder-create-command/558/4 "2021-04-06T17:36:43Z")

</div>

Hey @gamersensei, happy to help debug this further, please send me in a direct message:

- your public api key
- the command you’re trying to run `builder create ...`

---

<div class="post-metadata">

**Author:** ![gamersensei](https://avatars.discourse-cdn.com/v4/letter/g/f6c823/32.png) [@gamersensei](https://forum.builder.io/u/gamersensei)\
**Post date:** [April 7, 2021, 4:35am UTC](https://forum.builder.io/t/error-on-using-builder-create-command/558/5 "2021-04-07T04:35:39Z")

</div>

Sure mate, @aziz  
where can i ping you.

---

<div class="post-metadata">

**Author:** ![gamersensei](https://avatars.discourse-cdn.com/v4/letter/g/f6c823/32.png) [@gamersensei](https://forum.builder.io/u/gamersensei)\
**Post date:** [April 7, 2021, 4:21pm UTC](https://forum.builder.io/t/error-on-using-builder-create-command/558/6 "2021-04-07T16:21:27Z")

</div>

Hey thanks for all the help, i fixed it.  
i created a new space and created a key there.  
and used the key then it worked

---

<div class="post-metadata">

**Author:** ![kara](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/kara/32/80_2.png) [@kara](https://forum.builder.io/u/kara)\
**Post date:** [April 7, 2021, 8:17pm UTC](https://forum.builder.io/t/error-on-using-builder-create-command/558/7 "2021-04-07T20:17:51Z")

</div>

Hey @gamersensei glad to hear you’re up and running!

---

<div class="post-metadata">

**Author:** ![kasper\_341](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/kasper_341/32/539_2.png) [@kasper\_341](https://forum.builder.io/u/kasper_341)\
**Post date:** [August 5, 2021, 6:17pm UTC](https://forum.builder.io/t/error-on-using-builder-create-command/558/8 "2021-08-05T18:17:04Z")

</div>

@aziz - Thanks for writing this 👍🏾

---

<div class="post-metadata">

**Author:** ![jeangar92](https://avatars.discourse-cdn.com/v4/letter/j/dc4da7/32.png) [@jeangar92](https://forum.builder.io/u/jeangar92)\
**Post date:** [July 28, 2022, 2:47am UTC](https://forum.builder.io/t/error-on-using-builder-create-command/558/9 "2022-07-28T02:47:06Z")

</div>

Hi, I tried by making a new space and then the new key but I still get the same error:

_errors: [_

- {\*
- 

```
 message: 'Attempted to create a space under another space instead of an organization. Please use the private key for your organization, not another space. You can get that here: https://builder.io/account/organization?root=true',*

```

- 

```
 locations: [Array],*

```

- 

```
 path: [Array],*

```

- 

```
 extensions: [Object]*

```

- }\*
- ]\*  
_}_

I have tried the suggested fix from this thread but did not work for me.  
I have tried creating a new key, then i revoked it and created a new one and still get the same error…

Please help.

---

<div class="post-metadata">

**Author:** ![anon43891756](https://avatars.discourse-cdn.com/v4/letter/a/50afbb/32.png) [@anon43891756](https://forum.builder.io/u/anon43891756)\
**Post date:** [July 28, 2022, 3:17pm UTC](https://forum.builder.io/t/error-on-using-builder-create-command/558/10 "2022-07-28T15:17:42Z")

</div>

Hi @jeangar92, Welcome to [Builder.io](http://Builder.io) Forum!

I’m wondering if you mistakenly tried to fix the issue by using the private key of your archieve space, not an organization. Could you please confirm us that you’re using Private Keys under Organization Tab i.e. ([Builder.io: Drag and drop page builder and CMS](https://builder.io/account/organization?root=true)) ?

---

<div class="post-metadata">

**Author:** ![jeangar92](https://avatars.discourse-cdn.com/v4/letter/j/dc4da7/32.png) [@jeangar92](https://forum.builder.io/u/jeangar92)\
**Post date:** [July 28, 2022, 3:41pm UTC](https://forum.builder.io/t/error-on-using-builder-create-command/558/11 "2022-07-28T15:41:35Z")

</div>

> [@anon43891756](#):
>
> r Organization

Garima!, Thanks for your reply, So the issue looks like it was me using the private key under space and not organization… I realized now with your response after I clicked the link you provided. The organization showed as archived and was able to use the private key anyway. I did unarchive it afterwards though. Thank you for your response and help!!!

---

<div class="post-metadata">

**Author:** ![anon43891756](https://avatars.discourse-cdn.com/v4/letter/a/50afbb/32.png) [@anon43891756](https://forum.builder.io/u/anon43891756)\
**Post date:** [July 28, 2022, 4:15pm UTC](https://forum.builder.io/t/error-on-using-builder-create-command/558/12 "2022-07-28T16:15:18Z")

</div>

Hi @jeangar92, glad to hear that. If you need further help, please feel free to reach us again anytime!
