Skip to content

Commit

Permalink
update docs for change cli api
Browse files Browse the repository at this point in the history
  • Loading branch information
maidul98 committed Jan 21, 2023
1 parent 7cc341e commit d3a6977
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions docs/cli/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The Infisical CLI provides a way to inject environment variables from the platfo
brew install infisical/get-cli/infisical
```

## Updates
### Updates

```bash
brew upgrade infisical
Expand All @@ -34,7 +34,7 @@ The Infisical CLI provides a way to inject environment variables from the platfo
scoop install infisical
```

## Updates
### Updates

```bash
scoop update infisical
Expand Down Expand Up @@ -99,14 +99,28 @@ The Infisical CLI provides a way to inject environment variables from the platfo
</Tab>
</Tabs>

## Log in to the Infisical CLI
### Log in to the Infisical CLI

```bash
infisical login
```

## Set domain if self-hosted
<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
You can point the CLI to the self hosted Infisical instance by exporting the environment variable `API_URL` in your terminal.

```bash
export INFISICAL_URL="https://your-self-hosted-infisical.com/api"
# Example
export API_URL="https://your-self-hosted-infisical.com/api"
```

#### 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
# Example
infisical <any-command> --domain="https://your-self-hosted-infisical.com/api"
```
</Accordion>

0 comments on commit d3a6977

Please sign in to comment.