


Don't break Twitch’s ToS or Community Guidelines.Don't encourage others to break the subreddit rules.The following example shows the output from the token command.We encourage folks to use the new Reddit design for the Collections feature that houses our Events & Archives. (The access token is an app access token and is valid for 60 days.) After entering the ID and secret from Step 1, the CLI returns an access token that you’ll use in Step 3. Because this is the first time you’re running the token command in this instance of the CLI, the CLI will prompt you for the client ID and secret you created in Step 1. To get an access token, enter twitch token at the command prompt. If you have trouble installing or running the CLI, get help by posting a note in the #cli-help channel of the TwitchDev Discord server. Use "twitch -help" for more information about a command. config string config file (default is $HOME/.twitch-cli/.twitch-cli.env ) -h, -help help for twitch

Version Returns the current version of the CLI. Token Logs into Twitch and returns an access token according to your client id/secret in the configuration. Mock-api Used to interface with the mock Twitch API.
#TWITCH TV LOGIN INSTALL#
For example, use the following Homebrew command to install the CLI on MacOS or Linux.Ī simple CLI tool for the New Twitch API and Webhook products.Īpi Used to interface with the Twitch APIĬonfigure Configures your Twitch CLI with your Client ID and SecretĮvent Used to interface with Event services, such as Eventsub and Websub.
#TWITCH TV LOGIN DOWNLOAD#
To install the Twitch CLI, go to the Twitch CLI repository and follow the Download instructions in README.md. This example uses the Twitch CLI to generate an OAuth access token that’s required to access Twitch resources. Step 2: Authentication using the Twitch CLI
