This is simple command-line GPT partition editor. It can print tables, fix them, check consistency, add and remove partitions (in edit mode).