Steps for adding commerce category.
1)Create a Excel sheet with following mandatory fields.
Id-External id- You can add any id.
Name-Name of the category
URL fragment-The URL component of the category
Catalog- Specify the catalog to which the item is added.
2)Save the CSV file.
Do CSV import for adding category import.
1)Set up>import/export>import CSV records
2)Then select the import type-website and record type-category.Add the file we created to CSV files.
3)Then select Add or update option.
4)Then perform the mapping as follows.
5)Then provide a unique id and save.