--- title: api-keys generate description: Generate a new API key. api_name: shop-minis source_url: html: 'https://shopify.dev/docs/api/shop-minis/commands/api-keys-generate' md: 'https://shopify.dev/docs/api/shop-minis/commands/api-keys-generate.md' --- # api-keys generate Generate a new API key. **Note:** Creates a new API key for your Mini to authenticate with Shop APIs. Store the generated key securely - it won't be shown again. Use multiple keys for different environments or rotate keys regularly for security. #### Options * **--verbose** **boolean** Print debugging messages. Examples ### Examples * #### ##### zsh ```sh npx shop-minis api-keys generate [options] ``` ***