Skip to content

Commit b40d9c3

Browse files
committed
install updates
1 parent 23fef83 commit b40d9c3

1 file changed

Lines changed: 49 additions & 3 deletions

File tree

docs/guide/installation.md

Lines changed: 49 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,44 @@
22

33
## Prerequisites
44

5-
- Node.js 18.0.0 or higher
6-
- npm, yarn, or pnpm
5+
- macOS, Linux, or Windows
6+
- Node.js 22.0.0 or higher (for npm installation or SDK usage)
77

8-
## Install the CLI
8+
## Install via Homebrew (Recommended)
9+
10+
The easiest way to install the B2C CLI on macOS or Linux is via Homebrew:
11+
12+
```bash
13+
brew install salesforcecommercecloud/tools/b2c-cli
14+
```
15+
16+
Or tap the repository first:
17+
18+
```bash
19+
brew tap salesforcecommercecloud/tools
20+
brew install b2c-cli
21+
```
22+
23+
### Using a Brewfile
24+
25+
Add to your `Brewfile`:
26+
27+
```ruby
28+
tap "salesforcecommercecloud/tools"
29+
brew "b2c-cli"
30+
```
31+
32+
Then run:
33+
34+
```bash
35+
brew bundle
36+
```
37+
38+
## Install via npm
39+
40+
::: warning Not Yet Available
41+
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.
42+
:::
943

1044
Install the CLI globally using your preferred package manager:
1145

@@ -25,6 +59,14 @@ yarn global add @salesforce/b2c-cli
2559

2660
:::
2761

62+
## Install from GitHub Releases
63+
64+
Download the latest release tarball from [GitHub Releases](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/releases) and install manually:
65+
66+
```bash
67+
npm install -g ./salesforce-b2c-cli-<version>.tgz
68+
```
69+
2870
## Verify Installation
2971

3072
After installation, verify the CLI is available:
@@ -35,6 +77,10 @@ b2c --version
3577

3678
## Install the SDK (Optional)
3779

80+
::: warning Not Yet Available
81+
The SDK is not yet published to npm. This installation method will be available in a future release.
82+
:::
83+
3884
If you want to use the SDK library in your own projects:
3985

4086
::: code-group

0 commit comments

Comments
 (0)