diff --git a/docs/reference/replicated-cli-cluster-shell.mdx b/docs/reference/replicated-cli-cluster-shell.mdx
new file mode 100644
index 0000000000..7bed7b9183
--- /dev/null
+++ b/docs/reference/replicated-cli-cluster-shell.mdx
@@ -0,0 +1,46 @@
+import Help from "../partials/replicated-cli/_help.mdx"
+
+# cluster shell
+
+Opens a new shell session with the kubeconfig configured for the specified cluster. This allows you to have immediate kubectl access to the cluster within the shell environment.
+
+You can either specify the cluster ID directly or provide the cluster name to resolve the corresponding cluster ID. The shell will inherit your existing environment and add the necessary kubeconfig context for interacting with the Kubernetes cluster.
+
+Once inside the shell, you can use 'kubectl' to interact with the cluster. To exit the shell, press Ctrl-D or type 'exit'. When the shell closes, the kubeconfig will be reset back to your default configuration.
+
+## Usage
+
+```bash
+replicated cluster shell [ID] [flags]
+```
+
+
+
+ | Flag |
+ Type (if applicable) |
+ Description |
+
+
+
+ | --id |
+ string |
+ ID of the cluster to have kubectl access to (when name is not provided) |
+
+
+ | --name |
+ string |
+ Name of the cluster to have kubectl access to. |
+
+
+
+## Examples
+
+```bash
+# Open a shell for a cluster by ID
+replicated cluster shell 89be02de
+```
+
+```bash
+# Open a shell for a cluster by name
+replicated cluster shell --name "My Cluster"
+```
\ No newline at end of file
diff --git a/docs/vendor/testing-how-to.md b/docs/vendor/testing-how-to.md
index 425ae31081..b7b500235d 100644
--- a/docs/vendor/testing-how-to.md
+++ b/docs/vendor/testing-how-to.md
@@ -193,6 +193,7 @@ The `cluster prepare` command requires either a Helm chart archive or a director
```
For command usage, including additional options, see [cluster prepare](/reference/replicated-cli-cluster-prepare).
+
### Access Clusters
Compatibility Matrix provides the kubeconfig for clusters so that you can access clusters with the kubectl command line tool. For more information, see [Command line tool (kubectl)](https://kubernetes.io/docs/reference/kubectl/) in the Kubernetes documentation.
@@ -206,12 +207,14 @@ To access a cluster from the command line:
```
In the output of the command, verify that the `STATUS` for the target cluster is `running`. For command usage, see [cluster ls](/reference/replicated-cli-cluster-ls).
-1. Run the following command to download the kubeconfig for the cluster and update Kubernetes context:
+1. Run the following command to open a new shell session with the kubeconfig configured for the cluster:
```bash
- replicated cluster kubeconfig CLUSTER_ID
- ```
- When the command completes, a `Updated kubernetes context` message is displayed. For command usage, see [cluster kubeconfig](/reference/replicated-cli-cluster-kubeconfig).
+ replicated cluster shell CLUSTER_ID
+ ```
+ Where `CLUSTER_ID` is the unique ID for the running cluster that you want to access.
+
+ For command usage, see [cluster shell](/reference/replicated-cli-cluster-shell).
1. Verify that you can interact with the cluster through kubectl by running a command. For example:
@@ -219,6 +222,8 @@ To access a cluster from the command line:
kubectl get ns
```
+1. Press Ctrl-D or type `exit` when done to end the shell and the connection to the server.
+
### Upgrade Clusters (kURL Only)
For kURL clusters provisioned with Compatibility Matrix, you can use the the `cluster upgrade` command to upgrade the version of the kURL installer specification used to provision the cluster. A recommended use case for the `cluster upgrade` command is for testing your application's compatibility with Kubernetes API resource version migrations after upgrade.
diff --git a/sidebars.js b/sidebars.js
index f839976cdb..6d837d7818 100644
--- a/sidebars.js
+++ b/sidebars.js
@@ -661,6 +661,7 @@ const sidebars = {
'reference/replicated-cli-cluster-port-ls',
'reference/replicated-cli-cluster-port-rm',
'reference/replicated-cli-cluster-rm',
+ 'reference/replicated-cli-cluster-shell',
'reference/replicated-cli-cluster-update-ttl',
'reference/replicated-cli-cluster-upgrade',
'reference/replicated-cli-cluster-versions',