Use gh v0.11.0 or later for the "shell" aliases.
Run the following gh alias set commands for each operation. You can confirm the created aliases with gh alias list.
gh alias set listMilestones "api graphql -F owner=':owner' -F name=':repo' -f query='
query ListMilestones(\$name: String\!, \$owner: String\!) {
repository(owner: \$owner, name: \$name) {
milestones(first: 100) {