Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/Enable-testing-commands for Sandbox and Canton ConsoleForum ↗

Enable-testing-commands for Sandbox and Canton Console

App Development3 posts74 views4 likesLast activity Jul 2025
WA
WallaceKellyOP
Sep 2024

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?

WA
WallaceKelly
Sep 2024

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
GY
gyorgybalazsi
Jul 2025

You can also apply this config from within the running console:

@ com.digitalasset.canton.config.CantonFeatures.apply(enableTestingCommands = true) 
res1: CantonFeatures = CantonFeatures(
  enablePreviewCommands = false,
  enableTestingCommands = true,
  enableRepairCommands = false
)
← Back to Discussions