How do I name my project with the new CLI?
# prisma-whats-new
l
How do I name my project with the new CLI?
Is there a field for this in the graphcool.yml?
Also, is there a way to choose the region or at least know what region the project is in?
a
graphcool init
has parameters for name and region
l
The name and region aren't persisted anywhere?
In the configuration?
a
No, only the projectid is stored locally
l
Seems like a limitation that should be addressed
a
Why?
l
What if I want my dev environment to be in Oregon but my production environment in another region?
Also, it would be useful to know what region my project is in
a
gc projects
shows you region info
And for your other question, you would
gc init -e PROD -n NiceProject -r US_WEST_2
for production, and
gc init -e DEV -n NiceProjectDev -r EU_WEST_1
for example
👍 1
l
I think it would be more ideal to version control the region specification and the project name
I want to be able to see the entire configuration of the project from my source code
a
You could add a comment to the environment file I think if you really wanted to. However, it doesn't server any technical purpose to have that information in there. You wouldn't be able to change it, for example, so I think it would lead to confusion or inconsistencies.
l
I agree that's a problem if the region can't change. Are there plans to allow the regions to change? In a perfect world I think changing the region is something you would want to do. I imagine project regions might become a thing of the past as AWS advances and graph.cool instances act more like a CDN, running as close to the user as possible
a
True. Also, I believe that easy data migration is a better solution, as you could just create another environment with a different region, and it would also initialize your data.
👍 1
Changing regions for existing projects is not on the shortlist I think, because that would be quite involved
l
That makes sense
a
I use aliases a lot
So if I need to move to a different region, I just re-init a new project in the right region, init my data, and move the alias