Skip to main content
Version: main 🚧

Platform CLI hub

This page is a Platform-focused entry point to the vcluster platform CLI. It groups commands by task and links each one to its full flag reference.

The canonical, flag-level reference for every command lives in the vCluster CLI docs. This page shows the Platform UI equivalent next to each CLI command.

Common tasks and CLI equivalents​

Start or install the platform​

TaskPlatform UICLI command
Install PlatformNot available in the UI. Platform installs with Helm or the CLI.vcluster platform start

See the quickstart guide or the Helm installation guide for full install flows.

Log in and access keys​

TaskPlatform UICLI command
Log in to PlatformSign in at the Platform URLvcluster platform login
Log out of PlatformAvatar menu (bottom of the sidebar) > Logoutvcluster platform logout
Create an access keyUsers > select a user > Create Access Key > name it in the drawer > Createvcluster platform create accesskey

Connect a cluster​

TaskPlatform UICLI command
Register a cluster with PlatformClusters > Connect Cluster via CLI > follow the drawer's generated commandvcluster platform add cluster
Create a local kubeconfig context for a connected clusterClusters > kebab menu > Access, then copy the generated commandvcluster platform connect cluster

Create, list, and delete tenant clusters​

TaskPlatform UICLI command
Create a tenant clusterproject dropdown > Tenant Clusters > Create Tenant Clustervcluster platform create vcluster
Add an existing tenant clusterTenant Clusters > Add Existing Cluster > Add existing tenant clustervcluster platform add vcluster
List tenant clustersproject dropdown > Tenant Clustersvcluster platform list vclusters
Delete a tenant clusterTenant Clusters > kebab menu (More actions) > Deletevcluster platform delete vcluster

Create, list, and delete namespaces​

TaskPlatform UICLI command
Create a namespaceProjects > Namespaces > Create Namespace > optional template > Create Namespacevcluster platform create namespace
List namespacesProjects > Namespacesvcluster platform list namespaces
Delete a namespaceNamespaces view, hover the row, click the delete icon in the Actions columnvcluster platform delete namespace

See retrieve a namespace kubeconfig for related namespace commands.

Sleep, wake up, and share resources​

TaskPlatform UICLI command
Put a namespace to sleepNamespaces view, hover the row, click Sleepvcluster platform sleep namespace
Wake up a namespaceNamespaces view, hover the Status column, click Wakeupvcluster platform wakeup namespace
Put a tenant cluster to sleepTenant Clusters > select a cluster > ellipsis menu > Sleepvcluster platform sleep vcluster
Wake up a tenant clusterTenant Clusters > kebab menu (More actions) > Wake Up, shown only while sleepingvcluster platform wakeup vcluster
Share a tenant clusterTenant Clusters > Edit > Permissions > Add Permission > Save Changesvcluster platform share vcluster
Share a namespaceNamespaces > Edit > Permissions > Save Changesvcluster platform share namespace

Backup, destroy, and reset password​

TaskPlatform UICLI command
Back up PlatformNot available in the UI, CLI/Helm onlyvcluster platform backup management
Destroy a Platform instanceNot available in the UI, CLI/Helm onlyvcluster platform destroy
Reset a user's passwordUsers > select a user > Reset Password > confirm > Copy & Closevcluster platform reset password

Resetting the admin password without UI access is CLI/kubectl only, see reset the admin password.

All platform CLI commands​

Start​

CommandDescription
vcluster platform startStart a vCluster platform instance and connect via port-forwarding

Login​

CommandDescription
vcluster platform loginLogin to a vCluster platform instance

Logout​

CommandDescription
vcluster platform logoutLog out of a vCluster platform instance

Access keys​

CommandDescription
vcluster platform access-keyPrints the access token to a vCluster platform instance

Connect​

CommandDescription
vcluster platform connectconnects to vCluster platform resources
vcluster platform connect clusterCreates a kube context for the given cluster
vcluster platform connect managementCreates a kube context to the vCluster platform Management API
vcluster platform connect namespaceCreates a kube context for the given vCluster platform namespace
vcluster platform connect vclusterConnect to a virtual cluster

Add​

CommandDescription
vcluster platform addAdds a cluster to vCluster platform
vcluster platform add clusteradd current cluster to vCluster platform
vcluster platform add standaloneAdds an existing vCluster Standalone cluster to the vCluster platform
vcluster platform add vclusterAdds an existing vCluster to the vCluster platform

Create​

CommandDescription
vcluster platform createCreates vCluster platform resources
vcluster platform create accesskeyCreates a new access key for the current user
vcluster platform create namespaceCreates a new vCluster platform namespace in the given cluster
vcluster platform create vclusterCreates a new virtual cluster

Delete​

CommandDescription
vcluster platform deleteDeletes vCluster platform resources
vcluster platform delete namespaceDeletes a vCluster platform namespace from a cluster
vcluster platform delete vclusterDeletes a virtual cluster

List​

CommandDescription
vcluster platform listLists configuration
vcluster platform list clustersLists the loft clusters you have access to
vcluster platform list namespacesLists the vCluster platform namespaces you have access to
vcluster platform list projectsLists the loft projects you have access to
vcluster platform list secretsLists all the shared secrets you have access to
vcluster platform list teamsLists the vCluster platform teams you are member of
vcluster platform list vclustersLists all virtual clusters that are connected to the current platform

Get​

CommandDescription
vcluster platform getRetrieves and display informations
vcluster platform get clusterPrints the current cluster
vcluster platform get cluster-access-keyRetrieve the network peer cluster access key
vcluster platform get current-userRetrieves the current logged in user
vcluster platform get secretReturns the key value of a project / shared secret

Set​

CommandDescription
vcluster platform setSet configuration
vcluster platform set secretSets the key value of a project / shared secret

Share​

CommandDescription
vcluster platform shareShares a virtual cluster / namespace with another vCluster platform user or team
vcluster platform share namespaceShares a vCluster platform namespace with another platform user or team
vcluster platform share vclusterShares a virtual cluster with another vCluster platform user or team

Sleep​

CommandDescription
vcluster platform sleepPut a virtual cluster / namespace to sleep
vcluster platform sleep namespacePut a vCluster platform namespace to sleep
vcluster platform sleep vclusterPut a virtual cluster to sleep

Wake up​

CommandDescription
vcluster platform wakeupWake up a virtual cluster / namespace
vcluster platform wakeup namespaceWakes up a vCluster platform namespace
vcluster platform wakeup vclusterWake up a virtual cluster after it was put to sleep.

Backup​

CommandDescription
vcluster platform backupBackup subcommands
vcluster platform backup managementCreate a vCluster platform management plane backup

Reset​

CommandDescription
vcluster platform resetReset configuration
vcluster platform reset passwordResets the password of a user

Destroy​

CommandDescription
vcluster platform destroyDestroy a vCluster Platform instance