Problem scenario
You run an st2 command, but it fails with an error like this:
Failed to authenticate with credentials provided in the config.
ERROR: 401 Client Error: Unauthorized
MESSAGE: Invalid or missing credentials for url: http://127.0.0.1:9100/tokens
What should you do?
Solution
Run a command like this (but replace "jdoe" and "passwordhere" with your credentials respectively):
st2 login jdoe --password 'passwordhere'
Now run the st2 command(s).