|
1 | 1 | --- |
2 | | -description: Commands for installing AI agent skills for Claude Code, Cursor, Windsurf, and other agentic IDEs. |
| 2 | +description: Commands for viewing configuration, installing AI agent skills, and setting up the development environment. |
3 | 3 | --- |
4 | 4 |
|
5 | 5 | # Setup Commands |
6 | 6 |
|
7 | | -Commands for setting up the development environment with AI agent skills. |
| 7 | +Commands for viewing configuration and setting up the development environment. |
| 8 | + |
| 9 | +## b2c setup config |
| 10 | + |
| 11 | +Display the resolved configuration from all sources, showing which values are set and where they came from. Useful for debugging configuration issues. |
| 12 | + |
| 13 | +### Usage |
| 14 | + |
| 15 | +```bash |
| 16 | +b2c setup config [FLAGS] |
| 17 | +``` |
| 18 | + |
| 19 | +### Flags |
| 20 | + |
| 21 | +| Flag | Description | Default | |
| 22 | +|------|-------------|---------| |
| 23 | +| `--unmask` | Show sensitive values unmasked (passwords, secrets, API keys) | `false` | |
| 24 | +| `--json` | Output results as JSON | `false` | |
| 25 | + |
| 26 | +### Examples |
| 27 | + |
| 28 | +```bash |
| 29 | +# Display resolved configuration (sensitive values masked) |
| 30 | +b2c setup config |
| 31 | + |
| 32 | +# Display configuration with sensitive values unmasked |
| 33 | +b2c setup config --unmask |
| 34 | + |
| 35 | +# Output as JSON for scripting |
| 36 | +b2c setup config --json |
| 37 | + |
| 38 | +# Debug configuration with a specific instance |
| 39 | +b2c setup config -i staging |
| 40 | +``` |
| 41 | + |
| 42 | +### Output |
| 43 | + |
| 44 | +The command displays configuration organized by category: |
| 45 | + |
| 46 | +- **Instance**: hostname, webdavHostname, codeVersion |
| 47 | +- **Authentication (Basic)**: username, password |
| 48 | +- **Authentication (OAuth)**: clientId, clientSecret, scopes, authMethods, accountManagerHost |
| 49 | +- **SCAPI**: shortCode |
| 50 | +- **Managed Runtime (MRT)**: mrtProject, mrtEnvironment, mrtApiKey, mrtOrigin |
| 51 | +- **Metadata**: instanceName |
| 52 | +- **Sources**: List of configuration sources that contributed values |
| 53 | + |
| 54 | +Each value shows its source in brackets (e.g., `[dw.json]`, `[SFCC_CLIENT_ID]`, `[~/.mobify]`). |
| 55 | + |
| 56 | +Example output: |
| 57 | + |
| 58 | +``` |
| 59 | +Configuration |
| 60 | +──────────────────────────────────────────────────────────── |
| 61 | +
|
| 62 | +Instance |
| 63 | + hostname my-sandbox.dx.commercecloud.salesforce.com [DwJsonSource] |
| 64 | + webdavHostname - |
| 65 | + codeVersion version1 [DwJsonSource] |
| 66 | +
|
| 67 | +Authentication (Basic) |
| 68 | + username admin [DwJsonSource] |
| 69 | + password admi...REDACTED [DwJsonSource] |
| 70 | +
|
| 71 | +Authentication (OAuth) |
| 72 | + clientId my-client-id [password-store] |
| 73 | + clientSecret my-c...REDACTED [password-store] |
| 74 | + scopes - |
| 75 | + authMethods - |
| 76 | + accountManagerHost - |
| 77 | +
|
| 78 | +SCAPI |
| 79 | + shortCode abc123 [DwJsonSource] |
| 80 | +
|
| 81 | +Managed Runtime (MRT) |
| 82 | + mrtProject my-project [MobifySource] |
| 83 | + mrtApiKey mrtk...REDACTED [MobifySource] |
| 84 | +
|
| 85 | +Sources |
| 86 | +──────────────────────────────────────────────────────────── |
| 87 | + 1. DwJsonSource /path/to/project/dw.json |
| 88 | + 2. MobifySource /Users/user/.mobify |
| 89 | + 3. password-store pass:b2c-cli/_default |
| 90 | +``` |
| 91 | + |
| 92 | +### Sensitive Values |
| 93 | + |
| 94 | +By default, sensitive fields are masked to prevent accidental exposure: |
| 95 | + |
| 96 | +- `password` - Basic auth access key |
| 97 | +- `clientSecret` - OAuth client secret |
| 98 | +- `mrtApiKey` - MRT API key |
| 99 | + |
| 100 | +Use `--unmask` to reveal the actual values when needed for debugging. |
| 101 | + |
| 102 | +### See Also |
| 103 | + |
| 104 | +- [Configuration Guide](/guide/configuration) - How to configure the CLI |
8 | 105 |
|
9 | 106 | ## b2c setup skills |
10 | 107 |
|
|
0 commit comments