canton-network-docs/CLI Tools
Canton Console
The Canton Console is an interactive Scala REPL that connects to Canton nodes for administration, debugging, and automation. It provides direct access to participant, sequencer, and mediator operations through a typed API.
For full operational documentation, see the Global Synchronizer section, which covers node setup and management in detail. This page provides a brief orientation to the Console as a development and operations tool.
What you can do with the Console:
Sequencer node — Manages message ordering for a synchronizer.
Mediator node — Handles transaction confirmation for a synchronizer.
The Console prompt appears after the node finishes initializing. Node references (
This is useful for managing nodes in staging or production environments without SSH access to the node machine.
Scripts have access to the same node references and APIs as the interactive Console. Common uses include:
This is the fastest way to explore the API without referring to documentation.
Overview
The Console is bundled with the Canton distribution. When you start a Canton process, the Console is available as an interactive shell. You can also connect a remote Console to a running node.For operational guidance — node setup, party management, topology administration, debugging workflows — see the Canton Console group under Global Synchronizer. This page focuses on the Console as a CLI development tool.
- Party management — Create parties, list hosted parties, manage party-to-participant mappings
- Package management — Upload DAR files, inspect deployed packages, check package dependencies
- Synchronizer connections — Connect participants to synchronizers, list connections, manage reconnection
- Topology management — View and modify the topology state (key rotations, namespace delegations, party allocations)
- Health monitoring — Check node status, view active connections, inspect processing queues
- Debugging — Inspect transaction trees, check conflict states, trace command processing
Quick Examples
Node References
The Console organizes operations by node type. Each node type exposes a different set of commands: Validator (participant) — The most commonly used reference. The console object is namedparticipant. Handles party management, package uploads, ledger operations, and synchronizer connections.
Running the Console
Embedded Console
When you start Canton with a configuration file, the Console starts automatically:participant, sequencer, mediator) are pre-bound based on your configuration.
Remote Console
You can connect a Console to a node running elsewhere:Scripting
The Console supports loading Scala scripts for repeatable operations:- Automated party setup for test environments
- Topology configuration for multi-node deployments
- Health check routines that run periodically
- Data export scripts for auditing
Tab Completion
The Console provides tab completion for discovering available commands. Type a node reference followed by a period, then press Tab:Related Pages
- Global Synchronizer introduction — Operational context for Console use
- Validator roles — Understanding the nodes you manage through the Console