Skip to content

Commit 52b3698

Browse files
authored
fix: Download instructions (#163)
Direct users to use `dart pub global` instead of the old installers.
1 parent 9516fce commit 52b3698

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

pages/docs/download.mdx

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,31 @@ title: Download
33
description: Download the Celest CLI and get started building your backend in Dart today.
44
---
55

6-
import { Download } from '@components/Download'
6+
import { Callout } from 'nextra/components'
7+
import DownloadButton from '@components/DownloadButton'
78

89
# Download Celest
910

10-
Use the links below to download the Celest CLI for your operating system. Open the installer and follow the instructions to install the CLI on your machine.
11+
You can download the Celest CLI by running the following command:
1112

12-
<Download />
13+
<div className="flex flex-col items-center space-y-4 my-4">
14+
<DownloadButton />
15+
</div>
16+
17+
This will install the Celest CLI globally on your system, allowing you to use it from any directory.
18+
19+
<Callout type="info">
20+
To ensure that the Celest CLI is available in your PATH, you may need to add the Dart SDK's pub cache to your PATH.
21+
22+
On macOS and Linux, you can do this by adding the following line to your shell configuration file (e.g., `~/.bashrc`, `~/.zshrc`):
23+
24+
```bash
25+
export PATH="$PATH":"$HOME/.pub-cache/bin"
26+
```
27+
28+
On Windows, you can add the following location to your PATH environment variable:
29+
30+
```
31+
%LOCALAPPDATA%\Pub\Cache\bin
32+
```
33+
</Callout>

0 commit comments

Comments
 (0)