Where Is the Stripe CLI Config File?
Stripe CLI uses a single TOML file at ~/.config/stripe/config.toml on all supported systems. The path can be changed with the XDG base directory variable or the config flag.
Last updated
Stripe CLI stores login credentials and project configurations in config.toml under the stripe config directory. Uninstalling the CLI does not delete this file.
The same relative location applies on Windows, macOS, and Linux. Use the config flag for a custom file or set XDG_CONFIG_HOME to relocate the base directory.
Where Stripe CLI stores this, by platform
C:\Users\<user>\.config\stripe\config.toml
<user> is the Windows account name. Equivalent to %USERPROFILE%\.config\stripe\config.toml. If XDG_CONFIG_HOME is set, the file moves to <xdg_dir>\stripe\config.toml where <xdg_dir> is that variable value. Use the config flag to point to another file.
/Users/<user>/.config/stripe/config.toml
<user> is the macOS account name. If XDG_CONFIG_HOME is set, the base changes from ~/.config to the value of that variable. Multiple Stripe accounts can share this file through named projects.
/home/<user>/.config/stripe/config.toml
<user> is the Linux login name. If XDG_CONFIG_HOME is set, the file is at <xdg_dir>/stripe/config.toml where <xdg_dir> is that variable value. Permissions should remain private because the file holds credentials.
Frequently asked questions
How do I use multiple accounts?
Use the project name flag to keep separate project sections in the same config.toml file. Each command can then run in the context of a named project. The config command can list and edit values per project.
Does uninstall remove config?
No. The file remains after uninstall. Delete config.toml manually to clear credentials. Use the edit action of the config command to open the file in the default editor.
Notice an outdated path? Let us know.