seed.tar.gz holds a ready-made catalog so your store looks complete from the first run:
- 40 products with images, prices, discounts, stock, ratings and types
- 6 categories
- 6 stores for the store locator
- 1 sale
It contains no customers, orders or addresses. Those are created when people use your store.
Import it
pnpm exec sanity login # once, signs the CLI in to your Sanity account
pnpm seed
pnpm seed runs sanity dataset import seed.tar.gz production --replace: documents with the same IDs are replaced. To add only what is missing and keep your own edits, run:
pnpm seed:missing
Note
The import uploads the product images to your project, so it takes a minute. The dataset must be named production, or change the scripts in package.json.
After importing
Open http://localhost:3000/studio to see and edit everything, and http://localhost:3000 to see the store.