Skip to main content

auth

Manage authentication, credentials, and store connections.

login

Log in to Shoplazza via OAuth 2.0.

shell
shoplazza auth login [flags]

Flags

FlagTypeDescription
--store-domain, -s <domain>stringStore domain to connect to (e.g. my-store.myshoplaza.com)
--domain <domains>StringSliceComma-separated business domains for scope expansion (e.g. products,orders)
--scope <scopes>StringSliceComma-separated OAuth scopes (e.g. read_product,write_product)
--uat <token>stringUser Access Token for non-interactive login (CI/CD)
--timeout <seconds>intWeb-flow polling timeout in seconds (default: 300)
--poll-interval <seconds>intWeb-flow poll interval in seconds (default: 2)

Examples

shell
# Interactive login with browser
shoplazza auth login --store-domain my-store.myshoplaza.com

# Login with specific domain scopes
shoplazza auth login --store-domain my-store.myshoplaza.com --domain products,orders,customers

# Non-interactive login for CI/CD
shoplazza auth login --uat $SHOPLAZZA_UAT --store-domain my-store.myshoplaza.com

logout

Remove all stored credentials from OS keychain.

shell
shoplazza auth logout

status

Display current authentication state including account, store, and granted scopes.

shell
shoplazza auth status

scopes

List all available OAuth scopes that can be requested during login.

shell
shoplazza auth scopes

store use

Switch the active store without re-authenticating.

shell
shoplazza auth store use [flags]

Flags

FlagTypeDescription
--store-domain, -s <domain>stringStore domain to switch to

Examples

shell
shoplazza auth store use --store-domain another-store.myshoplaza.com