is there any option to create a project using `eas-cli`

I want to create a EAS project using eas-cli because my app is intended to created by CI. I could not find any option to do that after reading the documentation. is there any hack for that?

I’ve tried the below code

eas project:init --non-interactive --id=fe524c84-a0e9-4f4c-xxxxxxxxxxx

got the error

CombinedError: [GraphQL] Experience with id 'fe524c84-a0e9-4f4c-xxxxxxxxxxx' does not exist.

What I’ve understood was, we need to create the project manually and generate id from the console.

Is there any hack to do it from command line.

hi there!

i just tried this out and it worked as expected.

can you provide more information?

Hi @brents

I’ve just tried this myself and I got the same error:

$ yarn create expo-app blah
$ cd blah
# I changed the slug to "blah-2023021001" because I realised that I already happened to have a project called "blah"
$ uuidgen 
1026f453-6df9-4bae-b4aa-7569b8cc1899
$ eas project:init --non-interactive --id=1026f453-6df9-4bae-b4aa-7569b8cc1899
✔ Project successfully linked (ID: 1026f453-6df9-4bae-b4aa-7569b8cc1899) (modified app.json)
    CombinedError: [GraphQL] Experience with id 
    '1026f453-6df9-4bae-b4aa-7569b8cc1899' does not exist.

Just in case I tried with npm as well:

$ npx create-expo-app blah-2023021002
$ cd blah-2023021002
$ uuidgen
7b89ccb0-f46e-4407-9ac8-56c2fb1f6e26
$ eas project:init --non-interactive --id=7b89ccb0-f46e-4407-9ac8-56c2fb1f6e26
✔ Project successfully linked (ID: 7b89ccb0-f46e-4407-9ac8-56c2fb1f6e26) (modified app.json)
    CombinedError: [GraphQL] Experience with id 
    '7b89ccb0-f46e-4407-9ac8-56c2fb1f6e26' does not exist.

If I look on expo.dev I do not see these two new projects listed.

And:

$ eas open
    CombinedError: [GraphQL] Experience with id 
    '7b89ccb0-f46e-4407-9ac8-56c2fb1f6e26' does not exist.

I’m afraid @eden60 is either very confused, a spammer or a bot. Anyway, their message is not in any way related to Expo or eas-cli.

ah, sorry. this is not the intention of the id flag. the id flag is intended for you to provide the id of an existing project that you have created previously, eg: through the website ui

also - if you want to create a new project, you can just run eas init without providing the id flag. you’ll need to be authenticated and have a unique (to your account) slug for the project.

1 Like