envs

Swell — headless commerce

swell/store · version 1

envs add swell/store

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
SWELL_STORE_ID required config Passed straight into the browser SDK's init call beside the public key. All three names come from Swell's own storefront theme.. where to get it
SWELL_PUBLIC_KEY required config Swell says public keys are safe to use in browsers and storefronts with the frontend API. The prefix carries the environment, so a test key cannot be mistaken for a live one.. Shape ^pk_(test|live)_.+$. where to get it
SWELL_SECRET_KEY optional secret Swell says secret keys grant full access to the backend API, belong on the server, and must never be exposed. Several can exist, so a compromised one is revoked after its replacement is in place.. Shape ^sk_(test|live)_.+$. where to get it

The JSON the CLI reads