Skip to content

Commit 5e52be8

Browse files
committed
docs update for install
1 parent 2d888ff commit 5e52be8

2 files changed

Lines changed: 21 additions & 40 deletions

File tree

docs/guide/installation.md

Lines changed: 17 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
description: Install the B2C CLI via Homebrew, npm, or GitHub releases, and optionally install the SDK for programmatic use.
2+
description: Install the B2C CLI via npm, Homebrew, or GitHub releases, and optionally install the SDK for programmatic use.
33
---
44

55
# Installation
@@ -9,41 +9,7 @@ description: Install the B2C CLI via Homebrew, npm, or GitHub releases, and opti
99
- macOS, Linux, or Windows
1010
- Node.js 22.0.0 or higher (for npm installation or SDK usage)
1111

12-
## Install via Homebrew (Recommended)
13-
14-
The easiest way to install the B2C CLI on macOS or Linux is via Homebrew:
15-
16-
```bash
17-
brew install salesforcecommercecloud/tools/b2c-cli
18-
```
19-
20-
Or tap the repository first:
21-
22-
```bash
23-
brew tap salesforcecommercecloud/tools
24-
brew install b2c-cli
25-
```
26-
27-
### Using a Brewfile
28-
29-
Add to your `Brewfile`:
30-
31-
```ruby
32-
tap "salesforcecommercecloud/tools"
33-
brew "b2c-cli"
34-
```
35-
36-
Then run:
37-
38-
```bash
39-
brew bundle
40-
```
41-
42-
## Install via npm
43-
44-
::: warning Not Yet Available
45-
The B2C CLI is not yet published to npm. This installation method will be available in a future release. For now, please use Homebrew or download from GitHub Releases.
46-
:::
12+
## Install via npm (Recommended)
4713

4814
Install the CLI globally using your preferred package manager:
4915

@@ -63,6 +29,21 @@ yarn global add @salesforce/b2c-cli
6329

6430
:::
6531

32+
## Install via Homebrew
33+
34+
On macOS or Linux, you can install via Homebrew:
35+
36+
```bash
37+
brew install salesforcecommercecloud/tools/b2c-cli
38+
```
39+
40+
Or tap the repository first:
41+
42+
```bash
43+
brew tap salesforcecommercecloud/tools
44+
brew install b2c-cli
45+
```
46+
6647
## Install from GitHub Releases
6748

6849
Download the latest release tarball from [GitHub Releases](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/releases) and install manually:
@@ -81,10 +62,6 @@ b2c --version
8162

8263
## Install the SDK (Optional)
8364

84-
::: warning Not Yet Available
85-
The SDK is not yet published to npm. This installation method will be available in a future release.
86-
:::
87-
8865
If you want to use the SDK library in your own projects:
8966

9067
::: code-group

docs/guide/security.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ When adding a new dependency that requires build scripts:
6060
2. Review what the build script does
6161
3. Add it to `onlyBuiltDependencies` if necessary
6262

63+
## NPM Trusted Publishing
64+
65+
This project uses [NPM trusted publishers](https://docs.npmjs.com/trusted-publishers) for package publication. Instead of storing long-lived npm tokens, packages are published via GitHub Actions using short-lived OIDC tokens that cannot be extracted or reused.
66+
6367
## Best Practices
6468

6569
### For Contributors

0 commit comments

Comments
 (0)