Sgdisk

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.

More Info
The author maintains a [man page] on the web.

Origin
sgdisk is part of the GPT fdisk package and is available on [sourceforge] and on [Rod Smith's website].