Description
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.
How a profile is selected
Every command selects a profile in this order:- The
--profileflag. - The
INFISICAL_PROFILEenvironment variable. - A directory that you bound to a profile, with
infisical profile bindor duringinfisical init. - The default profile for the machine, set with
infisical profile use.
Your first login creates a profile for you. The name comes from your account
and organization, for example
[email protected].Sub-commands
infisical profile list
infisical profile list
List every profile on this machine, with its account, organization, instance, and session state.The current profile is marked with an asterisk.
infisical profile current
infisical profile current
Show which profile a command run in the current terminal or directory will use, and why it was selected.
Flags
--plain
--plain
Print only the profile name. Use this in a shell prompt.
infisical profile new
infisical profile new
Create a profile for another organization without logging in again. The new profile reuses the account and instance that you’re signed in to.If you omit
--org, the CLI will ask you to pick an organization.Flags
--use
--use
Also make the new profile the default for this machine.
--pin
--pin
Also pin this terminal to the new profile. Run the command through
eval,
because a command can’t change the environment of the shell that started it.infisical profile use
infisical profile use
Make a profile the default for this machine. The default applies when no flag, no environment variable, and no bound directory selects a profile.
infisical profile pin
infisical profile pin
Pin the current terminal to a profile. Other terminals keep the profile that they already use.The command prints an export statement. Run it through
eval to apply it to the shell that you’re in.In PowerShell, run
infisical profile pin globex | Invoke-Expression. In
cmd.exe, or in a script, set INFISICAL_PROFILE=globex yourself.infisical profile unpin
infisical profile unpin
Remove the pin from the current terminal. The terminal falls back to a bound directory, or to the default profile.
infisical profile bind
infisical profile bind
Bind a directory, and every directory under it, to a profile. Commands that run inside it select that profile with no flag and no environment variable.If you omit the path, the CLI binds the current directory. If bindings overlap, the nearest one wins.
infisical init also offers to bind a directory, if you have more than one profile.The binding is stored in your own configuration, never in the repository, so
it doesn’t affect anyone else who clones the project.
infisical profile unbind
infisical profile unbind
Remove the profile binding from a directory.If you omit the path, the CLI removes the binding that covers the current directory.
infisical profile set-org
infisical profile set-org
Set the organization that a profile uses by default. The change persists for future commands.
infisical profile rename
infisical profile rename
Rename a profile. The stored session, the default-profile setting, and any directory bindings follow the new name.
infisical profile delete
infisical profile delete
Delete a profile and remove its stored session. The CLI revokes the session on the server as well.
Flags
--local-only
--local-only
Remove the profile without revoking its session on the server.
Global flags
These flags work on every command, not only oninfisical profile.
--profile
--profile
Use a specific profile for this command.
Examples
Work in two organizations at once
Work in two organizations at once
Give each repository its own organization
Give each repository its own organization
Log in to a second account
Log in to a second account