Practice vocabulary for the GitHub CLI (gh) including creating PRs, reviewing, managing issues, triggering workflows, and using gh api for advanced access.
0 / 5 completed
1 / 5
Which gh CLI command creates a new pull request from the current branch?
'gh pr create' opens an interactive prompt (or accepts flags) to create a pull request from the current branch to the base branch, without needing to visit the GitHub web UI.
2 / 5
To submit a review (approve, request changes, or comment) on a pull request using the CLI, you would use _____.
'gh pr review' allows you to approve, request changes, or leave a comment review on a pull request directly from the terminal.
3 / 5
To create a new GitHub issue from the terminal, the correct command is _____.
'gh issue create' opens an interactive prompt to create a new issue, accepting a title, body, labels, and assignees as flags or interactive inputs.
4 / 5
To manually trigger a GitHub Actions workflow from the command line, you would use _____.
'gh workflow run' triggers a workflow_dispatch event for a specified workflow file, useful for manually starting deployments or batch jobs without pushing a commit.
5 / 5
When the built-in gh CLI commands are not sufficient, developers use _____ to make arbitrary calls to the GitHub REST or GraphQL API.
'gh api' lets you make authenticated HTTP requests to any GitHub REST or GraphQL API endpoint, using the stored credentials from 'gh auth login' — useful for automation beyond what built-in commands support.