hasura / learn-graphql

Real world GraphQL tutorials for frontend developers with deadlines!
https://hasura.io/learn/
MIT License
1.2k stars 651 forks source link

v3: update secret command used to store connection string #1033

Open aeswibon opened 6 months ago

aeswibon commented 6 months ago

Bug

Description

The command to create a secret is incompatible with the latest version. The latest version CLI doesn't have --project-id as a flag to pass onto the secret command and instead wants a few new attributes to be passed on as required.

The current command:

hasura3 secret set --project-id <PROJECT_ID_FROM_PREVIOUS_STEP> <KEY>=<VALUE>

Solution

The command should be replaced with:

hasura3 secret set --project <PROJECT_ID_FROM_PREVIOUS_STEP> --environment default --subgraph default --key <KEY> --value <VALUE>