Skip to main content

Install LocalOps CLI

There are two ways to install LocalOps CLI on a Windows machine

Downloading Binaries

Download the Windows binary and run it directly. Pick the build that matches your processor architecture: Both links always point to the latest release. You can also browse all versions and download an older build from the releases page.
Not sure which one you need? Run echo $env:PROCESSOR_ARCHITECTURE in PowerShell. AMD64 means you need the amd64 build, ARM64 means you need the arm64 build.

Extract the binary

Open PowerShell in the folder where the file was downloaded (usually Downloads) and extract the archive. Replace amd64 with arm64 in the commands below if you downloaded the ARM build.
This extracts ops.exe into C:\Users\<you>\localops.
If you prefer a GUI, right-click the downloaded .zip file in File Explorer, choose Extract All…, and pick a folder you can find easily.

Run the binary

You can now run the CLI using its full path:
To run ops from any directory without typing the full path, add the folder to your user PATH:
Close and reopen your terminal for the PATH change to take effect.

Verify installation

Verify that the CLI is installed correctly by running:
This command should display the CLI version, confirming that the installation was successful 🚀

Update the CLI

To update, download the latest zip and extract it over the same folder:
The -Force flag overwrites the existing ops.exe.

Using WSL

If you would rather work inside a Linux environment, or the native binary does not suit your setup, you can install the CLI through WSL instead. WSL is a feature developed by Microsoft that allows you to run a Linux distribution on your Windows machine. This feature is supported on Windows 10 and above. For older versions of Windows, you may have to install it manually.

Install WSL

You can choose your choice of Linux distro, in this example, we will be using Ubuntu. Open PowerShell or Windows Command Prompt in administrator mode by right-clicking and selecting “Run as administrator”, enter the following command
You’ll need to restart your machine after the installation
Check out Official WSL docs for more info. After the reboot, run the command from your PowerShell
Once you have installed WSL, you will need to create a user account and password for your newly installed Linux distribution.
This user is not the same as your Windows user.

Install CLI

Once you have everything up and running, you can install LocalOps CLI by following the instructions from the Install Linux page. Since we are running a linux distribution on a windows machine, steps are the same.

Source Code

Our binaries and installation scripts are hosted in our public GitHub repository: LocalOps CLI GitHub Repo.