Command Reference: rdctl
rdctl
is a command-line tool, included in Rancher Desktop that enables command-line access to GUI features. rdctl
is developed to help users with tasks such as scripting (for automation, CI/CD), troubleshooting, remote management, etc. The current version of rdctl
supports the below commands (with support for more commands to be added in upcoming releases):
As the current version of rdctl
is experimental, all subcommand names, their arguments, and their output are still subject to change.
For many rdctl
commands, there are corresponding API
calls that can be applied. Listed below are the available commands shown in both formats. The api
examples will assume curl
as the tool being used to talk to the API.
Additionally, some examples make use of credentials which can be found in these locations across platforms:
- Linux: ~/.local/share/rancher-desktop/
- macOS: ~/Library/Application\ Support/rancher-desktop/
- Windows: %LOCALAPPDATA%\rancher-desktop\
The Rancher Desktop application must be running for the following commands:
Command List
- rdctl list-settings
- rdctl set
- rdctl shutdown
rdctl or rdctl help​
Run rdctl
or rdctl help
to see the list of available commands.
Example Output
> rdctl help
The eventual goal of this CLI is to enable any UI-based operation to be done from the command-line as well.
Usage:
rdctl [command]
Available Commands:
api Run API endpoints directly
completion Generate the autocompletion script for the specified shell
create-profile Generate a deployment profile in either macOS plist or Windows registry format
extension Manage extensions
factory-reset Clear all the Rancher Desktop state and shut it down.
help Help about any command
list-settings Lists the current settings.
set Update selected fields in the Rancher Desktop UI and restart the backend.
shell Run an interactive shell or a command in a Rancher Desktop-managed VM
shutdown Shuts down the running Rancher Desktop application
snapshot Manage Rancher Desktop snapshots
start Start up Rancher Desktop, or update its settings.
version Shows the CLI version.
Flags:
--config-path string config file (default ~/$HOME/rancher-desktop/rd-engine.json)
-h, --help help for rdctl
--host string default is 127.0.0.1; most useful for WSL
--password string overrides the password setting in the config file
--port string overrides the port setting in the config file
--user string overrides the user setting in the config file
Use "rdctl [command] --help" for more information about a command.