---
title: api-keys generate
description: Generate a new API key.
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_name: shop-minis
---

# 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]
  ```

***
