1"> 1"> 1">

# Commercetools sunrise categories

You can run the following command to populate your Commercetools instance1 with categories either generated at random or by using the OpenAI API:

rocket commercetools sunrise categories

This command will first ask you to state how many categories you want to create, and then query you for your OpenAI API key in order to use Chat GPT to generated categories fitting a short description of your shop. If you don't have an API key, it will use the the faker library to create random product categories in Commercetools.

# Scopes

You need the following Commercetools OAuth 2.0 scopes to run this command:

manage_products:{projectKey}, manage_categories:{projectKey}

  1. You might be asked to provide the credentials to connect to Commercetools.