It is now possible to change the name of existing environments, including the primary environment:
Renaming the environments does not cause work interruptions for the connected editors, and it is possible to perform this operation even using the latest version of the CLI:
npx datocms environments:rename old-name new-name