Graphite CLI V1 Command Names
The upcoming CLI v1 release will include a shift in the naming scheme for Graphite CLI commands. The topline summary is that we are removing the noun-verb model and moving to a flat command naming scheme. Thank you to the members of our community who gave us feedback on these changes!
For those of you who have been with us for a while and gotten used to the commands as they've been for almost two years, don't worry! The old names will continue to work for the next few versions, with gentle reminders to use the new names.
And perhaps more importantly, we are also introducing a custom aliasing system that allows you to use any command names you want. You can configure it by editing the .graphite_aliases
file in your home directory, which will appear as soon as you update to v1 (or turn on the preview via environment variable).
See the Legacy alias preset subpage for a list of aliases that replicates the old command names.
If you're reading this before v1's release and just can't wait to check out the new names and aliasing system, you can export GT_RENAME=1
in your shell config file (i.e. .zshrc
/.bashrc
) to enable aliasing and the new command names.
We will be updating the rest of the documentation with the new command names soon following the release of v1.
Command name | Default alias | Old command name |
---|---|---|
gt create | gt c | gt branch create |
gt modify | gt m | gt commit amend |
gt modify --commit | gt m -c | gt commit create |
gt submit | gt s | gt downstack submit |
gt submit --stack | gt ss | gt stack submit |
gt sync | gt repo sync | |
gt checkout | gt co | gt branch checkout |
gt log | gt l | gt log |
gt log short | gt ls | gt log short |
gt log long | gt ll | gt log long |
gt info | gt branch info | |
gt up | gt u | gt branch up |
gt down | gt d | gt branch down |
gt top | gt t | gt branch top |
gt bottom | gt b | gt branch bottom |
gt auth | gt auth | |
gt init | gt repo init | |
gt config | gt user <config>/gt repo <config> | |
gt move | gt upstack onto | |
gt reorder | gt downstack edit | |
gt rename | gt rn | gt branch rename |
gt delete | gt dl | gt branch delete |
gt pop | gt branch unbranch | |
gt get | gt downstack get | |
gt fold | gt branch fold | |
gt split | gt sp | gt branch split |
gt squash | gt sq | gt branch squash |
gt restack | gt r | gt <scope> restack |
gt modify --interactive-rebase | gt branch edit | |
gt track | gt tr | gt stack/downstack track |
gt untrack | gt utr | gt branch untrack |
gt feedback | gt feedback | |
gt dash | gt dash | |
gt docs | gt docs | |
gt changelog | gt changelog | |
gt continue | gt cont | gt continue |
gt merge | gt mg | gt downstack merge |
gt completion | gt completion | |
gt fish | gt fish |