From 36fc30e9ac7ba05bf0e47f7fe4851dc0593a0ea6 Mon Sep 17 00:00:00 2001 From: commit111 Date: Mon, 18 Nov 2024 09:41:32 -0800 Subject: [PATCH 1/3] fix bash install to use eval --- app/knowledge_base.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/knowledge_base.json b/app/knowledge_base.json index 928e655..1d40f04 100644 --- a/app/knowledge_base.json +++ b/app/knowledge_base.json @@ -212,7 +212,7 @@ { "id": 43, "about": "How to Install Defang", - "text": "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. 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. **Using a Bash Script** You can install the Defang CLI using a bash script. Run the following command in your terminal: ```bash . <(curl -Ls s.defang.io/install) ``` 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. **Using Homebrew** You can easily install the Defang CLI using [Homebrew](https://brew.sh/). Run the following command in your terminal: ```bash brew install DefangLabs/defang/defang ``` **Using Winget** On Windows, you can install the Defang CLI using `winget`. Run the following command in your terminal: ```powershell winget install defang ``` **Using Nix** ```bash nix profile install github:DefangLabs/defang#defang-bin --refresh ``` **Direct Download** You can find the latest version of the Defang CLI on the [latest release page](https://github.com/DefangLabs/defang/releases/latest). Just download the appropriate binary for your operating system and architecture, and put it somewhere in your `PATH`. " + "text": "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. 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. **Using a Bash Script** You can install the Defang CLI using a bash script. Run the following command in your terminal: ```bash eval \"$(curl -Ls https://s.defang.io/install)\" ``` 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. **Using Homebrew** You can easily install the Defang CLI using [Homebrew](https://brew.sh/). Run the following command in your terminal: ```bash brew install DefangLabs/defang/defang ``` **Using Winget** On Windows, you can install the Defang CLI using `winget`. Run the following command in your terminal: ```powershell winget install defang ``` **Using Nix** ```bash nix profile install github:DefangLabs/defang#defang-bin --refresh ``` **Direct Download** You can find the latest version of the Defang CLI on the [latest release page](https://github.com/DefangLabs/defang/releases/latest). Just download the appropriate binary for your operating system and architecture, and put it somewhere in your `PATH`. " }, { "id": 44, From 50fb0a1e0f7941c69c59acee0389d7fc217021ce Mon Sep 17 00:00:00 2001 From: commit111 Date: Wed, 20 Nov 2024 09:58:55 -0800 Subject: [PATCH 2/3] added f and S flags to curl command --- app/knowledge_base.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/knowledge_base.json b/app/knowledge_base.json index 1d40f04..1fb700d 100644 --- a/app/knowledge_base.json +++ b/app/knowledge_base.json @@ -212,7 +212,7 @@ { "id": 43, "about": "How to Install Defang", - "text": "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. 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. **Using a Bash Script** You can install the Defang CLI using a bash script. Run the following command in your terminal: ```bash eval \"$(curl -Ls https://s.defang.io/install)\" ``` 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. **Using Homebrew** You can easily install the Defang CLI using [Homebrew](https://brew.sh/). Run the following command in your terminal: ```bash brew install DefangLabs/defang/defang ``` **Using Winget** On Windows, you can install the Defang CLI using `winget`. Run the following command in your terminal: ```powershell winget install defang ``` **Using Nix** ```bash nix profile install github:DefangLabs/defang#defang-bin --refresh ``` **Direct Download** You can find the latest version of the Defang CLI on the [latest release page](https://github.com/DefangLabs/defang/releases/latest). Just download the appropriate binary for your operating system and architecture, and put it somewhere in your `PATH`. " + "text": "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. 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. **Using a Bash Script** You can install the Defang CLI using a bash script. Run the following command in your terminal: ```bash eval \"$(curl -fsSL https://s.defang.io/install)\" ``` 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. **Using Homebrew** You can easily install the Defang CLI using [Homebrew](https://brew.sh/). Run the following command in your terminal: ```bash brew install DefangLabs/defang/defang ``` **Using Winget** On Windows, you can install the Defang CLI using `winget`. Run the following command in your terminal: ```powershell winget install defang ``` **Using Nix** ```bash nix profile install github:DefangLabs/defang#defang-bin --refresh ``` **Direct Download** You can find the latest version of the Defang CLI on the [latest release page](https://github.com/DefangLabs/defang/releases/latest). Just download the appropriate binary for your operating system and architecture, and put it somewhere in your `PATH`. " }, { "id": 44, From 1dcf4b03787af04c63fb7fc2c8f715f3f0522d98 Mon Sep 17 00:00:00 2001 From: commit111 Date: Wed, 20 Nov 2024 13:03:21 -0800 Subject: [PATCH 3/3] removed http from url in curl --- app/knowledge_base.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/knowledge_base.json b/app/knowledge_base.json index 1fb700d..20fe981 100644 --- a/app/knowledge_base.json +++ b/app/knowledge_base.json @@ -212,7 +212,7 @@ { "id": 43, "about": "How to Install Defang", - "text": "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. 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. **Using a Bash Script** You can install the Defang CLI using a bash script. Run the following command in your terminal: ```bash eval \"$(curl -fsSL https://s.defang.io/install)\" ``` 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. **Using Homebrew** You can easily install the Defang CLI using [Homebrew](https://brew.sh/). Run the following command in your terminal: ```bash brew install DefangLabs/defang/defang ``` **Using Winget** On Windows, you can install the Defang CLI using `winget`. Run the following command in your terminal: ```powershell winget install defang ``` **Using Nix** ```bash nix profile install github:DefangLabs/defang#defang-bin --refresh ``` **Direct Download** You can find the latest version of the Defang CLI on the [latest release page](https://github.com/DefangLabs/defang/releases/latest). Just download the appropriate binary for your operating system and architecture, and put it somewhere in your `PATH`. " + "text": "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. 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. **Using a Bash Script** You can install the Defang CLI using a bash script. Run the following command in your terminal: ```bash eval \"$(curl -fsSL s.defang.io/install)\" ``` 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. **Using Homebrew** You can easily install the Defang CLI using [Homebrew](https://brew.sh/). Run the following command in your terminal: ```bash brew install DefangLabs/defang/defang ``` **Using Winget** On Windows, you can install the Defang CLI using `winget`. Run the following command in your terminal: ```powershell winget install defang ``` **Using Nix** ```bash nix profile install github:DefangLabs/defang#defang-bin --refresh ``` **Direct Download** You can find the latest version of the Defang CLI on the [latest release page](https://github.com/DefangLabs/defang/releases/latest). Just download the appropriate binary for your operating system and architecture, and put it somewhere in your `PATH`. " }, { "id": 44,