Step-by-Step Installation
Step-by-Step Installation¶
The recommended (but not only) way to run Meraki-CLI on Windows is to run it on Windows Subsystem for Linux (WSL). This is because Meraki-CLI's tab-autocompletion feature is only supported on MacOS and Linux platforms. Running it inside Windows 10 WSL gives you this full tab-autocompletion functionality.
NOTE: Running WSL version 2 (which is now the default) requires virtualization features to be enabled in your PC's BIOS settings. The settings may be called VT-x, AMD-V, or SVM.
WSL is very quick and easy to install on your Windows 10/11 OS and should take about 10 minutes. Follow the below steps to install WSL, install Meraki-CLI, and set up tab-autocompletion.
- Click on the Start button and search for "features", click on the "Turn Windows features on and off" application
- Check the boxes for "Virtual Machine Platform" and "Windows Subsystem for Linux", click OK and reboot Windows once the installation completes
- Once logged back in, click on the Start button and search for "store", open the "Microsoft Store" application
- Search for "ubuntu" inside the store and click on the "Ubuntu 20.04" app (or the latest version available), then click the Get button to install it
- Once installation finishes, click the Open button to open WSL. It will ask you for a user name and password. Go through these prompts to set up WSL
- After setting it up, you will have a command prompt with something like
user@MYWIN10PC:~$. Now we will perform a Linux Meraki-CLI installation - Run
sudo apt updateto pull the latest repository info- Provide your WSL password when prompted
- Run
sudo apt install python3-pipto install the PIP Python package manager - Run
sudo apt install pipxto install the PIPX virtual environment package installer - Run
pipx ensurepathto add the PIPX app directory to your PATH - Run
pipx install meraki-clito install the Meraki-CLI tool - Exit the WSL window with
exit - Reopen the WSL command window by finding the "Ubuntu" app in your start menu
- Run the
merakicommand and make sure you see the help output - Type
merakiat the prompt and then hit the TAB key a few times - You now should see all the arguments/switches/commands available to you
Meraki-CLI can be installed natively on MacOS and be used through the Terminal application. Follow the below steps to install Meraki-CLI on MacOS.
- Open your Terminal application by navigating in Finder to Applications > Utilities > Terminal
- Meraki-CLI uses Python3 and (on modern MacOS versions) requires a virtual Python environment to install dependencies. In order to install a Python virtual environment, we first need to install the Homebrew MacOS package manager. You can see details about homebrew at brew.sh
- Install Homebrew with the below command. It may take a while to install.
- Once Homebew is installed, you should be able to run the command
brewfrom your terminal and see a list of command options
- Now that Homebrew is installed, we will use it to install PIPX
- You should be able to run the command
pipxand see a list of options
- You should be able to run the command
- Have pipx make sure it has added its binary locations to your PATH
- Install the argcomplete package which assists with Meraki-CLI command completion
- Install the Meraki-CLI package
- Run the
merakicommand and make sure you see the help output - Type
merakiat the prompt and then hit the TAB key a few times - You now should see all the arguments/switches/commands available to you
The recommended way to run Meraki-CLI on Windows is to use the Windows Subsystem for Linux (WSL) because it supports tab-autocompletion. But you can also install Meraki-CLI natively on Windows. Follow the below steps to install natively on Windows.
- In order to use Meraki-CLI on native Windows, you need to have Python 3 installed. If you do not yet have Python 3 installed, visit this Python 3 Installation Instructions Page and install for your operating system.
- Once Python3 is installed, click on the Start button and search for "command", click on the "Command Prompt" application
- Run
pip3 install meraki-clito install the Meraki-CLI tool - Run the
merakicommand and make sure you see the help output
The instructions here describe installation of Meraki-CLI on an Ubuntu 20 OS. Other distros may require slightly different commands.
- Run
sudo apt updateto pull the latest repository info - Provide your password when prompted
- Run
sudo apt install python3-pipto install the PIP Python package manager - Run
sudo apt install pipxto install the PIPX virtual environment package installer - Run
pipx ensurepathto add the PIPX app directory to your PATH - Run
pipx install meraki-clito install the Meraki-CLI tool - Run
sudo activate-global-python-argcompleteto activate the tab autocompletion feature - Log out and back into the OS to restart BASH and enable tab-autocompletion
- Run the
merakicommand and make sure you see the help output - Type
merakiat the prompt and then hit the TAB key a few times - You now should see all the arguments/switches/commands available to you
Once fully installed, follow the instructions in Getting Your API Key section to obtain and plug-in your Meraki Dashboard API key.