Skip to main content

Environment variables

Shoplazza CLI reads the following environment variables.

VariableDescriptionExample
SHOPLAZZA_UATUser Access Token for non-interactive authenticationuat_abc123...
SHOPLAZZA_STOREDefault store domainmy-store.myshoplaza.com

Usage

Set these variables for CI/CD pipelines or automated scripts:

export SHOPLAZZA_UAT=your-token
export SHOPLAZZA_STORE=my-store.myshoplaza.com

# Commands will use these credentials automatically
shoplazza products +search --keyword "shirt"

Precedence

  1. Command-line flags (--uat, --store-domain) take highest priority
  2. Environment variables are used when flags are not provided
  3. Stored credentials (OS keychain) are used as fallback