mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
add docs for infisical user command
This commit is contained in:
@@ -9,4 +9,7 @@ infisical login
|
||||
|
||||
## Description
|
||||
The CLI uses authentication to verify your identity. When you enter the correct email and password for your account, a token is generated and saved in your system Keyring to allow you to make future interactions with the CLI.
|
||||
If you want to change where the login credentials are stored, visit the [vaults command](./vault)
|
||||
|
||||
To change where the login credentials are stored, visit the [vaults command](./vault).
|
||||
|
||||
If you have added multiple users, you can switch between the users by using the [user command](./user).
|
||||
29
docs/cli/commands/user.mdx
Normal file
29
docs/cli/commands/user.mdx
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
title: "infisical user"
|
||||
description: "Manage logged in users"
|
||||
---
|
||||
|
||||
```bash
|
||||
infisical user
|
||||
```
|
||||
|
||||
## Description
|
||||
This command allows you to manage the current logged in users on the CLI
|
||||
|
||||
### Sub-commands
|
||||
<Accordion title="infisical user switch" defaultOpen="true">
|
||||
Use this command to switch between profiles that are currently logged into the CLI
|
||||
|
||||
```bash
|
||||
infisical user switch
|
||||
```
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="infisical user update domain">
|
||||
With this command, you can modify the backend API that is utilized for all requests associated with a specific profile.
|
||||
For instance, you have the option to point the profile to use either the Infisical Cloud or your own self-hosted Infisical instance.
|
||||
|
||||
```bash
|
||||
infisical user update domain
|
||||
```
|
||||
</Accordion>
|
||||
@@ -109,7 +109,10 @@ 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.
|
||||
|
||||
#### Method 1: Export environment variable
|
||||
#### Method 1: Use the updated CLI
|
||||
Beginning with CLI version V0.4.0, it is now possible to choose between logging in through the Infisical cloud or your own self-hosted instance. Simply execute the `infisical login` command and follow the on-screen instructions.
|
||||
|
||||
#### Method 2: 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.
|
||||
|
||||
<Tabs>
|
||||
@@ -135,7 +138,7 @@ You can point the CLI to the self hosted Infisical instance by exporting the env
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
#### Method 2: Set manually on every command
|
||||
#### Method 3: 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
|
||||
|
||||
@@ -118,6 +118,7 @@
|
||||
"cli/commands/secrets",
|
||||
"cli/commands/export",
|
||||
"cli/commands/vault",
|
||||
"cli/commands/user",
|
||||
"cli/commands/reset"
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user