First of all, you need to have kubectl CLI in your host machine. So, follow the below steps.
Install with Chocolatey on Windows
choco install kubernetes-cli
Install with Homebrew on MacOS
brew install kubernetes-cli
Install with Kubernetes Official Documentation(with Curl)
Follow this link https://kubernetes.io/docs/tasks/tools/install-kubectl/#install-kubectl-on-macos
Test to ensure the version you installed
kubectl version
Checking kubectl config
When you run below command, you will see output as shown in the following screenshot. I didn't configure yet so, it shows an empty config.
kubectl config view
![](https://kenanhancer.com/wp-content/uploads/2018/09/Screen-Shot-2019-04-01-at-01.04.58.png)