Skip to content

Commit c9906d3

Browse files
Update CLI version section to include Homebrew upgrade instructions (#397)
* Update references/lightdash-cli.mdx Co-Authored-By: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com> * Update guides/cli/how-to-install-the-lightdash-cli.mdx Co-Authored-By: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com> * Update references/lightdash-cli.mdx Co-Authored-By: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com> * Update guides/cli/how-to-install-the-lightdash-cli.mdx Co-Authored-By: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com> --------- Co-authored-by: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com>
1 parent b8d9bbc commit c9906d3

2 files changed

Lines changed: 44 additions & 18 deletions

File tree

guides/cli/how-to-install-the-lightdash-cli.mdx

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -86,25 +86,41 @@ You can also download the CLI binary directly from [GitHub releases](https://git
8686

8787
### Update to the latest version
8888

89-
To update your Lightdash CLI to the latest version, run:
90-
91-
```bash
92-
npm update -g @lightdash/cli
93-
```
89+
To update your Lightdash CLI to the latest version, run one of the following depending on how you installed it:
90+
91+
<Tabs>
92+
<Tab title="Homebrew">
93+
```bash
94+
brew upgrade lightdash
95+
```
96+
</Tab>
97+
<Tab title="npm">
98+
```bash
99+
npm update -g @lightdash/cli
100+
```
101+
</Tab>
102+
</Tabs>
94103

95104
### Update to a specific version
96105

97-
To update (or downgrade) to a specific version of the Lightdash CLI, run:
106+
<Tabs>
107+
<Tab title="Homebrew">
108+
Homebrew doesn't support installing specific versions directly. To install a specific version, use npm instead or download the binary from [GitHub releases](https://github.com/lightdash/lightdash/releases).
109+
</Tab>
110+
<Tab title="npm">
111+
To update (or downgrade) to a specific version of the Lightdash CLI, run:
98112

99-
```bash
100-
npm install -g @lightdash/cli@VERSION_NUMBER
101-
```
113+
```bash
114+
npm install -g @lightdash/cli@VERSION_NUMBER
115+
```
102116

103-
Replace `VERSION_NUMBER` with the desired version. For example:
117+
Replace `VERSION_NUMBER` with the desired version. For example:
104118

105-
```bash
106-
npm install -g @lightdash/cli@0.1743.1
107-
```
119+
```bash
120+
npm install -g @lightdash/cli@0.1743.1
121+
```
122+
</Tab>
123+
</Tabs>
108124

109125
<Info>
110126
You can check your current CLI version by running `lightdash --version`.

references/lightdash-cli.mdx

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,22 @@ Ignores the preceding command and shows the installed CLI version. Usually it's
4141
lightdash --version
4242
```
4343

44-
If you need to upgrade your version of the Lightdash cli, run the following in your terminal:
44+
If you need to upgrade your version of the Lightdash CLI, run one of the following in your terminal depending on how you installed it:
4545

46-
```bash
47-
npm install -g @lightdash/cli
48-
lightdash --version
49-
```
46+
<Tabs>
47+
<Tab title="npm">
48+
```bash
49+
npm install -g @lightdash/cli
50+
lightdash --version
51+
```
52+
</Tab>
53+
<Tab title="Homebrew">
54+
```bash
55+
brew upgrade lightdash
56+
lightdash --version
57+
```
58+
</Tab>
59+
</Tabs>
5060

5161
### Help
5262

0 commit comments

Comments
 (0)