From 68b137fb4adf238113b7c990362410178991033c Mon Sep 17 00:00:00 2001 From: ruokun-niu Date: Wed, 15 Oct 2025 16:54:21 -0700 Subject: [PATCH 1/2] added a note for using the Drasi cli installer in windows constrained mode Signed-off-by: ruokun-niu --- docs/shared-content/installation/drasi-cli/cli-installation.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/shared-content/installation/drasi-cli/cli-installation.md b/docs/shared-content/installation/drasi-cli/cli-installation.md index 90bd84a..300c84b 100644 --- a/docs/shared-content/installation/drasi-cli/cli-installation.md +++ b/docs/shared-content/installation/drasi-cli/cli-installation.md @@ -7,6 +7,7 @@ curl -fsSL https://raw.githubusercontent.com/drasi-project/drasi-platform/main/c {{< tab header="Windows PowerShell" lang="powershell" >}} iwr -useb "https://raw.githubusercontent.com/drasi-project/drasi-platform/main/cli/installers/install-drasi-cli.ps1" | iex {{< /tab >}} + {{< tab header="Linux" lang="shell" >}} wget -q "https://raw.githubusercontent.com/drasi-project/drasi-platform/main/cli/installers/install-drasi-cli.sh" -O - | /bin/bash {{< /tab >}} @@ -27,6 +28,8 @@ The [readme.md](https://github.com/drasi-project/drasi-platform/blob/main/cli/RE {{% /tab %}} {{< /tabpane >}} +> **Note:** The Drasi CLI installation script is not supported in [Windows PowerShell Constrained Language Mode](https://devblogs.microsoft.com/powershell/powershell-constrained-language-mode/). If you are running in a constrained environment, please use the **Binaries** tab to download and manually install the CLI. + > If you encounter sudo-related errors during installation (such as "no new privileges" flag restrictions in certain containerized or restricted environments), you can install the Drasi CLI to a user directory instead of the default system-wide location. Set the DRASI_INSTALL_DIR environment variable to a directory in your home folder before running the installation script. Below is the sample script for Linux: > ```bash > export DRASI_INSTALL_DIR="$HOME/.local/bin" From c341836455f1c2811b74bd738e84d09f315b7d96 Mon Sep 17 00:00:00 2001 From: ruokun-niu Date: Wed, 15 Oct 2025 16:56:26 -0700 Subject: [PATCH 2/2] nit Signed-off-by: ruokun-niu --- docs/shared-content/installation/drasi-cli/cli-installation.md | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/shared-content/installation/drasi-cli/cli-installation.md b/docs/shared-content/installation/drasi-cli/cli-installation.md index 300c84b..d2a1429 100644 --- a/docs/shared-content/installation/drasi-cli/cli-installation.md +++ b/docs/shared-content/installation/drasi-cli/cli-installation.md @@ -7,7 +7,6 @@ curl -fsSL https://raw.githubusercontent.com/drasi-project/drasi-platform/main/c {{< tab header="Windows PowerShell" lang="powershell" >}} iwr -useb "https://raw.githubusercontent.com/drasi-project/drasi-platform/main/cli/installers/install-drasi-cli.ps1" | iex {{< /tab >}} - {{< tab header="Linux" lang="shell" >}} wget -q "https://raw.githubusercontent.com/drasi-project/drasi-platform/main/cli/installers/install-drasi-cli.sh" -O - | /bin/bash {{< /tab >}}