Docs Update: CLI support
@@ -43,8 +43,21 @@ This function is under preview , so you need add `flight=cmAksAttachedCompute` t
After attach a CMAKS compute you can [Submit AML training jobs to CMAKS compute](https://github.com/Azure/CMK8s-Samples/blob/master/docs/3.%20Submit%20AML%20training%20jobs%20to%20CMASK%20compute.markdown)
+## Attach/Detach compute from CLI
+### Install azure-cli-extension private branch
+- Firstly, use ```az extension remove -n azure-cli-ml ``` command to remove the previous extension.
+- Secondly, use the following command to install extension
+```
+az extension add --source https://azuremlsdktestpypi.blob.core.windows.net/wheels/AzureML-ITP-CLI/22401180/azure_cli_ml_private_preview-0.1.0.22401180-py3-none-any.whl --pip-extra-index-urls https://azuremlsdktestpypi.azureedge.net/AzureML-ITP-CLI/22401180 --yes --debug
+```
+### Attach CMAKS compute via CLI
+Parameters are not same as [az ml computetarget attach](https://docs.microsoft.com/en-us/cli/azure/ext/azure-cli-ml/ml/computetarget/attach?view=azure-cli-latest#ext-azure-cli-ml-az-ml-computetarget-attach-aks), we also need to specify the cluster nood pool name.
+```
+az ml computetarget attach akscompute --compute-target-name mycmaks --aks-cluster-name myakscluster --aks-resource-group myresourcegroup --node-pool-name agentpool --workspace-name myworkspace --workspace-resource-group myresourcegroup --subscription-id mysubscriptionid -v
+```
-
-
-
+### Detach CMAKS compute via CLI
+```
+az ml computetarget detach akscompute --name mycmaks --workspace-name myworkspace --resource-group myresourcegroup --subscription-id mysubscriptionid -v
+```
\ No newline at end of file
