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
add docs for infisical user command
Maidul Islam66ce269f42ba
diff --git a/docs/cli/commands/login.mdx b/docs/cli/commands/login.mdxindex 36abaf94e2..3028ec110c 100644--- a/docs/cli/commands/login.mdx+++ b/docs/cli/commands/login.mdx@@ -9,4 +9,7 @@ infisical login## DescriptionThe 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)\ No newline at end of file++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).\ No newline at end of filediff --git a/docs/cli/commands/user.mdx b/docs/cli/commands/user.mdxnew file mode 100644index 0000000000..38a92bbab3--- /dev/null+++ b/docs/cli/commands/user.mdx@@ -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>diff --git a/docs/cli/overview.mdx b/docs/cli/overview.mdxindex 53f75996a9..32bd069462 100644--- a/docs/cli/overview.mdx+++ b/docs/cli/overview.mdx@@ -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 variableYou 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 commandAnother option to point the CLI to your self hosted Infisical instance is to set it via a flag on every command you run.```bashdiff --git a/docs/mint.json b/docs/mint.jsonindex 850809a4fb..28b2a052f2 100644--- a/docs/mint.json+++ b/docs/mint.json@@ -118,6 +118,7 @@"cli/commands/secrets","cli/commands/export","cli/commands/vault",+ "cli/commands/user","cli/commands/reset"]},