FAQ
Frequently Asked Questions about Infisical CLI
Frequently asked questions about the CLI can be found on this page. If you can’t find the answer you are looking for, please create an issue on our GitHub repository or join our Slack channel for additional support.
I'm getting a Keyring related error message when trying to login
I'm getting a Keyring related error message when trying to login
Can I fetch secrets with Infisical if I am offline?
Can I fetch secrets with Infisical if I am offline?
Yes. If you have previously retrieved secrets for a specific project and environment (such as dev, staging, or prod), the run
/secret
command will utilize the saved secrets, even when offline, on subsequent fetch attempts.
Can I upload the .infisical.json file that was generated?
Can I upload the .infisical.json file that was generated?
Yes. This is simply a configuration file and contains no sensitive data.
Where can I find my Project ID?
Where can I find my Project ID?
Visit the Infisical website and navigate to a project of your choice. Once on the project page, access the Project Settings from the sidebar. Within the Project name section, click the “Copy Project ID” button for copying the current Project ID to clipboard, or simply obtain it from the URL of the current page.
How do I use custom headers with the Infisical CLI?
How do I use custom headers with the Infisical CLI?
The Infisical CLI supports custom HTTP headers for requests to servers that require additional authentication. Set these headers using the INFISICAL_CUSTOM_HEADERS
environment variable:
After setting this environment variable, run your Infisical commands as usual.
Why would I need to use custom headers?
Why would I need to use custom headers?
Custom headers are necessary when your Infisical server is protected by services like Cloudflare Access or other reverse proxies that require specific authentication headers. Without this feature, you would need to implement security workarounds that might compromise your security posture.
What format should I use for the custom headers?
What format should I use for the custom headers?
Custom headers should be specified in the format headername1=headervalue1 headername2=headervalue2
, with spaces separating each header-value pair. For example: