Getting Started with DevOps:

Windows Setup using Chocolatey

If you're starting your DevOps journey on Windows, setting up your local environment can feel overwhelming. Thankfully, Chocolatey makes it incredibly easy to install and manage essential tools using a simple command line.

In this post, I’ll walk you through how I used Chocolatey to quickly set up:

βœ… Git
βœ… AWS CLI
βœ… Vagrant
βœ… VirtualBox
βœ… Docker Desktop
βœ… Visual Studio Code
βœ… IntelliJ IDEA
βœ… Notepad++

πŸš€ What is Chocolatey?

Chocolatey is a package manager for Windows β€” like apt for Ubuntu or brew for macOS. It lets you install software with simple commands in PowerShell or CMD.

πŸ› οΈ Step 1: Install Chocolatey

First, open PowerShell as Administrator and run the following command:

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))

πŸ”’ This script downloads and installs Chocolatey securely.

To confirm it's installed:

choco --version

πŸ“¦ Step 2: Install Essential DevOps Tools

Here are the tools I installed with Chocolatey:

πŸ§‘β€πŸ’» Git

choco install git -y

🌩 AWS CLI

choco install awscli -y

πŸ–₯ VirtualBox

choco install vagrant -y

🐳 Docker Desktop

choco install docker-desktop -y

🧠 Developer Editors and IDEs

πŸ“ Visual Studio Code

choco install vscode -y

πŸ’‘ IntelliJ IDEA Community Edition

choco install intellijidea-community -y

✏️ Notepad++

choco install notepadplusplus -y

βœ… Optional: Handy Utilities

πŸ“ 7zip

choco install 7zip -y

πŸ“Œ Pro Tips

  • Add --force to reinstall any tool.

  • Use choco upgrade all -y to upgrade everything in one go.

  • Always run as Administrator when using Chocolatey.


🎯 Wrapping Up

In just a few minutes, you can go from a clean Windows install to a fully set-up DevOps development environment using Chocolatey. Fast, repeatable, and much less clicking.


πŸ§ͺ What’s Next?

In the next post, I’ll show how I set up:

  • GitHub

  • AWS

  • DockerHub

  • SonarCloud

  • Plus how to organize your credentials and SSH keys

πŸ’¬ Have any favorite tools you use in your setup? Drop them in the comments!


0
Subscribe to my newsletter

Read articles from Shaharyar Shakir directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Shaharyar Shakir
Shaharyar Shakir