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: address feedback
Scott Wilsonb24bd0ef09b4
diff --git a/docs/cli/commands/init.mdx b/docs/cli/commands/init.mdxindex d9a45bc9fd..58f1975ab1 100644--- a/docs/cli/commands/init.mdx+++ b/docs/cli/commands/init.mdx@@ -15,12 +15,4 @@ Link a local project to your Infisical project. Once connected, you can then accThis command creates a `.infisical.json` file containing your Project ID.</Info>-The command lists the projects of the organization that your profile uses. To link a project in another organization, change the default with `infisical profile set-org`. You can also create a profile for that organization with `infisical profile new`. See [profile](./profile).--<Warning>- Don't pass `--org` to link a project from another organization. Later- commands use the organization of the profile and can't find that project.- The command stops and names the two options above.-</Warning>--If you have more than one profile, the command offers to bind this directory to the profile that it used. Commands that run here then select that profile with no flag and no environment variable. Run `infisical profile unbind` to remove the binding.+The command lists the projects of the organization that your profile uses. To link a project in another organization, change the profile default with `infisical profile set-org`. You can also create a profile for that organization with `infisical profile new`. See [profile](./profile).diff --git a/docs/cli/commands/login.mdx b/docs/cli/commands/login.mdxindex 0e6a83d88d..13dd390cf9 100644--- a/docs/cli/commands/login.mdx+++ b/docs/cli/commands/login.mdx@@ -19,7 +19,9 @@ When authenticated, a token is generated and saved in your system Keyring to allTo change where the login credentials are stored, visit the [vaults command](./vault).-A user login is stored as a profile: an account on the specified Infisical instance, with the organization that it uses by default. A user login without flags becomes the default profile for this machine. To store one under a name you choose, and leave the default alone, pass `--save-as`. See [profile](./profile) for how to select from existing profiles.+A user login is stored as a profile: an account on the specified Infisical instance, and the organization you chose for it.++Unless you pass `--save-as` or `--profile`, the CLI names the profile after your account and organization, and makes it the default profile that commands use when you don't specify one. Pass `--save-as <name>` to choose the name yourself. See [profile](./profile) for more.Machine identity logins don't create a profile. They print an access token, which you supply through `INFISICAL_TOKEN` or `--token`.@@ -70,8 +72,9 @@ User authentication is designed for individual developers and supports multipleOutput only the JWT token (useful for scripting and CI/CD).</ParamField><ParamField query="save-as" type="string" optional>- Store this login as the named profile, creating a new profile or replacing- an existing one's session. The new profile isn't automatically selected.+ Store this login as a profile under the specified name. The CLI creates+ that profile, or replaces the stored session of an existing profile if the+ name is already taken.</ParamField><ParamField query="profile" type="string" optional>Sign back in to a profile that already exists, restoring its account,@@ -508,14 +511,14 @@ The login command supports a number of flags that you can use for different auth```#### Description- Stores this login as the named profile. The CLI creates the profile, or replaces the session of an existing profile that already has that name.+ Stores this login under the specified name. The CLI creates that profile, or replaces the profile's stored session if the name is already taken.- A login with `--save-as` does not change the default profile, so other terminals keep the profile that they are already using.+ If you're already logged in, a login with `--save-as` doesn't change which profile is selected, so other terminals keep the profile that they're already using. Select the new one with `--profile <name>`, or make it the default with `infisical profile use <name>`.```bash# Sign in to a second account and keep the first.infisical login --save-as contractor- infisical --profile contractor secrets+ infisical secrets --profile contractor```</Accordion>diff --git a/docs/cli/commands/org.mdx b/docs/cli/commands/org.mdxindex 584c6fd396..092ee49328 100644--- a/docs/cli/commands/org.mdx+++ b/docs/cli/commands/org.mdx@@ -11,7 +11,7 @@ infisical orgThis command shows the organizations that your account can use, and sets the organization that the current profile uses by default.-A profile is a single login: an account on the specified Infisical instance, with the organization that it uses by default. See [profile](./profile) for how the CLI selects a profile.+A profile is a single login: an account on the specified Infisical instance, and the organization you chose for it. See [profile](./profile) for how the CLI selects a profile.### Sub-commands@@ -54,7 +54,7 @@ If you omit the organization, the CLI will ask you to pick one.Pass `--org` to point a single command at another organization. Name the organization by name, slug, or id.```bash-infisical --org globex-inc secrets+infisical secrets --org globex-inc```The default organization of the profile doesn't change. The CLI caches the session for each organization that you use this way.diff --git a/docs/cli/commands/profile.mdx b/docs/cli/commands/profile.mdxindex afde9bc736..7bc632565a 100644--- a/docs/cli/commands/profile.mdx+++ b/docs/cli/commands/profile.mdx@@ -9,7 +9,7 @@ infisical profile## Description-A profile is a single login: an account on the specified Infisical instance, with the organization that it uses by default. Each profile keeps its own session, so you can work in several organizations at the same time.+A profile is a single login: an account on the specified Infisical instance, and the organization you chose for it. Each profile keeps its own session, so you can work in several organizations at the same time.The organization is a setting on a profile, not part of its identity. To use another organization for a single command, pass `--org`. To change the default organization for a profile, run `infisical profile set-org`.@@ -239,7 +239,7 @@ These flags work on every command, not only on `infisical profile`.Use a specific profile for this command.```bash- infisical --profile globex secrets+ infisical secrets --profile globex```<Tip>@@ -248,22 +248,6 @@ These flags work on every command, not only on `infisical profile`.</Tip></Accordion>-- <Accordion title="--org">- Use a specific organization for this command. Name it by name, slug, or id. The default organization of the profile doesn't change.-- ```bash- infisical --org globex-inc secrets- ```-- The CLI caches the session for each organization that you use this way.-- <Tip>- The `org` flag can be substituted with the `INFISICAL_ORG` environment- variable.- </Tip>-- </Accordion></AccordionGroup>### Examples@@ -292,19 +276,10 @@ These flags work on every command, not only on `infisical profile`.</Accordion>- <Accordion title="Run one command against another organization">- ```bash- infisical --org globex-inc secrets- ```-- The default organization of the profile stays as it was.-- </Accordion>-<Accordion title="Log in to a second account">```bashinfisical login --save-as contractor- infisical --profile contractor secrets+ infisical secrets --profile contractor```</Accordion>diff --git a/docs/cli/commands/user.mdx b/docs/cli/commands/user.mdxindex 6f98b7df3c..d77320ec77 100644--- a/docs/cli/commands/user.mdx+++ b/docs/cli/commands/user.mdx@@ -11,7 +11,7 @@ infisical userThis command manages the accounts that are logged in to the CLI.-Each login is stored as a profile: an account on the specified Infisical instance, with the organization that it uses by default. See [profile](./profile) to create profiles, to select one per terminal or per directory, and to work in several organizations at the same time.+Each login is stored as a profile: an account on the specified Infisical instance, and the organization you chose for it. See [profile](./profile) to create profiles, to select one per terminal or per directory, and to work in several organizations at the same time.### Sub-commands