From db8ce00536a6ef3fec8a36adca5e48b5ff5a8d93 Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Thu, 6 Apr 2023 10:43:11 -0700 Subject: [PATCH] Docs to point cli to selfhost on windows --- docs/cli/overview.mdx | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/docs/cli/overview.mdx b/docs/cli/overview.mdx index 8934d8e076..53f75996a9 100644 --- a/docs/cli/overview.mdx +++ b/docs/cli/overview.mdx @@ -109,15 +109,33 @@ infisical login The CLI is set to connect to Infisical Cloud by default, but if you're running your own instance of Infisical, you can direct the CLI to it using one of the methods provided below. -#### Export environment variable +#### Method 1: Export environment variable You can point the CLI to the self hosted Infisical instance by exporting the environment variable `INFISICAL_API_URL` in your terminal. -```bash -# Example -export INFISICAL_API_URL="https://your-self-hosted-infisical.com/api" -``` + + + ```bash + # Set backend host + export INFISICAL_API_URL="https://your-self-hosted-infisical.com/api" -#### Set manually on every command + # Remove backend host + unset INFISICAL_API_URL + ``` + + + ```bash + # Set backend host + setx INFISICAL_API_URL "https://your-self-hosted-infisical.com/api" + + # Remove backend host + setx INFISICAL_API_URL "" + + # NOTE: Once set or removed, please restart powershell for the change to take effect + ``` + + + +#### Method 2: Set manually on every command Another option to point the CLI to your self hosted Infisical instance is to set it via a flag on every command you run. ```bash