There are multiple options available to switch from Classic queues version 1(CQv1) to Classic queues version 2(CQv2).
Option 1:
CQv2 can be enabled via rabbitmq.conf file as shown below, where 2 refers to CQv2. When you use this option, all new queues created after the configuration change will be CQv2 queues. It will not apply changes to existing CQv1 queues.
classic_queue.default_version = 2
Option 2:
Set a policy with queue-version as key as shown in the example below. This would apply changes immediately but only to queues selected by the regular expression.
rabbitmqctl set_policy cq_version "^cq\." '{"queue-version": 2}' --priority 1 --apply-to queues
Option 3:
Declare it in the client using the optional argument "x-queue-version", which will apply to only the queue created by the app.