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

Migrate from legacy WEKA CLI

Identify the behavior changes that affect existing scripts, monitoring probes, and automation when a cluster upgrades to WEKA 6.0 and wekactl becomes the default CLI.

Starting with WEKA 6.0, the weka command on a cluster server invokes wekactl. The switch happens automatically on upgrade. For everyday interactive use, the two CLIs are largely compatible and familiar. Deliberate differences in terminology, output, flags, and packaging can affect long-time users, and especially existing shell scripts, as described in this topic.

Automation that uses the REST API is not affected by this change.

Revert to the legacy CLI temporarily

To run the legacy CLI, set the following environment variable:

export WEKA_CLI_LEGACY=1

Use this as a fast mitigation while migrating scripts, not as a long-term configuration. The legacy CLI receives no new features and is planned for removal in a future release.

Write robust scripts

Follow these principles to make a migrated script robust against future changes:

  1. Parse machine formats, not human tables. Prefer --json or --tsv. TSV has no in-cell tab characters, so column splitting is safe. The default human table layout is allowed to change over time.

  2. Select fields by name, not position. Column order and headers can differ between the CLIs. With JSON, key off field names. With TSV, use the header row rather than fixed column indexes.

  3. Check the short flags you rely on. Most carry over unchanged, but -f and -C changed meaning, which is more dangerous than a flag that disappears. See Short flags that changed meaning.

  4. Rely on exit codes for success or failure, not on the presence or absence of output.

  5. If a script must parse human output, set WEKA_CLI_STYLE=plain (or pass --plain) and NO_COLOR=1 to guarantee stable, uncolored text. wekactl already defaults to plain, uncolored output when standard output is not a terminal.

Changes that apply to every command

Typed identifiers are plain numbers

The legacy CLI wraps identifiers in output as HostId<3>, NodeId<15>, DiskId<5>, and similar. wekactl prints the bare integer, and JSON carries a number, not a string. Update any parsing that expects the XxxId<N> form.

For example, weka s3 cluster lists the containers that serve S3.

Legacy CLI:

wekactl:

wekactl with --json:

Units follow industry conventions

  • Throughput and storage capacities: decimal units (KB, MB, GB, TB, PB, EB).

  • Memory (RAM): binary units (KiB, MiB, GiB, TiB, PiB, EiB).

This differs from the legacy CLI unit handling. Scripts that apply arithmetic or thresholds to sizes must recheck their assumptions. Do not parse scaled units. Use --raw-units (-R) for unscaled numbers, --binary-units to force binary units, or --json, whose values are raw numbers.

Terminology changes in commands and headers

The user-facing vocabulary changed, and this appears in both command names and column headers:

Legacy term
New term
Compatibility

Host (--host)

Container (--container)

Legacy flag generally kept as a hidden alias

Node (--node-ids, Node ID column)

Process (--process-ids, Process column)

Legacy flag kept as a hidden alias; the node tag is often retained for column selection with -o

org / organization (weka org)

tenant (weka tenant)

org, orgs, and tenants are aliases for the tenant group; the --org flag is a hidden alias for --tenant where it appears

The verb changes beneath the tenant group are breaking. See Breaking changes by command group.

Verb standardization: create becomes add, delete becomes remove

wekactl uses add and remove as the canonical verbs. The legacy spellings are kept as aliases, so these renames are not breaking — weka fs create still resolves to weka fs add. Update scripts to the canonical form, but the old form keeps working:

  • fs create becomes fs add; fs delete becomes fs remove

  • fs group create becomes fs group add; fs group delete becomes fs group remove

  • cluster create becomes cluster add

  • user delete becomes user remove

  • tenant create becomes tenant add; tenant delete becomes tenant remove

  • nfs ... delete becomes nfs ... remove

  • s3 bucket create becomes s3 bucket add; s3 bucket destroy becomes s3 bucket remove

Aliases are widespread rather than exceptional: 271 of the 984 commands carry at least one. fs remove, user remove, tenant remove, and s3 cluster remove all accept delete and destroy; fs add, fs group add, s3 bucket add, and security policy add all accept create and new. To see the aliases for any command, run it with --help.

Three commands run against this convention in 6.0, and these have no aliases, so the legacy spelling fails:

  • smb cluster add becomes smb cluster create

  • smb cluster remove becomes smb cluster destroy

  • catalog metadata remove becomes catalog metadata delete

Output format flags are long-form only

Format
wekactl flag
Legacy equivalent

JSON

--json / -J

-J (unchanged)

Raw units

--raw-units / -R

-R (unchanged)

CSV

--csv (no short form)

--format csv (-f csv)

TSV

--tsv (new)

Did not exist

Markdown

--markdown (no short form)

--format markdown (-f markdown)

HTML

--html (new)

Did not exist

No header row

--no-header (no short form)

--no-header (no short form; unchanged)

Style selection

--pretty / --plain / --classic

--format view and --format oldview; --plain and --pretty did not exist

The legacy CLI had no --csv, --markdown, --tsv, or --html flag. It selected a format with a single option, -f / --format, taking one of view, csv, markdown, json, or oldview. That option does not exist in wekactl. Replace it with the matching format flag from the table above; --format oldview maps to --classic.

Short flags that changed meaning

Seven one-letter output flags carry over unchanged: -J (--json), -R (--raw-units), -U (--UTC), -o (--output), -s (--sort), -F (--filter), and -v (--verbose). Among the output flags, only -f (--format) was lost. Connection short flags carry over as well, including -H, -P, and -T.

Two changed meaning. These are more dangerous than a flag that disappears, because the command still runs:

Short flag
Legacy CLI
wekactl

-f

--format on 82 commands, --force on 69

--force only

-C

--CONNECT-TIMEOUT on every command that connects to a cluster, --container on weka local commands and on upgrade backends, version current, and version set

--container only; --CONNECT-TIMEOUT has no short form

-S is new in wekactl and is the short form of --CONTAINER, for selecting a local container to connect to.

The -v flag is context-dependent

At the root, -v means --version. On most subcommands, -v means --verbose. Prefer the long forms in scripts.

Glob patterns in type and statistic filters

Filter-style options that take type or statistic names, such as events --type and stats --stat, accept glob metacharacters (*, ?, []). A script that passes a literal string containing these characters can now match unintended entries. Quote and review such arguments.

Success messages and progress indication

Every command that changes state emits an explicit success or failure message. Scripts that treat empty output as success still work, because the exit code is authoritative, but standard output now carries a confirmation line.

Long-running operations show an in-place progress spinner on a terminal. Progress indicators are suppressed when output is not a terminal.

Secrets and the clipboard

Commands that produce a secret, such as weka user generate-token, write it to the system clipboard when run on an interactive terminal. When run in a script, with output piped or captured, the secret prints to standard output as before, so TOKEN=$(weka user generate-token) keeps working. Use --plain to force console output, or --json for the raw token. Do not rely on the interactive clipboard path in automation.

Interactive mode when invoked with no arguments

Running the CLI with no arguments on a terminal enters an interactive shell instead of printing help. A wrapper that invokes the binary with no arguments expecting help output must either pass an explicit subcommand or set WEKA_CLI_NO_INTERACTIVE=1.

TLS trust on first use

All network communication uses TLS, with no plaintext fallback. On the first interactive connection, the CLI prompts to accept the certificate fingerprint. In non-interactive contexts, the certificate is accepted and saved automatically, so automation is never blocked on a prompt. Set WEKA_TLS_STRICTNESS to enforce stricter validation. Certificates signed by a CA in the system trust store involve no prompt or automatic acceptance.

Positional arguments that were removed

These commands take fewer arguments than the legacy CLI documented. A legacy command line supplies one argument too many. The values still bind to the remaining slots in order, so the command either misreads an argument or reports an unexpected one.

Command
Legacy CLI
wekactl

fs add

<name> <group-name> <total-capacity>

<name> <total-capacity>, with the group supplied by --fs-group

nfs interface-group add

<name> <type>

<name>

driver sign

<key> <passwd>, with an optional <cert>

<key-file> [<cert-file>], with the password supplied by --passwd

Options renamed on commands that kept their name

A command name search does not surface these. The option changed instead.

Command
Legacy option
wekactl option

cluster container add

--host-fqdn

--fqdn

cluster default-net set and update

--netmask-bits

--netmask

cluster network-space add and update

--netmask-bits

--netmask

events

--category-list

--category

events

--type-list

--type

events

--exclude-type-list

--exclude-type

fs group add and update

--target-ssd-retention

--ssd-retention

fs snapshot add

--is-writable

--writable

Both spellings of the netmask option take a length in bits, so only the name changes.

Single-IP mode for NVIDIA VFs is the default

Starting with 6.0, the weka local setup commands configure NVIDIA virtual functions (VFs) in single-IP mode by default, in both the legacy CLI and wekactl. In earlier versions, single-IP mode was off unless you set --nvidia-vf-single-ip. The new option, --disable-nvidia-vf-single-ip, turns single-IP mode off. It is the inverse of --nvidia-vf-single-ip, so update scripts by the result you want:

Script before 6.0
Update for 6.0

Sets --nvidia-vf-single-ip to yes, true, or on

Remove the option.

Sets --nvidia-vf-single-ip to no, false, or off

Replace it with --disable-nvidia-vf-single-ip.

Omits the option

Add --disable-nvidia-vf-single-ip to keep single-IP mode off.

Deprecated and hidden options

No option from the legacy CLI was removed outright. Every option listed below is still accepted, so no script fails on these. What changed is whether the option still does anything, and whether it appears in --help.

Accepted but inert. These three warn and have no effect. A script passing them keeps working, but no longer gets the behavior it asks for — recheck any logic that depends on it:

Command
Option

weka fs

--capacities

cluster container deactivate

--allow-unavailable

local resources auto-remove-timeout

--force

Hidden but functional. These work exactly as before and are simply absent from --help and the generated CLI reference. Treat them as unsupported and plan to stop using them: --agent on weka, --cloud-stats on cloud enable, --overwrite-resource-ips on cluster add, --skip-resource-validation on fs download, --custom-options on nfs permission update, --ip on nfs rules add dns, --type on s3 bucket add, --verify on s3 cluster audit-webhook enable, --queue-dir on s3 cluster notification-target add and update, and --claim-name and --groups-claim-name on s3 cluster oidc add and update.

--custom-options on nfs permission update corresponds to the new nfs custom-options group, which is the supported replacement.

Still fully documented. Two options previously reported as removed are neither hidden nor deprecated: --show-total on stats realtime (an alias of --footer) and --unlink on s3 bucket remove.

Breaking changes by command group

The following table lists the changes that fail outright and require a script update. Renames where the old spelling is kept as a hidden alias are not listed. The general changes above apply to every group and are not repeated.

Group
Old
New

audit

—

No change. audit cluster keeps its subcommands (enable, disable, status, set-global-operations, resolve-paths, enhancer, decrypt-filename, decrypt-fullpath, stats), and audit fs forwards to the legacy implementation. Filesystem auditing can also be enabled with --audit-enabled on fs add, fs update, or fs download

catalog

catalog metadata remove

catalog metadata delete

cluster

cluster create

cluster add

cluster

cluster remote-cluster {add,update,remove}

cluster link {add,refresh,remove} (the old path reports that the command was removed)

cluster

cluster update with no options (no-op)

Requires at least one option; a no-op now errors

cluster

cluster servers ...

cluster server ... (singular)

events

events list-local

events local

events

events list-types

events types

events

events trigger-event

events trigger

fs

fs create / fs delete

fs add / fs remove

fs

fs group create / fs group delete

fs group add / fs group remove

fs

fs reserve unset

fs reserve reset

fs

fs quota unset

fs quota reset (but fs quota set-default / unset-default keep the unset spelling; do not blanket search-and-replace)

fs

fs snapshot create / fs snapshot delete

fs snapshot add / fs snapshot remove

fs

fs protection snapshot-policy create / delete

... add / ... remove

fs

fs tier s3 delete / fs tier obs delete

fs tier s3 remove / fs tier obs remove

fs

fs set-qos

fs update --max-throughput / --max-iops. The command is removed, not deprecated. tenant set-qos is unaffected and still works.

interface group

interface-group ... (11 commands at the top level)

nfs interface-group .... The nfs path is documented in 5.1.31 as well; only the top-level path is dropped

local

local install-agent

agent install-agent (documented in 5.1.31 as well)

local

local setup weka

local setup container. Role-specific containers are also available with local setup compute and local setup drives

nfs

nfs ... delete ...

nfs ... remove ...

nfs

nfs rules add dns <NAME> <DNS> --ip ...

--ip on rules add dns errors; use nfs rules add ip

s3

s3 bucket create / s3 bucket destroy

s3 bucket add / s3 bucket remove

s3

s3 cluster create / s3 cluster destroy

s3 cluster add / s3 cluster remove

s3

Creation-time bucket flags (--etag-alg, --quota, --versioning, and similar on s3 bucket create)

Configure after creation with subcommands: s3 bucket checksum set, etag-alg set, integrity-mode set, quota set, sorting set, versioning enable, policy set, lifecycle-rule add

security

security policy delete

security policy remove

security

security cors-trusted-sites remove-all

security cors-trusted-sites reset

security

security gui-idle-timeout restore-defaults

security gui-idle-timeout reset

smb

smb cluster add / smb cluster remove

smb cluster create / smb cluster destroy

smb

smb cluster container ...

smb cluster containers ... (plural)

smb

smb share list ...

smb share lists ... (plural)

smb

Parsing smb cluster status text lines (hostname: Ready)

Output is a formatted table (Container, Status)

stats

stats list-types

stats types

stats

stats retention restore-default

stats retention reset (restore-default and unset are kept as aliases, so this is not breaking)

status

Parsing status reduction free-text lines

Output is a table (Reduction Ratio, Saved Bytes)

status

Parsing specific lines or labels from the main status output

The layout was fully redesigned; re-verify any parsing

user / tenant

user delete

user remove

user / tenant

user change-role

user update --role (stub points to the replacement)

user / tenant

org create / org delete (tenant create / delete)

tenant add / tenant remove

cloud

cloud proxy --set <URL> / cloud proxy --unset

cloud proxy set <URL> / cloud proxy reset (flag form no longer exists)

dataservice

data-service ...

dataservice ... (no hyphen; no hyphenated alias found)

Column and header changes

Column renames affect scripts that parse table or TSV output by header name. Key renames:

  • cluster process: Process ID becomes Process, Slot In Host becomes Slot, Failure Domain ID becomes Failure Domain, Blacklist Reason and Blacklist Time become Denied Reason and Denied Time (JSON tags unchanged).

  • cluster container: Container ID becomes ID, Failure Domain Name becomes Failure Domain, Platform becomes OS Name, plus new columns.

  • cluster drive: Disk ID becomes ID, Host ID becomes Container, Node ID becomes Process, Device Path becomes Path, Serial Number becomes Serial.

  • cloud status: Host becomes Container, Is Healthy becomes Healthy.

  • NFS interface group: Subnet Mask becomes Netmask (the JSON field also changes). NFS permission Squashing becomes Squash, and AnonUid and AnonGid render as empty instead of 0 when zero.

The full 6.0 column sets for the commands most often parsed:

Command
Columns

cluster server

Primary IP, Port, Up Since, Up Time, Cores, RAM Allocated, Drives, Processes, Ready For Maintenance, Requested Action, Status, Load, Versions, Architecture, Deployment Mode

cluster bucket

Leader, Leader Term, Last Active Term, State, Council, Previous Leader, Uptime, Leader Version Sig, Electing, Source Members, Upgraded Members, Fill Level, Rebuild Todo, Rebuild Total, Last Failure, Activity

cluster failure-domain

Name, Active Drives, Failed Drives, Total Drives, Removed Drives, Containers, Total Containers, Drive Processes, Total Drive Processes, Compute Processes, Total Compute Processes, Raw Capacity

cluster task

Task, Type, State, Phase, Phase Name, Phase Number, Phase Count, Progress, Normalized Progress, User Paused

s3 bucket list

Bucket Name, Hard Limit, Used, Path, Versioning State, Object Lock

s3 cluster status

S3 Status, IP, Port, Uptime, Active Requests, Last Failure, Since Last Failure, Service Status

JSON field naming can differ between the CLIs. Re-verify any --json parsing against the documented field names.

New capabilities with no legacy equivalent

  • fs replication (add, update, pause, resume, remove, fetch): persistent replication-pair management, distinct from the one-shot fs replicate.

  • cluster link (add, refresh, remove): links to remote clusters, which replication pairs are built on. The same commands are also grouped under replication link, and the replication-pair commands under replication fs-pair.

  • profile (16 commands): named connection, authentication, and display profiles, with purge subcommands for certificates, cached completion data, and command history.

  • completion (14 commands): shell completion for Bash, Zsh, fish, and PowerShell, replacing agent autocomplete.

  • prompt and gui bridge: an interactive command prompt, and a local endpoint that forwards to the cluster web GUI over the CLI connection.

  • stats table and stats categories; events categories and events --proxy / --no-proxy.

  • status meta and cluster status meta: version, build, tenant mode, and revision details. The cluster status group is new, but cluster status rebuild and cluster status reduction duplicate status rebuild and status reduction, which exist in both CLIs and still work in 6.0.

  • smb ldap-domain (7 commands).

  • security tls trust, untrust, and purge; security kms scope.

  • tenant chown and upgrade pause / upgrade resume.

  • version get <version> [--set-current]: download and stage any WEKA version locally with parallel progress bars, without a running agent. The command exists in 5.1.31; the parallel progress bars and agent-free operation are what is new.

  • Connection through SSH bastions (--jump) and the WEKA Operator (--kube-weka-cluster).

  • s3 bucket checksum (4 commands) and s3 user decode-key.

Deprecated forms that still work

These forms continue to work but warn or are hidden. Plan to update them:

  • tenant set-qos and tenant set-quota are deprecated in favor of tenant update.

  • stats show is a deprecated alias for stats table.

  • Container resource settings are deprecated on the cluster commands in favor of local resources: cluster container bandwidth, cores, dedicate, failure-domain, management-ips, memory, net add, and net remove.

  • fs tier is deprecated in favor of fs tier s3.

  • NFS interface group --subnet <dotted-mask> is a hidden, deprecated alias for --netmask <bits>; dotted netmask syntax in IP rules warns in favor of CIDR.

  • Relocated s3 forms: s3 local becomes s3 cluster local, s3 cluster kv becomes s3 kv, s3 cluster group becomes s3 group.

Last updated