Rename key/name of secret using cli

Hello,

How can I rename the KEY/VALUE using doppler CLI?
Example:
TEST_X=TEST_VALUE

then using CLI
TEST_Y=TEST_VALUE

or should I delete the TEST_X=TEST_VALUE then just create a secret for TEST_Y=TEST_VALUE ?

Hi @Dex!

Welcome to the Doppler Community!

There’s currently no way to change the name of a secret via CLI/API. To do this, you’ll need to create a new secret and then delete the old secret.

Let me know if you have any other questions!

Regards,
-Joel