The fdisk command is the all purpose command for re-configuring partitions from the command line
Use the “m” option while inside the command to see the options