Skip to content

Work with Idsec cache

The CLI caches login information in the local machine's keystore or, when a keystore does not exist, in an encrypted folder (located in $HOME/.idsec/cache). The cached information is used to run commands until the authentication tokens expire or are otherwise invalided.

You can set the cache folder with the IDSEC_KEYRING_FOLDER env variable. To force Idsec to work only with the filesystem cache, use the IDSEC_BASIC_KEYRING environment variable

If you want to ignore the cache when logging in, use the -f flag:

idsec login --force

To clear the cache, run idsec cache clear or, when using an encrypted folder, remove the files from the $HOME/.idsec/cache folder.