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