mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-05 17:26:36 +00:00
Merge pull request #1379 from Grraahaam/doc/cli-history
doc(cli): HISTIGNORE recommendation
This commit is contained in:
@@ -135,3 +135,38 @@ Another option to point the CLI to your self hosted Infisical instance is to set
|
|||||||
infisical <any-command> --domain="https://your-self-hosted-infisical.com/api"
|
infisical <any-command> --domain="https://your-self-hosted-infisical.com/api"
|
||||||
```
|
```
|
||||||
</Accordion>
|
</Accordion>
|
||||||
|
|
||||||
|
## History
|
||||||
|
|
||||||
|
Your terminal keeps a history with the commands you run. When you create Infisical secrets directly from your terminal, they'll stay there for a while.
|
||||||
|
|
||||||
|
For security and privacy concerns, we recommend you to configure your terminal to ignore those specific Infisical commands.
|
||||||
|
|
||||||
|
<Accordion title="Ignore commands">
|
||||||
|
|
||||||
|
<Tabs>
|
||||||
|
<Tab title="Unix/Linux">
|
||||||
|
<Tip>
|
||||||
|
`$HOME/.profile` is pretty common but, you could place it under `$HOME/.profile.d/infisical.sh` or any profile file run at login
|
||||||
|
</Tip>
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cat <<EOF >> $HOME/.profile && source $HOME/.profile
|
||||||
|
|
||||||
|
# Ignoring specific Infisical CLI commands
|
||||||
|
DEFAULT_HISTIGNORE=$HISTIGNORE
|
||||||
|
export HISTIGNORE="*infisical secrets set*:$DEFAULT_HISTIGNORE"
|
||||||
|
EOF
|
||||||
|
```
|
||||||
|
|
||||||
|
</Tab>
|
||||||
|
<Tab title="Windows">
|
||||||
|
If you're on WSL, then you can use the Unix/Linux method.
|
||||||
|
|
||||||
|
<Tip>
|
||||||
|
Here's some [documentation](https://superuser.com/a/1658331) about how to clear the terminal history, in PowerShell and CMD
|
||||||
|
</Tip>
|
||||||
|
|
||||||
|
</Tab>
|
||||||
|
</Tabs>
|
||||||
|
</Accordion>
|
||||||
Reference in New Issue
Block a user