Home App Docs Blog Github

Error on using builder create command

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”: [
“extensions”: {
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]

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

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

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

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

Sure mate, @aziz
where can i ping you.

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

1 Like

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