The keys edit command allows you to modify the scopes of an existing server API key.
To use it, run the following command from your terminal
Where <key-id> is the ID of the API key you want to edit. You can get the key id by running keys list command.
Example
Edit an API key:
For client-side keys, edit the allowed origins for your key. Press <tab> for editing or <enter> for confirming the value.
- For web enter the domain, eg: https://crossmint.com
- For mobile enter your Android Package name or IOS Bundle ID, eg: com.company.appname
Enter multiple domains or app identifiers separated by a comma.
The CLI will display the current scopes and prompt you to select new ones:
After selecting the new scopes, you’ll see a confirmation message: