Does the inficisal cli have a command to check if ...
# infisical-help
d
Does the inficisal cli have a command to check if it has an active auth session (not simply a token)? I'm looking for something like
gh auth status
I'm currently using
infisical secrets folders get --domain "$INFISICAL_API_URL"
but this presents 2 issues. 1. If the cli is not authenticated, it automatically tries to authenticate. 2. When authenticating, the domain flag is ignored and I'm prompted to pick (US, EU, Self Hosted)
👀 1
p
Hey Duncan! Thanks for flagging this. I think that'll be worth adding to the CLI functionality! I'm curious your use case here. Are you scripting this in CI/a daemon, or is this a dev-machine workflow?
d
Wonderful, thanks. I'm using it in the
"postStartCommand"
hook of a dev container. I could pass infisical secrets into the devcontainer, but I'm using infisical to avoid that in the first place. I'm using docker volumes to cache
$HOME/.infisical
and
$HOME/infisical-keyring
across builds. That way the devcontainer triggers a browser based login on the first build. On a related topic, I was wondering if the infisical cli supports something like an
$INFISICAL_HOME
env var? This would make repointing the CLI generated files at a container's subvolume cleaner.