For the complete documentation index, see llms.txt. This page is also available as Markdown.

GridGain CLI Tool

Reference for the GridGain 9 CLI commands for managing SQL, clusters, nodes, snapshots, recovery, security, replication, and CDC.

For how to run the CLI in interactive and non-interactive mode, see Using the CLI Tool.

SQL Commands

These commands help you execute SQL queries against the cluster.

sql

Executes SQL query or enters the interactive SQL editor mode if no SQL query is specified.

Syntax

sql [--jdbc-url=<jdbc>] [--plain] [--timed] [--query-timeout=<seconds>] [--file=<file>] [--profile=<profileName>] [--verbose] <command>

Parameters

Parameter
Type
Required
Description

‑‑jdbc‑url

Option

No

JDBC url to GridGain cluster (e.g., 'jdbc:ignite:thin://127.0.0.1:10800').

‑‑plain

Flag

No

Display output with plain formatting.

‑‑timed

Flag

No

Display query execution time, as measured on the client, after the command output. In interactive mode the time will be displayed after each command.

‑‑query‑timeout

Option

No

Number of seconds a query can run before it is aborted. 0, the default, means no limit. In interactive mode, the timeout applies to every query in the session.

‑‑file

Option

No

Path to file with SQL commands to execute.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

<command>

Argument

Yes

SQL query to execute.

Example


sql planner invalidate-cache

Invalidates SQL planner cache.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑tables

Option

No

Comma-separated list of tables.

‑‑url

Option

No

URL of cluster endpoint. It can be any node URL. If not set, the default URL from the profile settings will be used.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


CLI Configuration Commands

These commands help you configure GridGain CLI tool profiles and settings.

cli config profile create

Creates a profile with the given name.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑activate

Flag

No

Activate new profile as current.

‑‑copy-from

Option

No

Profile whose content will be copied to new one.

‑‑verbose

Flag

No

Show additional information: logs, REST calls..

<profileName>

Argument

Yes

Name of new profile.

Example


cli config profile activate

Activates the profile identified by name.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

<profileName>

Argument

Yes

Name of profile to activate.

Example


cli config profile list

Lists configuration profiles.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example

When the output goes to a terminal, the active profile is marked with an asterisk. When the output is redirected or piped, only the profile names are printed.


cli config profile show

Gets the name of the current profile.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


cli config get

Gets the value for the specified configuration key.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

<key>

Argument

Yes

Property name.

Example


cli config set

Sets configuration parameters. Pass one or more key=value pairs, separated by spaces.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

<String=String>...

Arguments

Yes

CLI configuration parameters.

Example

This command produces no output on success.


cli config show

Shows the currently active configuration.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


cli config remove

Removes the specified configuration key.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

<key>

Argument

Yes

Property name.

Example

This command produces no output on success.


Cluster Commands

These commands help you manage your cluster.

cluster config show

Shows configuration of the cluster indicated by the endpoint URL and, optionally, by a configuration path selector.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑url

Option

No

URL of cluster endpoint.

‑‑format

Option

No

Output format. Valid values: JSON, HOCON (Default: HOCON).

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

<selector>

Argument

No

Configuration path selector.

Example


cluster config update

Updates configuration of the cluster indicated by the endpoint URL with the provided argument values.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑url

Option

No

URL of cluster endpoint.

‑‑file

Option

No

Path to file with config update commands to execute.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

<args>...

Arguments

No

Configuration arguments and values to update.

Example


cluster init

Initializes the cluster.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑name

Option

Yes

Human-readable name of the cluster. Can be changed after initialization with cluster rename.

‑‑license

Option

Yes

License file.

‑‑metastorage-group

Option

No

Metastorage group nodes (comma-separated list).

‑‑cluster-management-group

Option

No

Names of nodes that will host the Cluster Management Group (comma-separated list).

‑‑config

Option

No

Cluster configuration that will be applied during initialization.

‑‑config-files

Option

No

Path to cluster configuration files (comma-separated list).

‑‑if-needed

Flag

No

Skips initialization and exits with code 0 if the cluster is already initialized, instead of failing. The check is not atomic with initialization, so concurrent cluster init calls may still fail with a server-side error.

‑‑if-nodes

Option

No

Skips initialization and exits with code 0 if fewer than <nodeCount> nodes are visible in the physical topology. Must be a positive integer and requires ‑‑if-needed. If the physical topology cannot be retrieved, the command fails.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example

To make initialization idempotent, use --if-needed argument. To also defer initialization until enough nodes have joined, add --if-nodes argument with the required number of nodes:


cluster rename

Renames an already-initialized cluster. The cluster keeps its identity (cluster ID, metastorage state, data); only the human-readable name is updated.

This command requires the RENAME_CLUSTER privilege. See User Permissions and Roles.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑name

Option

Yes

New human-readable name of the cluster. Must not be empty.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


cluster status

Prints status of the cluster.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


cluster topology physical

Shows physical topology of the specified cluster.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑plain

Flag

No

Display output with plain formatting.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


cluster topology logical

Shows logical topology of the specified cluster.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑plain

Flag

No

Display output with plain formatting.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


cluster unit deploy

Deploys a unit from a file:

Syntax

Or a directory recursively:

Syntax

Parameters

Parameter
Type
Required
Description

‑‑version

Option

Yes

Unit version (x.y.z).

‑‑path

Option

Yes

Path to deployment unit file or directory.

‑‑nodes

Option

No

Initial set of nodes where the unit will be deployed (comma-separated).

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

<id>

Argument

Yes

Deployment unit identifier.

<recursive>

Option

No

Deploys a folder with subdirectories.

Example


cluster unit undeploy

Undeploys a unit.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑version

Option

Yes

Unit version (x.y.z).

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

<id>

Argument

Yes

Unit id.

Example


cluster unit list

Shows a list of deployed units for specified deployment unit.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑version

Option

No

Filters out deployment unit by version (exact match assumed).

‑‑status

Option

No

Filters out deployment unit by status (comma-separated).

‑‑plain

Flag

No

Display output with plain formatting.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

<unitId>

Argument

Yes

Deployment unit id.

Example


cluster metric source enable

Enables cluster metric source.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

<srcName>

Argument

Yes

Metric source name.

Example


cluster metric source disable

Disables cluster metric source.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

<srcName>

Argument

Yes

Metric source name.

Example


cluster metric source list

Lists cluster metric sources.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑plain

Flag

No

Display output with plain formatting.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


Snapshot Commands

These commands help you manage GridGain snapshots.

cluster snapshot create

Creates a new snapshot.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑type

Option

Yes

Type of the snapshot to create. Possible values: 'full', 'incremental'.

‑‑all

Flag

No

Create snapshot of all tables. Incompatible with --tables.

‑‑tables

Option

No

Comma-separated fully-qualified table names that will be parts of the snapshot. Incompatible with --all.

‑‑structures

Option

No

Comma-separated fully-qualified structure names that will be parts of the snapshot. Incompatible with --all.

‑‑timestamp

Option

No

Timestamp to create snapshot at in the ISO-8601 format (e.g., 1970-01-01T00:00:00Z).

‑‑destination

Option

No

Name of the snapshot URI in configuration.

‑‑encryption‑provider

Option

No

Name of the encryption provider.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


cluster snapshot delete

Deletes a snapshot.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑id

Option

Yes

ID of the snapshot.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


cluster snapshot list

Returns a list of snapshots from configured snapshot paths. Works with both LOCAL and REMOTE paths.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑plain

Flag

No

Display output with plain formatting.

‑‑show‑nodes

Flag

No

Display node names instead of just their count in the output.

‑‑show‑tables

Flag

No

Display table names instead of just their count in the output.

‑‑show‑source‑uri

Flag

No

Display the snapshot path URI in the output.

‑‑source

Option

No

Name of the snapshot path from configuration to list snapshots from. Accepts both LOCAL and REMOTE paths. If not specified, lists snapshots from all configured paths.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


cluster snapshot restore

Restores a snapshot.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑id

Option

Yes

ID of the snapshot.

‑‑tables

Option

No

Comma-separated fully-qualified table names to restore from the snapshot.

‑‑structures

Option

No

Comma-separated fully-qualified structure names that will be recovered.

‑‑force

Flag

No

Overwrite structures that already exist on the cluster; without this flag, restoration fails instead. Overwriting can cause duplicate values generated using sequences.

‑‑source

Option

No

Name of the snapshot URI in configuration.

‑‑decryption‑provider

Option

No

Name of the decryption provider.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


cluster snapshot status

Returns snapshot operations.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑plain

Flag

No

Display output with plain formatting.

‑‑id

Option

No

ID of the operation.

‑‑all-nodes

Flag

No

Optional flag that modifies the output to contain every status of all nodes that participate in the snapshot operation.

‑‑show-tables

Flag

No

Optional flag that modifies the output to contain table names that participate in snapshot creation or restoration.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


Node Commands

These commands help you manage individual nodes.

node config show

Shows node configuration.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑url

Option

No

URL of a node that will be used as a communication endpoint.

‑‑format

Option

No

Output format. Valid values: JSON, HOCON (Default: HOCON).

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

<selector>

Argument

No

Configuration path selector.

Example


node config update

Updates node configuration.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑url

Option

No

URL of a node that will be used as a communication endpoint.

‑‑file

Option

No

Path to file with config update commands to execute.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

<args>...

Arguments

No

Configuration arguments and values to update.

Example


node status

Prints status of the node.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑url

Option

No

URL of a node that will be used as a communication endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


node version

Prints the node build version and, when the build was stamped with one, the git commit it was built from.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑url

Option

No

URL of a node that will be used as a communication endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


node metric list

Lists node metrics.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑url

Option

No

URL of a node that will be used as a communication endpoint.

‑‑plain

Flag

No

Display output with plain formatting.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


node metric source enable

Enables node metric source.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑url

Option

No

URL of a node that will be used as a communication endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

<srcName>

Argument

Yes

Metric source name.

Example


node metric source disable

Disables node metric source.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑url

Option

No

URL of a node that will be used as a communication endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

<srcName>

Argument

Yes

Metric source name.

Example


node metric source list

Lists node metric sources.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑url

Option

No

URL of a node that will be used as a communication endpoint.

‑‑plain

Flag

No

Display output with plain formatting.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


node unit list

Shows a list of deployed units.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑version

Option

No

Filters out deployment unit by version (exact match assumed).

‑‑status

Option

No

Filters out deployment unit by status (comma-separated).

‑‑url

Option

No

URL of a node that will be used as a communication endpoint.

‑‑plain

Flag

No

Display output with plain formatting.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

<unitId>

Argument

Yes

Deployment unit id.

Example


node unit inspect

Inspects the structure of a deployed unit, allowing you to view the contents and file structure of a specific deployment unit version.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑version

Option

Yes

Unit version in x.y.z format.

‑‑node

Option

No

The name of the node to perform the operation on. Node names can be seen in the output of the 'cluster topology' command. Alias: -n.

‑‑url

Option

No

URL of a node that will be used as a communication endpoint.

‑‑plain

Flag

No

Display output with plain formatting.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

<unitId>

Argument

Yes

Deployment unit id.

Example


Disaster Recovery Commands

These commands let you recover data partitions in disaster scenarios and recover system RAFT groups.

recovery partitions restart

Restarts the corresponding replica service and Raft group for each specified partitions. If no partition IDs are provided, all partitions in the specified zone are restarted. If no node names are specified, the operation applies to all nodes.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑zone

Option

Yes

Name of the zone to reset partitions of. Case-sensitive, without quotes.

‑‑table

Option

Yes

Fully-qualified name of the table to reset partitions of. Case-sensitive, without quotes.

‑‑partitions

Option

No

IDs of partitions to get states. All partitions if not set (comma-separated).

‑‑nodes

Option

No

Names specifying nodes to get partition states from. Case-sensitive, without quotes, all nodes if not set (comma-separated).

‑‑with-cleanup

Flag

No

Restarts partitions, preceded by a storage cleanup. This will remove all data from the partition storages before restart.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


recovery partitions reset

Forces recovery of partitions that have lost Raft majority by performing a forced rebalance. This rebalance resets the Raft peers and allows a new leader to be elected. If no partition IDs are provided, all partitions in the specified zone are reset.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑zone

Option

Yes

Name of the zone to reset partitions of. Case-sensitive, without quotes.

‑‑table

Option

No

Fully-qualified name of the table to reset partitions of. Case-sensitive, without quotes.

‑‑partitions

Option

No

IDs of partitions to get states. All partitions if not set (comma-separated).

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


recovery partitions states

Returns partition states.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑global

Flag

Yes

Gets global partition states. One of global or local is required.

‑‑local

Flag

Yes

Gets local partition states. One of global or local is required.

‑‑nodes

Option

No

Names specifying nodes to get partition states from. Case-sensitive, without quotes, all nodes if not set (comma-separated).

‑‑partitions

Option

No

IDs of partitions to get states. All partitions if not set (comma-separated).

‑‑zones

Option

No

Names specifying zones to get partition states from. Case-sensitive, without quotes, all zones if not set (comma-separated).

‑‑plain

Flag

No

Display output with plain formatting.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


recovery cluster reset

Initiates recovery of the CMG and/or Metastorage group. This command can be used to recover from a permanent loss of the majority of the corresponding group(s). See the disaster recovery documentation for details.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑cluster-management-group

Option

No

Names of nodes that will host the Cluster Management Group (comma-separated)

‑‑metastorage‑replication‑factor

Option

No

Number of nodes in the voting member set of the Metastorage RAFT group.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


recovery cluster migrate

Migrates nodes missed during repair to repaired cluster.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑old‑cluster‑url

Option

Yes

URL of old cluster endpoint (nodes of this cluster will be migrated to a new cluster).

‑‑new‑cluster‑url

Option

Yes

URL of new cluster endpoint (nodes of old cluster will be migrated to this cluster).

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


recovery tables start

Starts a table point-in-time recovery.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑tables

Option

Yes

Comma-separated fully-qualified table names that will be recovered.

‑‑timestamp

Option

Yes

Timestamp to create snapshot at in the ISO-8601 format (e.g., 1970-01-01T00:00:00Z).

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


recovery tables state

View state of a table point-in-time recovery.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑id

Option

Yes

ID of the recovery operation.

‑‑plain

Flag

No

Display output with plain formatting.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


recovery low-watermark drop-locks

Removes low watermark locks on all cluster nodes that are older than the specified number of milliseconds, so that a stalled low watermark can advance again. By default, the command fails if a read-only transaction older than the cutoff is still active or a secondary storage full state transfer is in progress; use --force to remove the locks unconditionally. See the Recovering a Stalled Low Watermark section for details.

Syntax

Parameters

Parameter
Type
Required
Description

<olderThanMillis>

Argument

Yes

Remove locks older than this many milliseconds, counting back from now.

‑‑force

Flag

No

Remove locks even if they are held by active read-only transactions or a secondary storage full state transfer.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


User and Role Commands

These commands help you manage access to the system by defining users and roles.

role create

Creates a new role if it does not exist.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

<roleName>

Argument

Yes

Role name.

Example


role delete

Deletes a role if it exists.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑with‑revoke

Flag

No

Revoke connected roles and users.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

<roleName>

Argument

Yes

Role name.

Example


role list

Lists roles.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑user

Option

No

Filter by user name.

‑‑plain

Flag

No

Display output with plain formatting.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


role show

Shows role information.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑with‑users

Flag

No

Show role with assigned users.

‑‑with‑privileges

Flag

No

Show role with granted privileges.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

<roleName>

Argument

Yes

Role name.

Example


role privilege grant

Grants a privilege to a role.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑to

Option

Yes

To role name (comma-separated).

‑‑action

Option

Yes

Action (comma-separated).

‑‑on

Option

No

Object. If target object name has no dot(STATICDATA), its interpreted as a schema name. If it has one dot (STATICDATA.Customer), its interpreted as "SCHEMA"."TABLE". Wildcards are not supported, only canonical SQL identifiers are accepted. Use double quotes for mixed-case or non-standard identifiers ("StaticData"."Customer").

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


role privilege revoke

Revokes a privilege from a role.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑from

Option

Yes

From role (comma-separated).

‑‑action

Option

Yes

Action (comma-separated).

‑‑on

Option

No

Object. If target object name has no dot(STATICDATA), its interpreted as a schema name. If it has one dot (STATICDATA.Customer), its interpreted as "SCHEMA"."TABLE". Wildcards are not supported, only canonical SQL identifiers are accepted. Use double quotes for mixed-case or non-standard identifiers ("StaticData"."Customer").

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


user create

Creates a new user if it does not exist.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑password

Option

No

Password.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

<username>

Argument

Yes

Username.

Example


user delete

Deletes a user if it exists.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

<username>

Argument

Yes

Username.

Example


user edit

Edits a user if it exists.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑password

Option

No

Password.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

<username>

Argument

Yes

Username.

Example


user list

Lists users.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑role

Option

No

Filter by role name.

‑‑plain

Flag

No

Display output with plain formatting.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


user show

Shows user information.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑with‑roles

Flag

No

Show user with assigned roles.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

<username>

Argument

Yes

Username.

Example


user role assign

Assigns a role to a user.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑to

Option

Yes

To username (comma-separated).

‑‑role

Option

Yes

Role name (comma-separated).

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


user role revoke

Revokes a role from a user.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑from

Option

Yes

From username (comma-separated).

‑‑role

Option

Yes

Role name (comma-separated).

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


Data Center Replication Commands

These commands help you manage data center replication.

dcr create

Creates data center replication.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑plain

Flag

No

Display output with plain formatting.

‑‑name

Option

Yes

The unique name of the replication. Should be without whitespaces.

‑‑source‑cluster‑address

Option

Yes

Comma-separated list of client addresses of the cluster that is a source cluster for the replication.

‑‑replication‑nodes

Option

No

Comma-separated replication nodes names, worker node will be chosen from the list of replication nodes.

‑‑username

Option

Yes

Username.

‑‑password

Option

Yes

Password

‑‑keyStorePath

Option

No

Key store path for SSL/TLS.

‑‑keyStorePassword

Option

No

Key store password for SSL/TLS.

‑‑trustStorePath

Option

No

Trust store path for SSL/TLS.

‑‑trustStorePassword

Option

No

Trust store password for SSL/TLS.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


dcr delete

Deletes data center replication.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑name

Option

Yes

Replication name.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example

This command produces no output on success.


dcr flush

Sets replication flush point with provided timestamp.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑name

Option

Yes

Replication name.

‑‑flush‑point

Option

Yes

The flush point is a timestamp in the ISO-8601 format (e.g., 1970-01-01T00:00:00Z).

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example

This command produces no output on success.


dcr list

Lists all replications in the cluster.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑plain

Flag

No

Display output with plain formatting.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


dcr start

Starts data center replication.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑name

Option

Yes

Replication name.

‑‑schema

Option

No

When used with --all, replicates all tables from the specified schema. When used with --tables, acts as the default schema for unqualified table names. If omitted when used with --tables, unqualified table names default to the PUBLIC schema.

‑‑all

Flag

No

Replicate all tables from all user schemas. When combined with --schema, replicates only tables from that schema. Incompatible with --tables. One of --tables or --all is required.

‑‑tables

Option

No

Comma-separated table names to replicate. Accepts unqualified names (e.g., ORDERS) or fully qualified names (e.g., SCHEMA.TABLE). Unqualified names use --schema as the default schema, or PUBLIC if --schema is not specified. You can mix qualified and unqualified names in the same list. Incompatible with --all. One of --tables or --all is required.

‑‑plain

Flag

No

Display output with plain formatting.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example

Replicate all tables from all schemas:

Replicate all tables from a specific schema:

Replicate specific tables from a single schema:

Replicate specific tables from the PUBLIC schema (default when --schema is omitted):

Replicate tables from multiple schemas using fully-qualified names, with unqualified names defaulting to PUBLIC:

This command produces no output on success.


dcr stop

Stops data center replication.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑name

Option

Yes

Replication name.

‑‑schema

Option

No

When used with --all, stops replication for all tables from the specified schema. When used with --tables, acts as the default schema for unqualified table names.

‑‑all

Flag

No

Stop replication for all tables. When combined with --schema, stops only tables from that schema. Incompatible with --tables. One of --tables or --all is required.

‑‑tables

Option

No

Comma-separated table names to stop replicating. Supports unqualified names (e.g., ORDERS) when --schema is specified, or fully qualified names (e.g., SCHEMA.TABLE) to stop tables from multiple schemas. Incompatible with --all. One of --tables or --all is required.

‑‑plain

Flag

No

Display output with plain formatting.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example

This command produces no output on success.


dcr status

Shows data center replication status.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑name

Option

Yes

Replication name.

‑‑plain

Flag

No

Display output with plain formatting.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


Distribution Commands

These commands help you manage table partition distribution.

distribution reset

Resets distribution of partitions.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑zones

Option

Yes

Names specifying zones to reset the distribution state in (comma-separated).

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


distribution balance-leases

Balances leases across cluster nodes so that each node holds approximately the same number of leases.

The operation is asynchronous: the command initiates lease balancing and returns immediately. Leases are gradually redistributed to alive nodes as they expire and are reassigned, respecting partition assignment constraints.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


zone datanodes reset

Resets data nodes for distribution zones.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑zone‑names

Option

No

Comma-separated list of zone names to reset data nodes for. If not specified, resets for all zones.

‑‑url

Option

No

URL of cluster endpoint. It can be any node URL. If not set, then the default URL from the profile settings will be used.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls. This flag is useful for debugging. Specify multiple options to increase verbosity for REST calls. Single option shows request and response, second option (-vv) shows headers, third one (-vvv) shows body.

Example


License Commands

These commands help you manage the license on a running cluster.

license update

Updates license.

When security is enabled, the user needs the MANAGE_LICENSE privilege. For details, see User Permissions and Roles.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

<licenseFile>

Argument

Yes

License file.

Example


license show

Shows license.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


Rolling Update Commands

These commands help you manage rolling updates for cluster upgrades.

upgrade start

Starts rolling upgrade process.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑version

Option

Yes

New version. For example, 9.1.1.

‑‑plain

Flag

No

Display output with plain formatting.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example

This command produces no output on success.


upgrade commit

Commits rolling upgrade process.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑plain

Flag

No

Display output with plain formatting.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example

This command produces no output on success.


upgrade cancel

Cancels rolling upgrade process.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑plain

Flag

No

Display output with plain formatting.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example

This command produces no output on success.


upgrade state

Shows rolling upgrade state.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑plain

Flag

No

Display output with plain formatting.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example

This command shows the state of a rolling upgrade in progress. It requires a rolling upgrade to be underway.


Change Data Capture Commands

These commands help you manage Change Data Capture (CDC) sources, sinks, and replications.

cdc source create

Creates a CDC source.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑name

Option

Yes

Name of the CDC source.

‑‑type

Option

Yes

Type of the CDC source.

‑‑tables

Option

Yes

Comma-separated fully-qualified table names that will be parts of the source.

‑‑parameters

Option

No

Comma-separated key-value pairs of parameters for the source. For example: 'param1=value1, param2=value2'. If not set, then default parameters will be used.

‑‑experimental

Flag

No

Enables experimental source types. Required to create or update a source that uses an experimental type.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


cdc source update

Updates a CDC source.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑name

Option

Yes

Name of the CDC source.

‑‑type

Option

Yes

Type of the CDC source.

‑‑tables

Option

Yes

Comma-separated fully-qualified table names that will be parts of the source.

‑‑parameters

Option

No

Comma-separated key-value pairs of parameters for the source. For example: 'param1=value1, param2=value2'. If not set, then default parameters will be used.

‑‑experimental

Flag

No

Enables experimental source types. Required to create or update a source that uses an experimental type.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


cdc source delete

Deletes a CDC source.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑name

Option

Yes

Name of the CDC source.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


cdc source status

Shows CDC source status.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑name

Option

Yes

Name of the CDC source.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


cdc source list

Lists CDC sources.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑plain

Flag

No

Display output with plain formatting.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


cdc sink create

Creates a CDC sink.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑name

Option

Yes

Name of the CDC sink.

‑‑type

Option

Yes

Type of the CDC sink.

‑‑parameters

Option

No

Comma-separated key-value pairs of parameters for the sink. For example: 'param1=value1, param2=value2'. If not set, then default parameters will be used.

‑‑experimental

Flag

No

Enables experimental sink types. Required to create or update a sink that uses an experimental type. No sink type currently requires it.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


cdc sink update

Updates a CDC sink.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑name

Option

Yes

Name of the CDC sink.

‑‑type

Option

Yes

Type of the CDC sink.

‑‑parameters

Option

No

Comma-separated key-value pairs of parameters for the sink. For example: 'param1=value1, param2=value2'. If not set, then default parameters will be used.

‑‑experimental

Flag

No

Enables experimental sink types. Required to create or update a sink that uses an experimental type. No sink type currently requires it.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


cdc sink delete

Deletes a CDC sink.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑name

Option

Yes

Name of the CDC sink.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


cdc sink status

Shows CDC sink status.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑name

Option

Yes

Name of the CDC sink.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


cdc replication create

Creates a CDC replication.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑name

Option

Yes

Name of the CDC replication.

‑‑sink

Option

Yes

Name of the CDC sink to use for replication. If not set, then the first sink will be used.

‑‑source

Option

Yes

Name of the CDC source to use for replication. If not set, then the first source will be used.

‑‑mode

Option

No

Replication mode. Possible values: 'ALL', 'NEW_DATA'. If not set, then 'ALL' mode will be used.

‑‑execution‑nodes

Option

No

Names of nodes (comma-separated list) allowed to host the CDC replication. If not set, the replication can run on any node and fails over to any live node.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


cdc replication update

Changes the nodes allowed to run a CDC replication. A running replication keeps running where it is; the new list applies at the next start or failover.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑name

Option

Yes

Name of the CDC replication.

‑‑execution‑nodes

Option

One of

Names of nodes (comma-separated list) allowed to host the CDC replication.

‑‑any‑node

Flag

One of

Allow the replication to run on any node of the cluster.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


cdc replication delete

Deletes a CDC replication.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑name

Option

Yes

Name of the CDC replication.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


cdc replication status

Shows CDC replication status.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑name

Option

Yes

Name of the CDC replication.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


cdc replication stop

Stops a CDC replication.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑name

Option

Yes

Name of the CDC replication.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


cdc replication start

Starts a CDC replication.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑name

Option

Yes

Name of the CDC replication.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


cdc replication list

Lists CDC replications.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑plain

Flag

No

Display output with plain formatting.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


JWT Management Commands

These commands help you manage JWT tokens.

token revoke

Revokes a token.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑token

Option

No

Specific token to revoke.

‑‑username

Option

No

Username to revoke all tokens for.

‑‑url

Option

No

URL of cluster endpoint.

‑‑profile

Option

No

Local CLI profile name.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


Miscellaneous Commands

These are general-purpose commands.

connect

Connects to a GridGain 9 node.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑username

Option

Yes

Username to connect to cluster.

‑‑password

Option

Yes

Password to connect to cluster.

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

<nodeUrl>

Argument

Yes

URL of a node that will be used as a communication endpoint.

Example


disconnect

Disconnects from a GridGain 9 node.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example


clear

Clears the screen.

Syntax

Parameters

Parameter
Type
Required
Description

None

This command takes no parameters.

Example

This command produces no output.


cls

Clears the screen.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example

This command produces no output.


exit

Exits the CLI.

Syntax

Parameters

Parameter
Type
Required
Description

‑‑verbose

Flag

No

Show additional information: logs, REST calls.

Example

This command produces no output.


help

Display help information about the specified command.

Syntax

Parameters

Parameter
Type
Required
Description

[COMMAND]

Argument

No

The COMMAND to display the usage help message for.

Example


version

Displays the current CLI tool version.

Syntax

Parameters

Parameter
Type
Required
Description

None

This command takes no parameters.

Example

This page is: Copyright © 2026 MariaDB. All rights reserved.

spinner

Last updated

Was this helpful?