sgdisk is a command-line program for manipulating GPT partition tables. It is intended to be used in scripts, and is also useful for experts making quick changes.
The author maintains a [man page] on the web.
- GPT Partition
- Partitioning guidelines