The ZooKeeper command-line interface or the ZooKeeper CLI is used to allow interaction with the ZooKeeper ensemble. It can be used for debugging and working with different options.
To perform CLI operations, first, turn on the ZooKeeper server and then the ZooKeeper client.
The ZooKeeper CLI can be used to perform the following commands:
Create znodes.
Watch znodes for changes
Create children of a znode.
List children of a znode.
Remove/ delete a znode.
Fetch data and the metadata associated with a znode.
Set data for a particular znode.
Check the status of a znode, such as a timestamp, version number, and data length.
https://cloud.spring.io/spring-cloud-zookeeper/reference/html/