Developers

Console Commands

Consume includes console commands you can run from your Craft project’s directory.

Tokens

consume/tokens/refresh

Refreshes the stored access token for an OAuth client, even when it hasn’t expired. Run it to test a client’s connection or to refresh a token on a schedule outside of normal requests.

OptionDescriptionDefault
--handleThe handle of the OAuth client whose token to refresh. Required.
php craft consume/tokens/refresh --handle=myClient