gh alias export > aliases.yml

Category: GitHub CLI

gh alias export > aliases.yml

Export all aliases to a YAML file

Dumps every alias as YAML to standard output, redirected here into aliases.yml. The file round-trips with gh alias import, making aliases portable across machines. Export before wiping a config or setting up a new workstation.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.