Interview Prep/CI/CD/Rapid-Fire Commands

Rapid-fire: how do you trigger a GitHub Actions workflow from the CLI and watch it?

BeginnerProductionRapid-Fire Commands
Answer
gh workflow run deploy.yml -f env=staging -f version=1.7.0
gh run list --workflow=deploy.yml --limit 5
gh run watch                       # pick a run interactively
gh run view <run-id> --log-failed
gh run rerun <run-id> --failed
All CI/CD questions

More on Rapid-Fire Commands