# Installer twitch-cli avec Homebrew, Nix, winget, chocolatey

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de twitch-cli pour les workflows d'agents IA.

## installation

```sh
sudo av install brew:twitch-cli
```

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install twitch-cli
```

  Preuve: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#twitch-cli
```

  Preuve: nixpkgs package indexes: pkgs/by-name/tw/twitch-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

### Windows

- winget (92%):

```sh
winget install --id Twitch.TwitchCLI -e
```

  Preuve: Windows Package Manager source index: Twitch.TwitchCLI from https://cdn.winget.microsoft.com/cache/source.msix

- Chocolatey (92%):

```sh
choco install twitch
```

  Preuve: Chocolatey community package catalog: twitch from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','trafficlight-chrome'

## Faits du paquet

- **Clé du paquet:** brew:twitch-cli
- **Gestionnaire de paquets:** Homebrew
- **Page du gestionnaire de paquets:** <https://formulae.brew.sh/formula/twitch-cli>
- **Version:** 1.1.25
- **Résumé source:** CLI to make developing on Twitch easier
- **Page d'accueil:** <https://github.com/twitchdev/twitch-cli>
- **Dépôt:** <https://github.com/twitchdev/twitch-cli>
- **Licence:** Apache-2.0
- **Archive source:** <https://github.com/twitchdev/twitch-cli/archive/refs/tags/v1.1.25.tar.gz>
- **Dernière mise à jour:** 2026-07-26T03:12:23+02:00
- **Généré:** 2026-08-04T22:13:35+00:00

## exécutables

- twitch (cli)
- twitch (alias)

## Dépendances de compilation

- go

## Comportement d'installation

- hook post-installation: non défini
- Bouteille: disponible sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Version et fraîcheur

- page générée: 2026-08-04
- version du gestionnaire: 1.1.25
- gestionnaire mis à jour: 2026-07-26
- données locales: OK
- dépôt amont: https://github.com/twitchdev/twitch-cli
- dernière version détectée: v1.1.25 (à jour)
## Historique du projet et usages

Twitch CLI is Twitch's official command-line tool for Twitch developer workflows. It packages API calls, OAuth token generation, mock API data, and EventSub testing into a single `twitch` executable.

### Historique du projet

Twitch announced the CLI on 2020-12-17 after Developer Day, alongside EventSub. The initial rationale was practical: developers needed a supported way to test webhook/EventSub migrations locally, generate tokens, and query Twitch APIs without building staging servers or relying on extra tunneling tools.

From the start, Twitch framed the CLI as a Twitch-supported open-source project on GitHub, intended to accept community contributions and grow into additional EventSub and developer-product support. The current official docs describe installation through Homebrew on macOS/Linux, Scoop on Windows, and manual release downloads.

### Historique d'adoption

The CLI's adoption is tied to Twitch's developer ecosystem rather than general-purpose programming. Twitch's own community resources list it as the official CLI, created by Twitch and contributors, for testing API calls, mock APIs, EventSub WebSocket servers, and mock EventSub payloads.

Package-manager adoption follows that developer support path: Homebrew and Scoop are documented by Twitch as installation methods, while the input facts also show availability through Nix and Windows package channels.

### Modes d'utilisation

Typical use starts with `twitch configure`, which stores a client ID and client secret in the default config file, then uses commands such as `twitch token`, `twitch api`, `twitch mock-api`, and `twitch event`.

For local development, users generate mock data with `twitch mock-api generate`, start a mock server on localhost, trigger webhook events, and test EventSub WebSocket client behavior including subscriptions, reconnects, close messages, and status changes.

### Pourquoi les passionnés de paquets s'y intéressent

Twitch CLI is significant to package nerds because it turns a vendor API platform into a locally scriptable test harness. It is not just a convenience wrapper around HTTP calls; it also packages mock state, OAuth token flows, webhook signing behavior, and EventSub simulations.

Its official Homebrew and Scoop instructions show the package-manager role clearly: Twitch wanted developers to install and update the tool through familiar package workflows instead of copying binaries by hand.

### Chronologie

- 2020-12-17: Twitch announces the official Twitch CLI in open beta.
- 2021: Official docs show mock API generation examples and local server workflows.
- 2020s: Official docs list Homebrew, Scoop, and manual releases as supported installation paths.
- 2020s: Twitch documents EventSub WebSocket simulation and mock subscription endpoints in the CLI.

### Related projects

- Twitch EventSub is the main API product that motivated the CLI's event-testing features.
- Twitch Developer Day introduced the products around which the CLI was announced.
- Homebrew, Scoop, and the twitchdev GitHub organization are the main packaging and source distribution channels.

### Sources

- Official Twitch CLI docs: https://dev.twitch.tv/docs/cli/
- Official WebSocket EventSub testing docs: https://dev.twitch.tv/docs/cli/websocket-event-command
- Official mock API docs: https://dev.twitch.tv/docs/cli/mock-api-command
- Twitch announcement blog: https://blog.twitch.tv/en/2020/12/17/introducing-the-twitch-command-line-interface-tool/
- Twitch community resources: https://dev.twitch.tv/code/


## Notes de sécurité

narrow executable package without higher-risk signals.

- **Risque Geiger:** vert / faible
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.twitch-cli/.twitch-cli.env

## Credential files

- Unix: ~/.twitch-cli/.twitch-cli.env
## Détails de la base source

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** twitch-cli
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Autres enregistrements de gestionnaires de paquets

- Nix - twitch-cli: normalized package name match | nixpkgs package indexes: pkgs/by-name/tw/twitch-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- winget - Twitch.TwitchCLI: normalized package name match | Windows Package Manager source index: Twitch.TwitchCLI from https://cdn.winget.microsoft.com/cache/source.msix
- Chocolatey - twitch: installed executable or alias match | Chocolatey community package catalog: twitch from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','trafficlight-chrome'


## Liens liés

- [Source-control packages](https://pkg.so/fr/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/fr/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/fr/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/fr/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://pkg.so/fr/brew/go/) - Build dependency declared by Homebrew.
- [vulcain](https://pkg.so/fr/brew/vulcain/) - Shares pkgdb curated category or tags: api, cli, developer-tools.
- [libgit2](https://pkg.so/fr/brew/libgit2/) - Shares pkgdb curated category or tags: api, cli, developer-tools.
- [grpc](https://pkg.so/fr/brew/grpc/) - Shares pkgdb curated category or tags: api, cli, developer-tools.
- [buf](https://pkg.so/fr/brew/buf/) - Shares pkgdb curated category or tags: api, cli, developer-tools.
- [stripe-cli](https://pkg.so/fr/brew/stripe-cli/) - Shares pkgdb curated category or tags: api, cli, developer-tools.
- [mailpit](https://pkg.so/fr/brew/mailpit/) - Shares pkgdb curated category or tags: api, cli, developer-tools.
- [fastapi](https://pkg.so/fr/brew/fastapi/) - Shares pkgdb curated category or tags: api, cli, developer-tools.
- [fern-api](https://pkg.so/fr/brew/fern-api/) - Shares pkgdb curated category or tags: api, cli, developer-tools.
- [oauth2l](https://pkg.so/fr/brew/oauth2l/) - Local package facts share a topical domain. Shared terms: api, cli, developer, developer-tools, oauth.
- [cargo-public-api](https://pkg.so/fr/brew/cargo-public-api/) - Local package facts share a topical domain. Shared terms: api, cli, developer, developer-tools.
- [fake-gcs-server](https://pkg.so/fr/brew/fake-gcs-server/) - Local package facts share a topical domain. Shared terms: api, cli, developer, developer-tools.

## Combined YAML source

View the package source record on GitHub. [combined/twitch-cli.yml](https://github.com/mxcl/pkgdb/blob/main/combined/twitch-cli.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
