Commands Cheat Sheet

Evaluating engineering tools? Get the comparison in Google Sheets

(Perfect for making buy/build decisions or internal reviews.)

Most-used commands
Your email is safe thing.

Thankyou for your submission

We have sent the cheatsheet on your email!
Oops! Something went wrong while submitting the form.

Connection

rancher login
Login to Rancher server

rancher context switch
Switch between Rancher environments

rancher clusters
List all clusters managed by Rancher

Cluster Management

rancher clusters create
Create a new Kubernetes cluster

rancher clusters delete
Delete a cluster

rancher clusters add
Add an existing cluster to Rancher

rancher clusters kubectl --
Run kubectl commands on a specific cluster

Project/Namespace Management

rancher projects
List all projects

rancher projects create
Create a new project

rancher namespaces
List all namespaces

rancher namespaces create
Create a new namespace

Workload Management

rancher apps
List all applications

rancher apps install
Install an application from a Helm chart

rancher apps delete
Delete an application

rancher kubectl get pods
List all pods in the current context

User Management

rancher users
List all users

rancher users create
Create a new user

rancher roles
List all roles

rancher members
List all members

Monitoring

rancher monitoring enable
Enable monitoring for a cluster

rancher monitoring disable
Disable monitoring for a cluster

rancher monitoring status
Check monitoring status

Logs and Troubleshooting

rancher logs
View logs for a specific pod

rancher exec -it -- /bin/sh
Open shell in a pod

rancher inspect
Get detailed information about a resource

rancher events
View events in the cluster