Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
Docs to point cli to selfhost on windows
Maidul Islamdb8ce00536a6
diff --git a/docs/cli/overview.mdx b/docs/cli/overview.mdxindex 8934d8e076..53f75996a9 100644--- a/docs/cli/overview.mdx+++ b/docs/cli/overview.mdx@@ -109,15 +109,33 @@ infisical login<Accordion title="Optional: point CLI to self-hosted">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 variableYou 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"-```+<Tabs>+ <Tab title="Linux/MacOs">+ ```bash+ # Set backend host+ export INFISICAL_API_URL="https://your-self-hosted-infisical.com/api"++ # Remove backend host+ unset INFISICAL_API_URL+ ```+ </Tab>+ <Tab title="Windows Powershell">+ ```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+ ```+ </Tab>+</Tabs>-#### Set manually on every command+#### Method 2: Set manually on every commandAnother option to point the CLI to your self hosted Infisical instance is to set it via a flag on every command you run.```bash