GitHub CLI 2 · Actions and releases

Trigger a workflow

Start a workflow that has a workflow_dispatch trigger.

gh workflow run deploy.yml --ref main

Official GitHub CLI 2 documentation

More actions and releases commands

All actions and releases commands · GitHub CLI 2 cheatsheet

Was this page helpful?