salesforcecommercecloud/B2C Commerce Developer Tooling
Setup the Salesforce B2C Commerce CLI and optionally run a command
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| command | CLI command to run (omit for setup-only) | no | — |
| version | CLI version to install (e.g. "latest", "0.4.1", "nightly") | no | latest |
| node-version | Node.js version to install | no | 22 |
| json | Append --json flag and parse JSON output into the result output | no | true |
| working-directory | Working directory for the command | no | . |
| client-id | OAuth Client ID → SFCC_CLIENT_ID | no | — |
| client-secret | OAuth Client Secret → SFCC_CLIENT_SECRET | no | — |
| server | B2C instance hostname → SFCC_SERVER | no | — |
| code-version | Code version → SFCC_CODE_VERSION | no | — |
| username | WebDAV username → SFCC_USERNAME | no | — |
| password | WebDAV password/access key → SFCC_PASSWORD | no | — |
| short-code | SCAPI short code → SFCC_SHORTCODE | no | — |
| tenant-id | Tenant ID → SFCC_TENANT_ID | no | — |
| mrt-api-key | MRT API key → MRT_API_KEY | no | — |
| mrt-project | MRT project slug → MRT_PROJECT | no | — |
| mrt-environment | MRT environment → MRT_ENVIRONMENT | no | — |
| account-manager-host | Account Manager hostname → SFCC_ACCOUNT_MANAGER_HOST | no | — |
| webdav-server | Separate WebDAV hostname (used for staging cert. hostnames) → SFCC_WEBDAV_SERVER | no | — |
| certificate | Path to PKCS12 client certificate for two-factor (mTLS) auth → SFCC_CERTIFICATE | no | — |
| certificate-passphrase | Passphrase for the PKCS12 client certificate → SFCC_CERTIFICATE_PASSPHRASE | no | — |
| selfsigned | Allow self-signed server certificates → SFCC_SELFSIGNED. Set to "true" to enable; omit otherwise. | no | — |
Outputs
| name | description |
|---|---|
| cli-version | Installed CLI version |
| result | Command output (JSON-parsed when json=true) |
| exit-code | Command exit code |