This post is to explain what is Chocolatey, how can we install it and how can we use it
Chocolatey:
Chocolatey is a module for windows to install packages (tools) on to the machine. Also known as a software management tool.
It allows us to perform various tasks via command line.
For example, "choco install tool" is the equivalent to "apt install tool" on Ubuntu.
So to install it you need to copy paste this command line to your terminal:
config.vm.provision "shell", inline: <<-SHELL
Set-ExecutionPolicy Bypass -Scope Process -orce; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
SHELL
This command will install chocolatey and allow you to use "choco install" to install other tools into your windows machine such as Git or VSCode.
Example:
You want to install some tools that you need and to do so you'll use Chocolatey!
So, in your terminal type any of the following commands:
choco install git -y
choco install vscode -y
choco install hugo -y
These commands will install the respective tools, but you can install the tools that you need. The only thing that you need to is choco install "tool that you want" :) Note, that the -y is to answer Yes to the questions asked by the installation process;