envs

Snipcart — shopping cart

snipcart/cart · version 1

envs add snipcart/cart

This declares the keys below in your catalog and sets none of them. A template is a schema for keys; it never carries a value.

Key Needed Kind Notes
SNIPCART_PUBLIC_API_KEY required config Snipcart calls it the public API key and has you paste it into a script tag on every storefront page, which is as plain as this gets. The variable name is convention.. where to get it
SNIPCART_SECRET_API_KEY optional secret Snipcart says anyone holding a secret key can reach all of your account information, and that keys must never appear in source code or in compiled front-end assets.. where to get it

The JSON the CLI reads