Skip to content

Use CLI Tools

CLI tools are often the most efficient way for Claude Code to work with external systems.

If you use a service regularly, install and authenticate its CLI:

  • gh for GitHub issues, pull requests, comments, and repo metadata.
  • aws for AWS infrastructure and logs.
  • gcloud for Google Cloud.
  • sentry-cli for Sentry releases and issue context.
  • Product-specific CLIs for tools your team depends on.
Use gh to inspect issue 123, find the relevant files, implement the fix,
run tests, then open a PR.
Use foo-cli --help to learn the tool, then use it to export the current config.
Summarize what changed and do not modify anything yet.

Allowlist safe, repeated commands. Keep destructive or production-impacting commands behind approval.

Examples:

Allow: gh issue view
Allow: gh pr view
Ask: gh pr merge
Ask: aws deploy
Deny: commands that print secrets