Skip to content
CCPEDIAby Unity Nodes
App Development

Enable-testing-commands for Sandbox and Canton Console

3 posts114 views4 likesLast activity Jul 2025

  1. WallaceKellyOP

    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?

  2. WallaceKelly 2

    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
    
  3. gyorgybalazsi 2

    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
    )