Repository navigation
Releases
v0.1.0-beta.2
Added
rancher app installandrancher app uninstallinstall and remove a chart from a ClusterRepo through Rancher. Rancher runs Helm in its own pod, as you or as the service account the ClusterRepo names, and records the release as an App, as the Rancher UI does. The preview is built from what the command reads from the server. Add--applyto install, and--apply --yesto uninstall. Values from your--valuesfiles are never printed, except a registry host. The namespace must already exist.rancher app installalso sends values that describe the cluster, underglobal.cattle, as the Rancher UI does. It adds eachglobal.cattlevalue only where your values files set none, and the preview shows them. When the command cannot read them, it leaves them out with a warning.rancher app install --system-default-registry <host>sets the image registry for a chart that declares one. Without the flag, the registry comes from your values files or the chart's defaults. If they set none, it comes from the cluster's registry, else from Rancher'ssystem-default-registrysetting, as in the Rancher UI.--no-system-default-registrysends no registry. Either flag on a chart that declares no registry is refused withVALIDATION(exit 2).app upgradetakes both flags too.rancher app install --waitandrancher app uninstall --waitwait until Helm's run ends and report how it ended. An install returns the release's revision and the statusdeployed, and an uninstall returns once the App is gone. A failed run ends withGENERIC(exit 1, not retryable). The error names the command to run next, and Helm's exit code when Rancher reports one.--timeoutalone also waits. The timeout defaults to 55m, the longest allowed. Ctrl-C ends the wait withINTERRUPTED(exit 130) while Helm's run goes on in Rancher.rancher app upgradechanges a release that Rancher shows as an App. It calls Rancher's upgrade action to change the chart version, the values, or both. It starts from the release's current values and merges each--valuesfile over them.--reset-valuesskips the release's values and sends only your files, plus the cluster and registry values the CLI adds. The preview is built from what the command reads from the server. Add--apply --yesto upgrade, and--waitto wait for Helm's result.rancher create project --display-name <name>with no id creates a project with an id Rancher generates. Without an id,--display-nameis required. The dry-run preview showsp-*instead of the id, because Rancher generates a different id when you run the command with--apply. The--applyresult shows the generated id (data.metadata.namewith-o json). With an id,--display-namedefaults to the id.rancher get,patchanddelete projectroletemplatebindingtake--clusterand--project, asgrantandrevokedo. They find the project's backing namespace themselves. You no longer type-n <cluster>-<project>. Pass both--clusterand--project.--projecttakes the project's id or display name. Giving only one of them is refused withVALIDATION(exit 2).rancher get,patchanddelete managedchartshow, change and delete Rancher's ManagedCharts. A ManagedChart installs a Helm chart through Fleet on its target clusters.getshows the chart, version and ready clusters, and hides the Helm values.patchanddeleteneed--apply --yes. A delete makes Fleet uninstall the chart from every target cluster, unless its target setskeepResources: true. Acreate resourcepreview of a ManagedChart warns that Rancher installs the chart on every target cluster.rancher get authconfiglists and shows Rancher's auth configs, with their credentials hidden. It shows each one's type, whether it is enabled, its access mode, the number of allowed users and groups, and its cleanup setting. The command hides credential fields and references to the Secrets that hold credentials. No flag shows them. Rancher before v2.16 keeps an auth config for every auth provider it supports, most of them disabled.patch,deleteand creating one from a manifest are refused, with the reason.rancher create password-change-request --current-password-stdinsends your current password with the new one. With--password-stdin, the command reads two lines from stdin: the current password, then the new one. Rancher asks for the current password when you change your own password without permission to change every user's password. In PowerShell, use PowerShell 7.1 or later: Windows PowerShell 5.1 sends a byte order mark before piped text, and the CLI then receives a different password.rancher get role,rolebinding,clusterroleandclusterrolebindinglist and show Kubernetes RBAC objects. They show the columns the cluster's API server returns, and completion offers their names. They are read-only.patch,deleteand creating one from a manifest are refused before any request. The error points to kubectl (throughrancher kubeconfig) and torancher grantorrancher revoke.rancher inspect cluster --registrationbuilds the node registration commands of a custom cluster, with the options the Rancher UI offers. Pass--etcd,--controlplaneand--worker(all three when none is given),--node-name,--address,--internal-address,--labeland--taint.--windowsbuilds the Windows command for clusters where the Rancher UI shows one. These commands are underregistration.withOptions. The registration commands Rancher returns still appear as before. A value with a character the Rancher UI would remove is refused before any request.rancher cluster upgrade <cluster> --k8s-version <version>upgrades an RKE2 or K3s cluster that Rancher provisions or that is imported. It accepts the versions the Rancher UI offers: a release of the cluster's own distribution that the server lists, not lower than the current one. The preview comes from a server dry-run and names the newest successful etcd snapshot, because the upgrade cannot be reversed with this command. Add--apply --yes; the command waits until Rancher reports the upgrade done (--wait=falsereturns at once). Completion offers only the clusters and versions the command accepts.rancher cluster save-etcd-snapshot <cluster>takes an etcd snapshot of an RKE2 or K3s cluster that Rancher provisions, as the Rancher UI does. The preview comes from a server dry-run; add--apply --yes. The command waits until Rancher reports the snapshot taken, then lists the cluster's snapshots (--wait=falsereturns once the server accepts the request). It refuses while another operation is in progress on the cluster and while the cluster is not ready. If you run the command again while its own snapshot is in progress, it changes nothing and waits for that snapshot.rancher node drain <node> --cluster <cluster>drains a node through Rancher, as the Rancher UI does, andrancher node stop-drainstops a drain. Rancher cordons the node and evicts its pods. The preview lists the pods on the node and what the drain does to each; add--apply --yesto drain. The command waits until Rancher reports the drain done or failed;--wait=falsereturns once Rancher accepts the request. It works on worker nodes that are active or cordoned. Both commands need access to Rancher's local cluster; without it they end withRBAC(exit 6).rancher get management-node --cluster <cluster>shows the management node Rancher keeps for each node, with its drain state. It shows the columns NODE, DRAINED, REQUEST and WORKER. The argument is the management node's id. If you pass a node's name instead of the id, the error names the management node's id.patchandcreate resourceof a management node are refused, and it has nodelete. Likenode drain, it needs access to Rancher's local cluster.
Changed
- Every
rancher deletenow waits until the object is gone. Before, a delete returned once the server accepted the request, while a pod, a namespace or a project could still be terminating. Now it waits for up to--timeout(default 5m);--wait=falsereturns at once and printsdeletion started, and-o jsonhasdata.waited. A timeout or interrupt is an error that says the deletion was requested and names agetcommand to check it. rancher delete project --delete-namespaceswaits until everything is gone. Before, it returned as soon as Rancher accepted the requests and refused--timeout. Now it waits for the namespaces, then deletes the project and waits for it, all within--timeout. If a namespace delete fails or a namespace is not gone in time, the project is kept.- Kubernetes admission refusals report
VALIDATION(exit 2), notRBAC. Before, a write refused by a ResourceQuota, a LimitRanger, PodSecurity, a ValidatingAdmissionPolicy or one of several other admission plugins wasRBAC(exit 6). Now it isVALIDATIONwith the server's message. A temporary 403 from admission is a retryableGENERIC(exit 1) error. A 409 from an admission webhook is aCONFLICTthat is not retryable. - When Rancher denies access to a cluster or project id, the CLI reports
RBAC(exit 6), notNOT_FOUND. Before,--cluster <id>for a cluster you may not read said the cluster did not exist. Now the error says you cannot read it and lists the clusters you can read. A mistyped id reportsRBACtoo, unless you can read every cluster or project.rancher access projects --clusterstill reportsNOT_FOUND. - Table cells and
-o namenames with hidden characters print in double quotes. Table and wide cells, headers and-o namenames with a control character, an invisible character or an invalid UTF-8 byte now print in double quotes, with that character escaped instead of removed. A name with a zero-width space prints as"web\u200b1", not ...
v0.1.0-beta.1
Added
rancher get clusterrepo,rancher get appandrancher get operationare new. They list and show the Helm repositories, the installed apps and the Helm operations of any cluster you name with--cluster, the local cluster included. App values, chart default values and install notes are hidden from every output. rancher-cli does not change, delete or create these objects; each of those commands is refused with a reason, and the refused patch names therancher getcommand that reads the object.rancher get etcd-snapshotis new. It lists and shows the etcd snapshots Rancher records for a cluster, infleet-defaultby default.--selector rke.cattle.io/cluster-name=<name>lists one cluster's snapshots. It is read-only: patch, create and delete are refused.rancher chartsis new. It lists the charts each ClusterRepo of a cluster offers. Each shows the version the Rancher UI picks by default: the newest that is neither a prerelease nor deprecated.--repo <name>reads one repository,--all-versionslists every version in the order Rancher serves them, and--include-deprecatedadds deprecated versions. Without--repo, a repository whose index cannot be read is skipped with a warning.rancher get,patchanddeletenow take six more Kubernetes kinds. They are HorizontalPodAutoscaler (hpa), LimitRange (limits), NetworkPolicy (netpol), PodDisruptionBudget (pdb), ResourceQuota (quota) and StorageClass (sc), andcreate resource -ftakes their manifests. A patch of a NetworkPolicy, ResourceQuota or StorageClass needs--yes. Every delete shows a preview first and needs--applyand--yes.rancher get helmopandrancher get fleet-workspaceare new.helmoplists, shows, patches and deletes Fleet HelmOps in a Fleet workspace (fleet-defaultunless you pass--namespace). Deleting a HelmOp uninstalls its chart from every target cluster unlessspec.keepResourcesis set, and the preview says so.fleet-workspacelists, shows and patches Fleet workspaces; a patch needs--yes, and rancher-cli does not delete workspaces.rancher auth loginnow signs in through a Generic SAML auth config. Rancher v2.16 adds this provider, typegenericSAMLProviderand provider namegenericsaml. The sign-in opens your browser, as it does for the other SAML providers.--auth-providertakes the provider name or the auth config's name, and TAB completion offers it.rancher telemetry uploadis a new command that works only in a development build. It appears in help,rancher schemaand TAB completion. In a release build it fails withVALIDATION(exit 2) and sends nothing. Release builds still send no usage events.
Changed
-
get <kind> --waitnow watches the object and sees a change within a fraction of a second. Before, a wait checked the object with a GET every 5 seconds. The fast wait needs thelistandwatchpermissions on the object. Withgetalone, or when the server refuses a List or a watch, the wait checks every 5 seconds as before. AnAUTHerror (exit 3) from the List or the watch may namelistorwatch. -
The OIDC client commands now watch the client and see the controller's update within a fraction of a second. Before,
create oidc-clientandoidc-client add-secret,rotate-secretandremove-secretchecked the client with a GET every 2 seconds. The fast wait needs thelistandwatchpermissions onoidcclients. Withgetalone, or when the server refuses a List or a watch, they check with a GET instead. The second GET comes 4 seconds after the List, then one every 2 seconds. -
--auth-providernow fails withCAPABILITY_UNSUPPORTED(exit 11) when it names an auth config rancher-cli cannot sign in through. Before, it failed withNOT_FOUND(exit 4) and did not say what to do. This covers, for example, GitHub, GitHub App, Google, OIDC, Keycloak OIDC, generic OIDC and Cognito, named by auth config name, provider type or provider name. The hint logs you in with an API token you create in the Rancher UI:rancher auth login '<name>' --url '<server>' --token-stdin. -
A message about a token rancher-cli could not delete now names who can delete it and the command to run. Before, when a login was cancelled while it waited, most logins said only that the token could not be revoked. A command that only an administrator can run now says so. A SAML login's token is called a kubeconfig token, Rancher's name for it, never a session token.
-
config statusandconfig set-token-reusenow say who can delete a token rancher-cli left behind. Before, when the token's owner was not known, they told you to delete it and named nobody. Now they say that its owner or an administrator can delete it. For a management token, they say that an administrator can. -
create usernow binds the global roles that Rancher marks as defaults for new users, such asuser. Before, it bound no global role, and the new user could not log in with rancher-cli.--global-role <id>binds the roles you name instead, and the command warns when none of the roles you name allows creating tokens. The command's output lists the bindings inglobalRoleBindings. -
A login that fails because the user may not create tokens now names the role an administrator must grant. Before, it told you to log in again, which failed the same way. The error says the user has no role that allows creating tokens. It also shows the
rancher grantcommand that gives the user the global roleuser. An administrator runs it, and it names the user's id when that is known. This applies toauth loginand to logins by the kubectl plugin. -
rancher schema, its help, the environment variable descriptions and the start-up errors now use plainer words. For example,rancher schemaerrors say "argument" and "remove" instead of "selector" and "drop". The table of contents and a command group card say "to see one kind, run: rancher schema ". The notice for a token or secret shown once now says "shown once", as the text output and the docs already did. A capability error prints "internal error:" once. -
Commands that errors and hints suggest now name a non-default config directory with
--config. Before, they named no directory, and a pasted command could use the default one instead. Warnings, command output (the JSON and YAML of a failed logout or token delete too) and the text of theaccesscommands name it too, and every command that errors, hints and help suggest starts withrancher. The errors for an unknown command or flag still print the plain command. -
A command that an error or hint suggests now runs as you paste it. Before, some lacked a flag or value, had text glued after them, or changed something without a preview. A name that starts with
-now gets--before it, where it was read as a flag. A suggested change carries--dry-run: check the preview, then run it with--apply(and--yeswhen the change is destructive). The revoke command in the kubeconfig file header and the recovery after a failed create carry--apply --yes. -
create kubeconfigon a server older than Rancher 2.15 now gives no hint, and its message holds the command to run. Before, the hint was a command that waited for a token on stdin. The command in the message reads an API token piped on stdin, and the message still names the Rancher version the command needs. After a kubectl plugin login, the message tells you to setRANCHER_CLI_TOKENto an API token instead. -
auth get-tokenwithout--clusternow tells you to pass a cluster id or name, or--user-id. Before, it said only "--cluster is required".--user-idgets a token for Rancher itself. The error staysVALIDATION(exit 2) and its hint shows how to list clusters. If you also pass--server, the error explains thatrancher access clusterslists the clusters of your current server, not of the server you passed. -
skill installnow leaves a target alone and reportsunchangedwhen it already holds the same files. Before, a repeat install reportedchangedfor every target and rewrote every file.--forcestill rewrites. Each row now also shows the verdictskill statusreports for that target, so a repeat install readsin-sync. -
Completion and help no longer offer flags that a command does not take. Before, TAB completion and
--helplisted--dry-run,--apply,--yesand--allow-deprecatedon every command, and--read-onlyand--projecton every command group. Now a command lists a flag only when it accepts it, and a group when a command under it does. Typing a flag gives the same result as before. -
getnow shows a hint when you name a cluster role template binding or a project without--cluster. Before, it showed none, unlikedeleteandpatch. The hint israncher access clusters, which lists the cluster ids you can pass with--cluster. The error staysVALIDATION(exit 2).
Security
-
get bundle,get bundledeploymentandget helmopnow hide Helm values. Before,-o json,-o yamland templates, the previews ofpatchandcreate resource, and the result of an apply showed the HelmvaluesandtemplateValuesof a bundle or bundle deployment, which often hold credentials. Now they are hidden from every output, also in each item of thetargetsof a bundle or HelmOp and in theoptionsandstagedOptionsof a bundle deployment. The kubectl last-applied annotation of these objects is hidden too. -
support-bundlenow leaves out an entry whose name is not a plain file name. Before, a cluster id, namespace, pod or container name with a/,..or a newline went into the archive entry name unchanged, and a NUL byte stopped the whole bundle. A left-out entry shows as anerror:item inmanifest.json, counts inerrors, and a warning names the value. Ordinary name...
v0.1.0-alpha.8
Added
- Each command now records a usage event in the
telemetrydirectory of your config directory, on by default. An event holds the command's name and the names of the flags you typed, never their values, plus details such as the outcome, the exit code, the OS and the CLI version.--help,--version,completionand thetelemetrycommands record nothing. Nothing is recorded until your config directory exists.rancher auth login, for example, creates it. Events stay on your machine. To stop recording and delete what is recorded, runrancher telemetry off. To stop without deleting, setRANCHER_CLI_TELEMETRY=false. - Usage events now record the version, edition and install id of the Rancher server a command reached. After a command gets a response from Rancher, the CLI asks that server for its version and edition, with no token. Usage events of the commands you run later include the server's version and edition. With recording off, the CLI sends none of these requests.
- Some commands also read Rancher's
install-uuidsetting, for the install id in usage events. These includeaccess clusters,access projects,inspect cluster,auth status,auth login, and any command that names a cluster other thanlocalwith--clusteror a project by name with--project.auth logindoes not read it for a token you pasted with--no-verify. With recording on, the firstauth logincreates the config directory but records no usage event. It saves the server's version and edition, and the install id when it got one, undertelemetryinstead. - The kubectl plugin now reads Rancher's
install-uuidsetting when it creates a credential, for the install id in usage events. It uses the token you signed in with, or your stored login. When kubectl gets a cached credential, the plugin sends nothing. During a sign-in, the plugin also asks for the version and edition, and kubectl can wait up to 2 seconds longer. With recording on, the first plugin call that creates your config directory records no usage event. It saves the server's version and edition, and the install id when it got one. - Asking a server for its version, edition and install id can delay a command's exit by up to 2 seconds. The requests run after the command prints its output. After the server returns a value, the CLI asks it again in 24 hours. After a 403 or 404 it waits 6 hours. After any other failure it waits an hour.
- New
rancher telemetrycommands turn recording on or off and show or delete the recorded usage events.statusshows whether recording is on and what decides it: theRANCHER_CLI_TELEMETRYvariable, thetelemetrykey in config.yaml, or the default.showlists the events, andshow -o jsonprints every field.onsets the key totrue.offsets it tofalseand deletes everything recorded.resetalso deletes everything recorded, but keeps the key. Atrueorfalsein the variable overrides the key.config editrefuses an edit that turns recording on or off. - Each release now includes
rancher-schema.json, the schema manifest of that build. It is the output ofrancher schema --all -o jsonand lists every command and flag, the names a usage event can carry. It is listed inSHA256SUMSand has a build attestation like the binaries. - Requests the CLI sends to Rancher now carry a User-Agent that names the CLI, its version and how it was started. The value is
cli.rancher.io/<version> (<os>/<arch>), plusexec-pluginwhen kubectl runs the CLI as its credential plugin,agent=<name>inside a recognized AI coding assistant's session, andciin a CI run. When Rancher's audit log is on at level 1 or higher, it records the value.
Changed
- The description of each token the CLI creates now starts with
cli.rancher.io login @ <host>, where<host>is your machine's name. Before, it started withrancher-cli. Tokens created earlier keep their old description. - Every create, update and patch the CLI sends to a Kubernetes API now names
cli.rancher.ioas its field manager. Before, the token create behind a login or a kubectl plugin sign-in, and the access review requests, sent none. An object's managed fields (kubectl get <kind> <name> -o yaml --show-managed-fields) name the CLI for the fields it wrote. An ext Token still listsrancheras its manager, because Rancher's token API does not keep the request's field manager. get <kind> <name>now waits when you give--foror--timeouton their own, as it does with--wait. Before, either flag without--waitfailed withVALIDATION(exit 2).--timeoutalone waits for the kind's default wait condition, and a kind with none refuses it and asks for--for.--wait=falsetogether with--foror--timeoutis refused.- An error that lists only the first 10 candidates now says how many there were. Before, nothing showed that the list was cut short.
grant,revoke,inspect user,--ason theaccesscommands andrancher schema <name>showcandidates (10 of 37): ..., and the JSON error carriescandidatesTotalwith the size of the full list. - The display name column of
get cluster,get project,get user,get roletemplate,get nodedriverandget cloud-credentialis now headedDISPLAY NAME. Before, it readDISPLAY, orDISPLAYNAMEfor node drivers.get oidcclientnow heads its expiry columnsTOKEN-EXPIRATIONandREFRESH-EXPIRATION, where it readTOKEN-TTLandREFRESH-TTL. The-o jsonoutput is unchanged. - The help of the generated
get,patchanddeletecommands and several error messages now use plainer words. For each kind that has nodelete,rancher schemanow gives a reason that fits that kind.create resourcewith a management token manifest now sayscannot create a management-token from a manifestand points torancher create token. create clusternow warnscreatorId annotation not setwhen it cannot set the creatorId annotation. Before, the warning readcreatorId not stamped. The help ofcreate clusterandcreate machine-confignow uses plainer words, and says that--applystops when the server rejects the dry-run.- When a value is the id of one object and the display name of others, the warning now says which one the command uses. It uses the object with that id, and the warning says how to pick one of the others. This applies to
--cloud-credentialand to cluster and project names. - REFERENCE.md's sections on kinds, verbs and commands that combine several steps now use plain words. They also correct what happens when you delete several kinds, and use the column headers the CLI now prints.
- README.md now uses plain words and states three facts correctly. It now says that the kubectl plugin asks you to log in to each cluster only when no
rancher auth logincredential is stored. It also says thatdeleteexists only for kinds that can be deleted, and that most commands, not all, list a contract and a stability level inrancher schema. - The messages of
create resource,get,patch,delete projectandget --waitnow use plainer words. For example,patcherrors saypatch operationinstead ofpatch op, and an internal fault starts withinternal error:instead ofcommand bug:. Error codes and exit codes are unchanged. - The global flags, the
skillcommands, the completion scripts and several error messages now use plainer words. For example, the-ohelp saysnameprints the NAME column, the--read-onlyhelp says it applies to the run, andskillmessages say what rancher-cli did or did not install. Error codes and exit codes are unchanged. - The
clusterautoscaling and scale commands,get kubernetes-versionsand the cluster registration token commands now use plainer words in their help and messages. Some texts were wrong and are fixed:delete provisioning-cluster localnow gives the actual reason it refuses, and the etcd note in apatch provisioning-clusterpreview now says that removing members can lose quorum, not that it always does. - The install scripts and the bug report form now use plainer words in their messages and fields. Before,
install.shprinted(HTTP error)when its request for the release metadata got no HTTP status. It now printsno HTTP statusin that case. The flags, exit codes and environment variables of both scripts are unchanged. inspect,images,logs,usageandsupport-bundlenow use plainer words in their help, text output and messages. The help oflogs --containernow says that without it the command reads the containers and init containers of each pod. Before, it said the main container. Error codes and JSON field names are unchanged.create token,create kubeconfig,create userandcreate password-change-requestnow use plainer words in their help and messages. For example, thecreate token --ttlhelp now saystoken expiration. Error codes and exit codes are unchanged.- The command group titles, the global flag help and the usage errors now use plainer words. For example,
rancher --helplistsAuth commandsinstead ofAuth operations, and a bad value for a bool flag before the command, as inrancher --debug=maybe, saysthe value must be true or falseinstead ofparse error. Error codes and exit codes are unchanged. - The messages every command shares now use plainer words. For example, a dry-run preview in text output ends with
dry-run preview - re-run with --apply to apply the changeinstead ofdry run - re-run with --apply to execute. For a destructive change it saysre-run with --apply --yesinstead. Error codes and exit codes are unchanged. - When you give an unknown flag with no command, or with a command that takes a secret, the error now names its position. For example,
rancher --bogusprints `unknown flag at argument ...
v0.1.0-alpha.7
Added
auth get-token, the kubectl plugin, now accepts--user-idwithout--name, the form Rancher v2.16 (main, not yet released) writes into kubeconfigs. Rancher writes it only when itskubeconfig-exec-get-tokensetting is true andkubeconfig-generate-tokenis false, and adds--clusteronly for a cluster with an authorized cluster endpoint. The plugin uses a saved login of that user for the server. Without--cluster, it creates a token that is not tied to one cluster, and kubectl reaches the cluster through Rancher. It gives kubectl a token only if Rancher says the token belongs to that user.- With
--user-id, the kubectl plugin now returns a token to kubectl only if it was created through the auth config you named with--auth-provider. The value must be the auth config's exact name, such ascorp-ldap; without--auth-provider, only the user is checked. A value that is no auth config's name, such as the provider typeopenLdapProvider, fails withNOT_FOUND(exit 4) when the plugin has to sign in. When the saved login was made through another auth config, the plugin revokes the token it just created and the call fails withAUTH(exit 3). - A login now records the auth config its token was created through.
config infoshows it astokenAuthConfig,auth statusasauthConfig, and theauth loginresult astokenAuthConfig. A pasted token, including an API key from the Rancher UI, or a login from an earlier release has no auth config recorded. The first kubectl call with--user-idand--auth-providerrecords it when the saved login has a user id; you do not need to log in again. rancher kubeconfignow writes--auth-providerbeside--user-idwhen the login records its auth config.auth loginnow warns when you log in to a server entry as a different user than the one saved for it. The login still works; the warning shows the old and the new user id.auth loginnow warns when you log in to a server entry through a different auth config than the one saved for it. The login still works; the warning shows the old and the new auth config. It says nothing when the earlier login has no auth config recorded.patch <kind>accepts-pas the short form of--patch, as kubectl does.patch <kind> --type mergeapplies an RFC 7386 JSON merge patch. The default is still--type json, an RFC 6902 JSON array. A merge patch replaces each list it contains in full, and the dry-run warns when a list loses entries the object has.- Tab completion for
--auth-providernow suggests the names of the server's enabled auth configs that the CLI can sign in with. It works onauth login,auth get-tokenandrancher token, without sending your token. rancher delete project --delete-namespacesdeletes every namespace in the project, even ones moved into it, then the project. Each namespace to be deleted is checked with a dry-run first, and nothing is deleted when one is refused.default,kube-systemandkube-public, andlocalandfleet-localon the local cluster, are never deleted.rancher getandrancher patchnow complete role template and global role ids. Hidden and locked ones are offered too.
Changed
- The CLI is now built against the Kubernetes 1.37 client libraries, the version Rancher v2.16 (main, not yet released) uses. Commands and output are unchanged.
- With token reuse on (
rancher config set-token-reuse on), a call with--user-idnow saves one server entry for each server and user, namedexec-login-<host>-<user id>. With--auth-providerthere is one for each auth config too, and its name also ends in the auth config. The plugin never writes a login over an entry that holds another user's login or a login through another auth config. - With token reuse on, a kubectl call without
--user-idnow fails when the server has severalexec-login-entries. The plugin looks at theexec-login-entries only when none of the server entries you created withauth loginhas a token it can use for the call. The error isAMBIGUOUS_SELECTION(exit 2) and shows how to log in to an entry instead. auth logout,auth delete-tokenandconfig delete-servernow report a certificate failure asTLS_TRUST. Before, a token they could not revoke because of the server's certificate showed Go's raw TLS error with no code. Now itsnotRevokedentry in the output hascode: TLS_TRUST, a message that says how to fix it, and the certificate's details. Exit codes are unchanged.- When a revoke fails because the server's CA is unknown, the warning now tells you to save the CA before you log in again. Without the saved CA your next login fails on the same certificate and cannot retry the revoke. The warning gives the command:
rancher config update-server <entry> --cacert <file>. rancher auth login <entry>no longer suggests--cacertfor a certificate error. That command refuses--cacertwithout--url. If the server's CA is unknown, the error now tells you to save it withrancher config update-server <entry> --cacert <file>. If the certificate names a different host, it tells you to check the server URL saved for the entry.- Certificate errors and the
auth logintrust prompt use plainer words. The error says to get the CA from a source you trust, and both say to confirm the fingerprint with the server's administrator, instead of "out of band" or "a trusted channel". - A positional argument is now used exactly as typed, spaces included. Before, the spaces around it were dropped:
rancher get pod ' web'looked up the podweb. Now it looks up a pod namedweb. - A bool flag followed by a separate
trueorfalse, as in--dry-run false, now fails withVALIDATION(exit 2). Before,rancher schema --dry-run falsefailed withDRY_RUN_NOT_APPLICABLE(exit 2). The error shows the word that followed the flag, and1,0,tandfare refused the same way. Write the value joined with=, as in--dry-run=false;--dry-run=1and--dry-run=tstill work. - The error for words typed after a lone
-now reads'x' 'y' after a - on its own; a - on its own ends the command line. Before, it reada - on its own ends the command line, so the words after it would be ignored: 'x' 'y'. The command still fails withVALIDATION(exit 2); only the text changed. - A bool flag with only whitespace after
=, typed as'--yes= ', is now refused even when--helpor--versionfollows it. Before,'--yes= ' --helpshowed help,'--yes= ' --versionshowed the version, and'--yes= ' nosuchfailed with the unknown-command error. Now all three fail withVALIDATION(exit 2):--yes= has an empty value; a bool flag typed with = takes true or false. --auth-providernow takes an auth config name, such ascorp-ldap. Without--user-id, a provider type such asopenLdapProviderstill works; if it matches more than one auth config, the CLI asks you to pick one or, when it cannot ask, lists them in the error. With--user-id, only the exact auth config name works. The sign-in menu lists auth configs. When a provider type has several, a password or OAuth sign-in says which one it uses.- Error, warning and help messages now give the fact first, then the rule, usually after a semicolon. Before, many of them joined the two with a comma and "so". The facts, flags and commands in each text are unchanged; a script that matches the old wording of one of these messages must match the new one.
- Commands that take a user, project, role template, global role or node driver now take its id as the argument. That is
getandpatchfor all five anddeletefor a user or project. The argument shows as<id>([id]onget). If what you typed is the username or display name of exactly one object, theNOT_FOUNDerror gives that object's id, lists it incandidatesand suggestsrancher get <kind> '<id>'. A project member who types a project's display name gets the same, and the code staysRBAC. - When
patchrefuses a patch, the error now says in plain words why. Before, theVALIDATION(exit 2) message quoted Go's JSON decoder. If you give a JSON object without--type merge, the error now tells you to pass--type merge.patchnow reads a patch file that starts with a UTF-8 byte-order mark. rancher delete projectnow lists the namespaces Rancher deletes with the project and the ones it keeps. Before, its warning said namespaces created through Rancher are deleted with the project and namespaces moved into the project are kept. Rancher deletes the namespaces that carry thefield.cattle.io/creatorIdannotation and keeps the others. The dry-run and the result list them, and-o jsonhas every one indata.objects.- A namespace is now part of a project only if its
field.cattle.io/projectIdannotation names it; the project label alone is no longer enough. This applies wherever--projectnarrows a command to a project's namespaces, and tousage --by projectandproject add-namespace. The one exception isproject remove-namespace: it still accepts a namespace that has the project label but no annotation, and it removes the label. - Live completion now shows a user, project, cluster, role or node driver id with its name beside it. For example,
rancher delete user <TAB>listsu-abc12withalice (Alice Smith). The inserted value is still the id. bash shows names on the second TAB, on bash 4 and later only. rancher getnow prints built-in kinds with the same columns and cells askubectl get. This covers nodes, pods, deployments, services and the other 13 Kubernetes kinds. The table comes from the cluster's API server, and a node showsNotReady, orReady,SchedulingDisabledwhen cordoned, as kubectl does.-o wideadds the server's extra columns, and a list of a namespaced kind ...
v0.1.0-alpha.6
Added
create project --container-default-resource-limitsets default CPU and memory requests and limits for the project's containers. Give it aslimitsCpu=500m,limitsMemory=512Mi,...; completion offers the keys. The limits apply to containers in the project's namespaces.create usertakes--descriptionand--must-change-password.--must-change-passwordmakes the user set a new password at their next Rancher UI login. It is a bool flag: pass it alone, or with=(--must-change-password=false). The result includesdescriptionandmustChangePasswordwhen the server stored them.- With
--user-id,auth get-tokengives kubectl a token only if Rancher reports that it belongs to that user. If a stored login belongs to another user, the command refuses it before sending any request. If a token created from a stored login turns out to belong to someone else, the command revokes it and does not cache it, and it checks a new sign-in the same way. If a login entry the kubectl plugin created belongs to another user, the command skips it without an error, unless--namenames that entry. - Without ext tokens on the server,
auth get-token --user-idrefuses stored logins. Rancher cannot report their owner, so the command fails withCAPABILITY_UNSUPPORTED(exit 11). Login entries the kubectl plugin created itself are not affected. rancher kubeconfigwrites--user-idinto the exec entry when the login has its owner recorded. If someone later logs that entry in as a different user, kubectl calls through the file fail instead of running as that user. When the login has no owner recorded, a notice tells you which login to run so the owner is recorded, and then to runrancher kubeconfigagain.access clustersshows which clusters you, or the user named with--as, can reach. It prints one row per cluster you can see, marked reachable, refused, or unknown when the check failed, with the cluster, project and global role bindings that grant access. Reachable means Rancher's proxy accepts their requests to the cluster;access listshows what they may do there. The command exits 13 when any row is unknown.access projectsshows which projects you, or the user named with--as, can see and belong to. The output groups projects by cluster, and the cluster lines are the same onesaccess clustersprints.--clusterlimits the run to one cluster, by id or unique display name. The command exits 13 when any cluster, project or namespace is unknown.- Visibility is all, partial, none or unknown, with counts: the command asks the cluster whether they may get each of the project's namespaces.
- They are a member when a ProjectRoleTemplateBinding names them; access that comes only from cluster or global bindings shows as inherited.
- If the server allows them on a project but no Rancher binding names them, the project gets a note saying so.
- If a ProjectRoleTemplateBinding names them but the cluster denies them every namespace in the project, the output reports that mismatch on its own row.
- Every
accesscommand takes--timeout. It limits the whole call; the default stays 60s. Anything but a positive duration is aVALIDATIONerror (exit 2). Completion suggests 30s, 1m, 2m, 5m and 10m. rancher kubeconfig --exec-command <command>sets the command kubectl runs. If you give a bare name, kubectl finds it on its PATH. A path is made absolute from the current directory, and a leading~means your home directory. Completion offers the executables on PATH for a bare word and file names for a path.auth list-tokensnow shows the Rancher token name for each cached kubectl credential. The new TOKEN column shows it as<kind>/<name>, such asext/<name>. It shows-when none was recorded, for example for credentials cached before this release. JSON output addstokenRefandtokenUserId.rancher schemashows how each command uses the server. Each command has aserverAccessfield,none,readorwrite(may create or delete server objects), which replaces thenetworkboolean. The contract line showsserver=readorserver=write.-nworks as--namespaceon every command that takes it, not only on theaccesscommands.
Changed
Credentials, login and the kubectl plugin
- With no terminal and several auth providers,
auth get-tokensays how to log in. Before, without--auth-providerit refused withAMBIGUOUS_SELECTION, listing every provider and no remedy. Now it names the piped-token login and the other no-terminal options, offers only providers that sign in without a terminal (SAML and OAuth), and names the--auth-providerto add. When none can, or under--no-input, the error isAUTH(exit 3). The legacyrancher tokendoes the same. - The warning that credentials are kept in a plaintext file now appears only when a sign-in is about to start. Before, with token reuse on and the file store, the kubectl plugin also printed it when it refused a call without signing in. Now it appears right before the sign-in's first prompt, login URL, device code or browser step.
auth login --token-stdinand the pasted-token prompt record the token's owner. The token is now checked with one SelfSubjectReview, which also returns the owner.--no-verifystill sends nothing and records no owner.- Error hints no longer tell you to run
auth loginon login entries the kubectl plugin created.auth loginalways refused those entries (exec-login-...). The hints now tell you to log in with a new entry, make it the current one and write the kubeconfig again. - The keychain now keeps a separate credential for each config directory. Two directories that use the same server name no longer share a credential. Log in again after upgrading: until you do, a directory that uses the keychain shows no stored credential. The old keychain item stays under the server name alone (service
rancher-cli, account = the entry name) and nothing uses it any more; delete it with your keychain tool. - If you copy a config directory, both copies share its keychain credential only until one of them logs in again. After that, the other copy's next read fails with
CREDENTIAL_REPLACED; runrancher auth loginfor that entry to give it its own credential; its other entries are not touched. Each directory keeps one ID file per entry incredstore-id/, and if you delete one, that entry shows as not logged in. A login that was interrupted reportsLOGIN_INCOMPLETE; run it again. - A config directory that uses the keychain now reads credentials only from the keychain. Before, it fell back to
credentials.yamlwhen the keychain had no credential or could not be reached, and a logout also deleted the copy in that file. Now, if the keychain cannot be reached, the command fails and says what to do instead of using a token from the file: make the keychain reachable, or use a different--configwhosecredentialStoreisfile. - An unusable keychain or credential helper fails as
CREDENTIAL_STORE_UNAVAILABLE(exit 14, retryable). Before, a locked or unreachable keychain, a cancelled macOS prompt, or a missing, timed-out or failing helper gaveGENERIC(exit 1) orVALIDATIONwith only the backend's own text. The message now names the store, the entry, the cause when known, and the remedy, such assecurity unlock-keychainon macOS. A failed keychain write no longer suggestsRANCHER_CLI_CREDENTIAL_STORE=file. - On macOS, the first login in an
autodirectory no longer falls back to a plaintext file when the keychain is locked. Before, if the keychain prompt was cancelled or not answered within 5 seconds, that login saved the credential in plaintext. Now it fails withCREDENTIAL_STORE_UNAVAILABLE(exit 14), saves nothing and does not writecredstore-pin. Unlock the keychain or approve the prompt and run the command again, or choose the file store withrancher auth login <name> --credential-store file.- On other systems, and for other failures such as no keychain session in CI, the first login still writes the file store to
credstore-pin. - An
autodirectory with nocredstore-pinand its credentials in the file store keeps using it while the keychain is locked. - An
autodirectory with nocredstore-pinand its credentials in the keychain fails withCREDENTIAL_STORE_UNAVAILABLEinstead ofVALIDATION.
- On other systems, and for other failures such as no keychain session in CI, the first login still writes the file store to
- The first login now saves which credential store a config directory uses. It writes the setting to
config.yaml'scredentialStorefield, and every later command uses that store. To pick one, setRANCHER_CLI_CREDENTIAL_STOREbefore the first login. Before, if the variable later named a different store, the CLI used the variable without telling you. Now every command, including a login, fails with an error that names both. Unset the variable or use a different--config. config update-serverwith only a new CA keeps the entry's tokens and login information. Before, it dropped them.config add-servernow also starts a new entry with no cached kubectl credentials, even when an earlier entry had the same name.- You change a directory's credential store by logging in with
--credential-store.rancher auth login <name> --credential-store <store>records the new store only once the credential is saved in it. Before you sign in, the change is refused while another entry still has a credential or an unfinished login in the old store, and the error names the entries to log out. It is also refused if another entry left a credential in the new store: log that entry out with the keychain reachable. - Changing a directory's credential store to or from a credential helper is refused while it has other entries. A credential helper can return a credential for any entry, logged in or not, so another entry could en...
v0.1.0-alpha.5
Added
- Access questions, answered by the server.
access canasks a cluster's authorizer whether you (or--assomeone) may perform a verb on a resource: exit 0 allowed, 12 denied, 13 unknown.access listshows the rules a subject holds in a namespace, a project, or every namespace you can list.access who-canlists the subjects the authorizer allows for a verb and resource, one SubjectAccessReview per candidate.access explainshows why: the binding the server's reason names, the rules in it that cover the request, and the Rancher chain behind it (ClusterRoleTemplateBinding, ProjectRoleTemplateBinding, GlobalRoleBinding, RoleTemplate inheritance). Nothing is computed from bindings on the client, and every answer names its source and the identity it was asked about. - Machine pool scaling and autoscaling.
cluster scalesets a pool's node count by name and refuses to fight the autoscaler unless autoscaling is paused.cluster set-autoscaling,clear-autoscaling,pause-autoscalingandresume-autoscaling(Prime) manage the cluster autoscaler per pool and cluster-wide; bounds are checked before anything is sent.inspect clustershows each pool's autoscaling bounds and marks an autoscaled pool's quantity as the autoscaler's count, not yours. rancher kubeconfigincludes the Authorized Cluster Endpoint. When a cluster has it enabled, the kubeconfig gets the same direct contexts Rancher's own kubeconfig has (<entry>-fqdn, or one per control-plane node), one of them current, with the proxy context kept as fallback. The exec plugin waits until a fresh token is accepted at the direct endpoint, so the first kubectl call no longer fails while Rancher syncs the token.- One login per server for kubectl.
config set-token-reuse onlets the exec plugin log in once per server and reuse that credential for every cluster; the default stays per-cluster prompts.config statuslists every token the CLI owns per server with owner, expiry, state, and the command that removes it;config delete-serverprints the same before deleting;auth statusnames who created the credential it checked. A replaced credential's server-side tokens are revoked. --selector(-l) on everyget. Sent to the server as the list filter. A bad selector is a VALIDATION error; under--projectthe two selectors are joined.auth login --urlneeds no name. The entry takes its name from the URL's host. An IPv6 literal cannot be a name; pass one.- Guided trust. An interactive login that meets an unknown certificate authority shows the certificate (serving certificate or CA, with its subject) and offers to pin it. A later login that sees a different one warns with both fingerprints first.
--no-input, pipes, and "no" keep the structured refusal. The card also says an unrecognized certificate on a server you already trusted can mean TLS interception. - A Windows installer.
install.ps1does whatinstall.shdoes: version pinning, checksum verification of both binaries, provenance verification throughghwhen available, dry run. Both installers now handle 8.3 short paths. - Completion tracing. Set
RANCHER_CLI_COMPLETION_DEBUGand a completion request prints one timed line per phase to stderr: config, budget, connection, which token was used or why none, each request, candidate count. Ordinary commands stay silent. logs api-extensionstreams the server that serves tokens and kubeconfigs.- Feature flag advisories. Patching a feature that needs a server restart says so and tells you to wait for the server to return. A Prime-only feature that reads enabled on a community server is marked inactive there, and a command that needs it refuses with PRIME_REQUIRED.
- Small additions.
config statusnames the credential storeautowill pick on this platform before any login.get project -o wideshows DESCRIPTION.
Changed
auth loginnames the providers it cannot use. A provider the server offers but the CLI cannot log in with (GitHub and the other code-exchange providers) is listed as such instead of vanishing.--auth-provideralso accepts the short id (local,github).rancher schema get <command>explains the two forms (schema get <kind>is the kind view,schema <command>the command view) and hints the right one.- Help is alphabetical. Commands and options sort by name in every help card;
rancher schemaand COMMANDS.md keep their task grouping. Prime-only commands carry a green[Prime]token. - An unknown command or a bad flag is an error like any other. It is rendered with the same red prefix and hint styling on a terminal, and structured under
-o jsonor-o yaml, instead of plain text. - The CLI signs its writes. Every create and update records
cli.rancher.ioas the field manager. A patch preview warns about each field another server-side-apply manager (Flux, Argo CD) owns and may revert, and refuses operations onmetadata.managedFieldsormetadata.resourceVersion. - Every hint is a command you can paste. Explanations moved into the message. A namespaced
getwithout--clusternow names the local-only namespaces and the value to pass;inspect clusterkeeps only the runnableget clusterregistrationtokencommand as its hint;create cluster's identity-probe context is a warning that says--applyrepeats the same dry-run. - Incomplete API discovery is reported. When the server cannot describe some API groups, a name another group serves resolves with a warning naming the groups skipped; a name only a failed group could serve is a retryable error naming them, instead of "unknown resource".
- A resourceVersion conflict is retryable and says "the resource changed on the server since it was last read; retry the command". A duplicate name on create stays non-retryable.
- A failed login cleans up after itself. Tokens the login created are revoked on every failure path, never a pasted or piped token, and the failure names each token's fate with the exact command for anything left. A server rejection exits AUTH from both login flows.
- Live completion uses the current server's token, so a second entry for the same server no longer silences it.
- Proxies are documented:
HTTP_PROXY,HTTPS_PROXY,NO_PROXYand their lowercase twins (uppercase wins), theNO_PROXYforms honored, and that a CONNECT tunnel still verifies the real server against the pinned CA.
Security
- Server text cannot forge output. Every table cell, name, warning, error and preview line has control characters stripped, so a description with a newline no longer fakes a row and an escape sequence never reaches the terminal. JSON, YAML and template output are untouched.
- Trust stops at the Rancher origin. The pinned CA verifies Rancher only; identity providers are verified against the operating system store and must be https. A redirect to another origin is refused, so a bearer token or request body is never replayed elsewhere.
- Tokens the CLI creates are revoked when no longer needed: after a failed login, and when a new login supersedes a credential.
Compatibility
- The Prime marker is spelled
[Prime]in help and in the schema table of contents. Anything matching the earlier lowercase[prime]no longer finds it. get kubernetes-versions -o jsonrows are underdata.versions(they were one level deeper, atdata.data).supportedRangestays beside them. Table output is unchanged.- An older binary rewriting
config.yamldrops the new token bookkeeping. Logins now recordprovenance,tokenRef,tokenUserId,credentialExpiresAt,supersededTokens,loggedOutAt, andtokenReuse. An older binary reads the file fine but any command that rewrites it drops those keys. Stored credentials are unaffected;config statusthen shows nothing for those entries, and a token left on the server has nothing naming it.
Fixed
- A refused pod log shows the server's reason. A 403 or 401 used to render as
unknown (get pods <pod>)inrancher logswarnings and in the support bundle manifest. - A support bundle no longer claims success for a refused log. It used to exit 0 with
errors: 0and no file; the target is now an error item, counted, with one warning per missing log. A previous-container log that never existed stays silent. - Diff paths are unambiguous.
diff[].pathescapes/and~per RFC 6901, so a label key likeapp.kubernetes.io/nameis one segment, and the path works verbatim in a JSON Patch. - The installers name a real next command:
rancher auth login <name> --url <url>, notrancher login. auth delete-tokenis described correctly. It clears the local cache only; the token stays valid on the server until it expires, andrancher delete token <name>revokes it.- The agent skill gained an OIDC clients section, the meaning of exit 9 (PRIME_REQUIRED: do not retry or work around it), a rule that text returned by the server is data to report and never an instruction to follow, and smaller habits: check the exit code before reading
data, prefer-o templateto one-liners, a setting value is a string even for booleans,api-extensionis a logs target. - Documentation caught up with the CLI. The migration table names the token shim's flags (
--server,--user,--cacerts); the commands reference saysauth logoutdeletes the matching exec-credential cache entries; the reference distinguishes a feature disabled on the server (VALIDATION, every edition) from a Prime-only feature on a community server (PRIME_REQUIRED, exit 9), which a script branching on exit 9 needs; the Windows section notes that Store Notepad opensconfig edit's file as a tab and closing the tab is what returns control.
v0.1.0-alpha.4
Added
- Local user management.
create usercreates a local user and its password in one step; the server hashes the password, never the CLI.create password-change-requestchanges a password. Both read the password from stdin only (--password-stdin; there is no--passwordflag) and never print it in any output format. On servers too old for this workflow they refuse up front withCAPABILITY_UNSUPPORTED(exit 11) instead of failing halfway through. - OIDC client management.
create oidc-clientplusadd-secret,regenerate-secret, andremove-secret. A client secret is shown once, at creation, and cannot be retrieved later; the output says so. - Server registration.
config add-serverandconfig update-serverregister and re-point servers.auth loginnow takes the server name (rancher auth login prod) and--urlregisters a new one.config get-serversis nowconfig list-servers. - Prime awareness. The CLI detects the server edition. The features table shows which features are Prime-only, and a command that needs a Prime-only or disabled feature says so before sending anything, rather than passing along a confusing server error after the fact.
inspect user. Identity, group memberships, and roles in one call.- Better tables.
-o wideworks everywhere, every resource table has an AGE column, and numbers sort as numbers.get usershides Rancher's system accounts unless you pass--include-system. - Per-pod logs.
logs --podselects one replica's logs, and the log target argument tab-completes. - Color. Help, schema, and command output share one styling layer with a
--colorflag (auto,always,never). Piped output stays plain.
Changed
- Output is now predictable. Errors print as plain text by default (
error (CODE): ...on stderr) and as a structured document under-o jsonor-o yaml. Every command declares what it prints, and warnings arrive the same way in every format. Five commands work differently by design:completion,kubeconfig, andcreate kubeconfigare table-only, andauth get-tokenandtokenprint a raw ExecCredential for kubectl. - A failure can no longer look like success or like nothing. Any internal failure prints a diagnostic before a non-zero exit. A command that already changed the server cannot exit 1 with empty output anymore.
- Tab completion for
-ooffers only formats the command accepts, and the schema now correctly marks login and server registration as commands that use the network.
Security
- Logins are harder to subvert. Every https login checks the TLS certificate before anything is saved and reports certificate problems as a
TLS_TRUSTerror that names the actual issue. A pasted or piped token is verified against the server before it is stored.auth login --urlrefuses to silently re-point a registered server, and--skip-verifyis gone fromauth get-token. - Credentials stay out of output. The response printed after create, patch, and
project create-secretis scrubbed of password and secret fields. Previously a patched User could echo its password hash and a created project secret its payload. - Auth cannot hang. Every login and token request has a timeout, so an unresponsive server no longer stalls a credential refresh forever. Ctrl-C during a password prompt exits immediately and restores terminal echo.
- Releases are built more safely. Tests and third-party tooling no longer run with release credentials, two runs for the same tag can no longer race each other into a duplicate release, and tests now catch a platform missing from the published assets.
- Fuzz testing runs weekly and already paid for itself: it found a bug where a server URL with a percent-escaped host (an IPv6 zone id) produced a broken stored identity. Fixed.
Fixed
- Support bundles from large installations no longer risk running out of memory. The archive is written as data is collected instead of all at once, and per-namespace events are capped at the newest 500 (the manifest notes when truncation happened).
- The Windows install instructions are complete. They now cover renaming both downloaded executables to the names the CLI expects (
rancher.exeandrancher-credential-vault.exe) and checksum-verifying both before putting them onPATH. Previously they ended at "download the assets". - The migration guide is accurate again. Legacy
server delete,clusters create, andclusters deletepoint at their real replacements (config delete-server,create cluster,delete provisioning-cluster) where it previously claimed there were none. config set-completionconfirms what it did rather than exiting silently, an interrupted prompt leaves the cursor on a fresh line, andcreate kubeconfigrejects output formats it cannot honor where it used to ignore them.
v0.1.0-alpha.3
Changed
- The context concept was removed. Config now holds servers and a current server, nothing else; cluster and project scope are stated explicitly per invocation (
--cluster,--project). Scope errors now say what to type instead of pointing at a stateful context, and a missing login reportsNOT_LOGGED_INrather than an unset context. auth checkandconfig infoare nowstatus. One verb answers "where am I pointed and am I logged in", andauth logoutreports what it actually did.
Improved
- Composite views degrade instead of failing. When the user lacks permission to see some of the information in
inspect cluster(or any composite), the sections they can see render and the withheld ones are named in adata.degradedenvelope field — a project member gets a useful answer instead of an error. get usersis a table an operator can read, and settings and features tables now show where each value comes from: whether it's customized, its source, the default, and whether it's dynamic or locked.
Fixed
- Project members can inspect their own project. Commands that resolved a project by listing all projects now fall back to a direct get when list is forbidden.
v0.1.0-alpha.2
Fixed
- A project-carrying context no longer breaks commands that can't take a project scope. With a
cluster:projectcontext set, commands likedelete project Xfailed with "--project does not apply" for a flag that was never typed. The context's project is now consulted only where project scope applies; an explicitly typed--projecton a non-scopable kind still fails loudly.
Improved
- The Effect contract is published in the schema table of contents.
rancher schema -o jsonnow carrieseffectSchema— the closed action enum and every Effect field — beside the global exit-code map, so an agent can parse--dry-runpreviews from one ~11 KB unauthenticated fetch instead of the full 274 KB manifest. - The installer works end to end. Asset downloads use the GitHub API endpoint when a token is set, the documented
one-liner is zsh-safe and selects prereleases with--pre, and the bearer token never leaves the API host. - The installer names its hazards. After install it warns about shadowing
rancherbinaries elsewhere on PATH (symlink-chains resolved, convenience symlinks suppressed) and names every version change — upgrades noted, downgrades warned, same-version silent.
Docs
- REFERENCE.md documents the installer's download path and post-install messaging.
v0.1.0-alpha.1
The first pre-release.
Highlights
- Plan/apply safety on every mutation — a server-computed preview (
--dry-run), an explicit execute gate (--apply), a destruction gate (--yes), and a resourceVersion precondition binding the write to the previewed state. No interactive prompts anywhere. - Self-describing surface —
rancher schemalists all 171 commands across 11 groups and 48 resource kinds, with per-command contracts and gates; agents orient themselves without external docs. - Agent skill included —
rancher skill installwires the CLI into Claude Code, Codex, and GitHub Copilot CLI following the open Agent Skills standard. - Structured output — one versioned JSON envelope per invocation under
-o json, structured errors with next-step hints, typed exit codes for scripting. - kubectl integration —
rancher auth get-tokenis an exec-credential plugin;rancher kubeconfigemits a local kubeconfig with no embedded secret; legacy Rancher-generated kubeconfigs keep working. - Operations toolkit — composite reads (
inspect cluster,inspect project,inspect pod), fleet-wideimagesandusage,
curatedlogs, one-commandsupport-bundle. - Credential hygiene — tokens live in the OS keychain (or a 0600 file, or HashiCorp Vault / OpenBao via the bundled
rancher-credential-vaulthelper); secrets never appear on the command line.