You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/getting-started/getting-started.md
+5-6Lines changed: 5 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,21 +47,21 @@ Defang supports various ways of creating and deploying services to the cloud. Th
47
47
By default, all the output (stdout and stderr) from your app is logged. You can view these logs in real-time. You can view logs for all your services, one service, or even one specific deployment of a service.
Copy file name to clipboardExpand all lines: docs/getting-started/installing.md
+32-23Lines changed: 32 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,40 +3,49 @@ sidebar_position: 100
3
3
title: Installing
4
4
description: How to install Defang.
5
5
---
6
+
import Tabs from '@theme/Tabs';
7
+
import TabItem from '@theme/TabItem';
6
8
7
-
# Installing
9
+
# How to Install Defang
8
10
9
11
Defang doesn't require installing anything in your cloud, but you will need to install the [open source](https://github.com/DefangLabs/defang) Defang command line interface (CLI) to interact with your Defang resources and account.
10
12
11
-
We offer a few different ways to install the Defang CLI. You can use Homebrew, a bash script, Winget, or download the binary directly.
13
+
We offer a few different ways to install the Defang CLI. You can use a bash script, Homebrew, Winget, or you can download the binary directly.
12
14
13
-
## Using Homebrew
14
15
15
-
You can easily install the Defang CLI using [Homebrew](https://brew.sh/). Run the following command in your terminal:
16
+
<Tabs>
17
+
<TabItemvalue="bash"label="Bash">
18
+
## Using a Bash Script
16
19
17
-
```bash
18
-
brew install DefangLabs/defang/defang
19
-
```
20
+
You can install the Defang CLI using a bash script. Run the following command in your terminal:
20
21
21
-
## Using a Bash Script
22
+
```bash
23
+
. <(curl -Ls s.defang.io/install)
24
+
```
22
25
23
-
You can install the Defang CLI using a bash script. Run the following command in your terminal:
26
+
The script will try to download the appropriate binary for your operating system and architecture, add it to `~/.local/bin`, and add `~/.local/bin` to your `PATH` if it's not already there, with your permission. If you do not provide permission it will print an appropriate instruction for you to follow to add it manually. You can also customize the installation directory by setting the `INSTALL_DIR` environment variable before running the script.
27
+
</TabItem>
28
+
<TabItemvalue="homebrew"label="Homebrew"default>
29
+
## Using Homebrew
24
30
25
-
```bash
26
-
.<(curl -Ls s.defang.io/install)
27
-
```
31
+
You can easily install the Defang CLI using [Homebrew](https://brew.sh/). Run the following command in your terminal:
28
32
29
-
The script will try to download the appropriate binary for your operating system and architecture, add it to `~/.local/bin`, and add `~/.local/bin` to your `PATH` if it's not already there, with your permission. If you do not provide permission it will print an appropriate instruction for you to follow to add it manually. You can also customize the installation directory by setting the `INSTALL_DIR` environment variable before running the script.
33
+
```bash
34
+
brew install DefangLabs/defang/defang
35
+
```
36
+
</TabItem>
37
+
<TabItemvalue="winget"label="Winget">
38
+
## Using Winget
30
39
31
-
## Using Winget
40
+
On Windows, you can install the Defang CLI using `winget`. Run the following command in your terminal:
32
41
33
-
On Windows, you can install the Defang CLI using `winget`. Run the following command in your terminal:
34
-
35
-
```powershell
36
-
winget install defang
37
-
```
38
-
39
-
## Direct Download
40
-
41
-
You can find the latest version of the Defang CLI on the [releases page](https://github.com/DefangLabs/defang/releases). Just download the appropriate binary for your operating system and architecture, and put it somewhere in your `PATH`.
42
+
```powershell
43
+
winget install defang
44
+
```
45
+
</TabItem>
46
+
<TabItemvalue="direct"label="Direct Download">
47
+
## Direct Download
42
48
49
+
You can find the latest version of the Defang CLI on the [releases page](https://github.com/DefangLabs/defang/releases). Just download the appropriate binary for your operating system and architecture, and put it somewhere in your `PATH`.
0 commit comments