In an earlier blog post, I wrote about the Content Hub ONE CLI and how to add your tenant. To add a tenant you need to add Organization ID, tenant ID, Client ID and Client Secret. But where are these credentials actually stored? It depends on your OS. These are stored in the Keychain for Mac OS, and for Windows, it's stored in the Credential Manager.
The cool thing with Windows is that you can also override how the credentials are stored. By adding the a user variable to the Environment variables, we can also force the CLI to store the credentials to disk. You can do this by adding the SC_CH_ONE_CREDENTIALS_FALLBACK to the User variables. Set the value to true.
%UserProfile%\.sitecore\ch-one-cli
This is how it will look in the folder.
Don't like reading? No worries, Sebastian Winter has also created an informative video about the Content Hub ONE CLI. You can watch it on YouTube.
Another cool thing about the CLI is that you can also output the list of tenants to JSON. With this feature, it's possible to reuse the information and pipe it into another command. You can output the list as JSON with the following command:
ch-one-cli tenant list --output JSON
Until next time!