Enable-testing-commands for Sandbox and Canton Console

When I start my sandbox like this…

daml start \
   --sandbox-option -C=canton.features.enable-testing-commands=yes

… and then open a Canton console like this…

daml canton-console

… and then try to use a Canton testing command…

sandbox.ledger_api.acs.of_all()

I get this response…

ERROR c.d.c.c.RemoteParticipantReference:participant=sandbox -
The command is currently disabled.
You need to enable it explicitly by setting
`canton.features.enable-testing-commands = yes`
in your Canton configuration file (`.conf`)

Why is this not working?

Because you must set the enable-testing-commands=yes on the Canton instance hosting the Console.

Use the following instead…

daml canton-console \
  -C canton.features.enable-testing-commands=yes