OS Manuals

/usr/bin/zk

All the binaries built by Vitess

From vitess-23-binaries 23.0.4-r5 (os), captured 2026-11-05 by running zk --help (exit 0). permalink

zk is a tool for wrangling zookeeper.

It tries to mimic unix file system commands wherever possible, but
there are some slight differences in flag handling.

The zk tool looks for the address of the cluster in /etc/zookeeper/zk_client.conf,
or the file specified in the ZK_CLIENT_CONFIG environment variable.

The local cell may be overridden with the ZK_CLIENT_LOCAL_CELL environment
variable.

Usage:
  zk [command]

Available Commands:
  addAuth
  cat
  chmod
  completion  Generate the autocompletion script for the specified shell
  cp
  edit        Create a local copy, edit, and write changes back to cell.
  help        Help about any command
  ls
  rm
  stat
  touch       Change node access time.
  unzip
  wait        Sets a watch on the node and then waits for an event to fire.
  watch       Watches for changes to nodes and prints events as they occur.
  zip         Store a zk tree in a zip archive.

Flags:
  -h, --help                           help for zk
      --keep-logs duration             keep logs for this long (using ctime) (zero to keep forever)
      --keep-logs-by-mtime duration    keep logs for this long (using mtime) (zero to keep forever)
      --log-rotate-max-size uint       size in bytes at which logs are rotated (glog.MaxSize) (default 1887436800)
      --purge-logs-interval duration   how often try to remove old logs (default 1h0m0s)
      --security-policy string         the name of a registered security policy to use for controlling access to URLs - empty means allow all for anyone (built-in policies: deny-all, read-only)
      --server string                  server(s) to connect to

Use "zk [command] --help" for more information about a command.
Options (7)
OptionDescriptionSource
-h, --helphelp for zkhelp
--keep-logs durationkeep logs for this long (using ctime) (zero to keep forever)help
--keep-logs-by-mtime durationkeep logs for this long (using mtime) (zero to keep forever)help
--log-rotate-max-size uintsize in bytes at which logs are rotated (glog.MaxSize) (default 1887436800)help
--purge-logs-interval durationhow often try to remove old logs (default 1h0m0s)help
--security-policy stringthe name of a registered security policy to use for controlling access to URLs - empty means allow all for anyone (built-in policies: deny-all, read-only)help
--server stringserver(s) to connect tohelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.