LogoLogo
Bonsai (0.13) DocsGitHubDiscord CommunityGarden Enterprise
Acorn (0.12)
Acorn (0.12)
  • Welcome!
  • 🌳Basics
    • How Garden Works
    • Quickstart Guide
    • The Stack Graph (Terminology)
  • 🌻Tutorials
    • Your First Project
      • 1. Initialize a Project
      • 2. Connect to a Cluster
      • 3. Deploy and Test
      • 4. Configure Your Project
  • 💐Using Garden
    • Configuration Overview
    • Projects
    • Modules
    • Services
    • Tests
    • Tasks
    • Workflows
    • Variables and templating
    • Module Templates
    • Using the CLI
  • 🌿Kubernetes Plugins
    • About
    • Remote K8s Plugin Configuration
      • 1. Create a Cluster
        • AWS
        • GCP
        • Azure
      • 2. Configure Container Registry (Optional)
        • AWS
        • GCP
        • Azure
      • 3. Set Up Ingress, TLS and DNS
      • 4. Configure the Provider
    • Local K8s Plugin Configuration
      • 1. Install Local Kubernetes
      • 2. Configure the Provider
    • Module Configuration
      • Container
      • Kubernetes
      • Helm
      • PersistentVolumeClaim
      • ConfigMap
    • Advanced
      • In-Cluster Building
      • Minimal RBAC Configuration for Development Clusters
      • Deploying to Production
  • 🌺Terraform Plugin
    • About
    • Provider Configuration
    • Module Configuration
  • ☘️Pulumi Plugin
    • About
    • Provider Configuration
    • Module Configuration
  • 🌹Other Plugins
    • Container
    • Exec (local scripts)
  • 🌼Guides
    • Installing Garden
    • Adopting Garden
    • Code Synchronization (Dev Mode)
    • Connecting a local service to a K8s cluster (Local Mode)
    • Environments and namespaces
    • Hot Reload
    • Migrating from Docker Compose to Garden
    • Using Garden in CI
  • 🌷Advanced
    • cert-manager Integration
    • Using Remote Sources
    • Custom Commands
  • 🪷Reference
    • Providers
      • conftest-container
      • conftest-kubernetes
      • conftest
      • container
      • exec
      • hadolint
      • jib
      • kubernetes
      • local-kubernetes
      • maven-container
      • octant
      • openfaas
      • pulumi
      • terraform
    • Module Types
      • configmap
      • conftest
      • container
      • exec
      • hadolint
      • helm
      • jib-container
      • kubernetes
      • maven-container
      • openfaas
      • persistentvolumeclaim
      • pulumi
      • templated
      • terraform
    • Template Strings
      • Project configuration context
      • Environment configuration context
      • Provider configuration context
      • Module configuration context
      • Remote Source configuration context
      • Project Output configuration context
      • Custom Command configuration context
      • Workflow configuration context
      • Template Helper Functions
    • Glossary
    • Commands
    • Project Configuration
    • Module Template Configuration
    • Workflow Configuration
  • 🎋Misc
    • FAQ
    • Troubleshooting
    • Telemetry
Powered by GitBook
On this page
  • Requirements
  • macOS
  • Step 1: Install Homebrew
  • Step 2: Install Garden (macOS)
  • Step 3 (optional): Docker and local Kubernetes
  • Windows
  • Linux
  • Step 1: Install core dependencies
  • Step 2: Install Garden
  • Step 3 (optional): Local Kubernetes
  • Using Garden with proxies

Was this helpful?

  1. Guides

Installing Garden

PreviousExec (local scripts)NextAdopting Garden

Last updated 1 year ago

Was this helpful?

This page details the different installation methods for Garden.

Please follow the guide for your operating system:

If you'd like to run Kubernetes locally, please see our for installation and usage information.

If you want to install Garden from source, see the instructions in our .

Requirements

You need the following dependencies on your local machine to use Garden:

  • Git (v2.14 or newer)

  • rsync (v3.1.0 or newer)

And if you'd like to build and run services locally, you need . Garden is committed to supporting .

macOS

For Mac, we recommend the following steps to install Garden. You can also follow the manual installation steps below if you prefer.

For a Mac computer with Apple silicon, Garden needs .

Step 1: Install Homebrew

Step 2: Install Garden (macOS)

Homebrew

brew tap garden-io/garden
brew install garden-cli

To later upgrade to the newest version, simply run brew update and then brew upgrade garden-cli.

Installation script (macOS)

curl -sL https://get.garden.io/install.sh | bash

To later upgrade to the latest version, simply run the script again.

Manual download and install (macOS)

If you prefer, you can perform the installation manually, as follows:

  1. Next create a ~/.garden/bin directory, and extract the archive to that directory. Make sure to include the whole contents of the archive.

  2. Lastly, either add the ~/.garden/bin directory to your PATH, or add a symlink from your /usr/local/bin/garden to the binary at ~/.garden/bin/garden.

Step 3 (optional): Docker and local Kubernetes

To install Docker, Kubernetes and kubectl, we recommend Docker for Mac.

Windows

You can run Garden on Windows 10 Home, Pro or Enterprise editions.

To install the Garden CLI and its dependencies, please use our installation script. To run the script, open PowerShell as an administrator and run:

Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/garden-io/garden/main/support/install.ps1'))

The things the script will check for are the following:

  • git and rsync . The script will install or upgrade those via Chocolatey.

To later upgrade to the newest version, simply re-run the above script.

We also recommend adding an exclusion folder for the .garden directory in your repository root to Windows Defender:

Add-MpPreference -ExclusionPath "C:\Path\To\Your\Repo\.garden"

This will significantly speed up the first Garden build of large projects on Windows machines.

Note that you must run Powershell with elevated permissions when you execute this command.

Linux

Step 1: Install core dependencies

Use your preferred method or package manager to install git and rsync. On Ubuntu, that's sudo apt install git rsync, on Alpine apk add --no-cache git rsync

The Alpine linux distribution also requires gcc to be installed: apk add --no-cache gcc.

Step 2: Install Garden

Installation script (Linux)

You can use our installation script to install Garden automatically:

curl -sL https://get.garden.io/install.sh | bash

To later upgrade to the latest version, simply run the script again.

Manual download and install (Linux)

If you prefer, you can perform the installation manually, as follows:

  1. Next create a ~/.garden/bin directory, and extract the archive to that directory. Make sure to include the whole contents of the archive.

  2. Lastly, either add the ~/.garden/bin directory to your PATH, or add a symlink from your /usr/local/bin/garden to the binary at ~/.garden/bin/garden.

Step 3 (optional): Local Kubernetes

Using Garden with proxies

If you're running Garden behind a firewall, you may need to use a proxy to route external requests. To do this, you need to set the HTTP_PROXY, HTTPS_PROXY and NO_PROXY environment variables. For example:

export HTTP_PROXY=http://localhost:9999               # <- Replace with your proxy address.
export HTTPS_PROXY=$HTTP_PROXY                        # <- Replace if you use a separate proxy for HTTPS.
export NO_PROXY=local.demo.garden,localhost,127.0.0.1  # <- This is important! See below.

The NO_PROXY variable should include any other hostnames you might use for local development, since you likely don't want to route local traffic through the proxy.

If you haven't already set up Homebrew, please follow .

You can easily install Garden using or using our installation script. You may also manually download Garden from the on GitHub.

First make sure the listed above are installed. Then run our automated installation script:

Make sure the listed above are installed.

Visit the Garden on GitHub and download the macOS archive (under Assets).

Please refer to their for how to download and install it (which is a pretty simple process).

If you'd like to use a local Kubernetes cluster, please refer to the for further information. For remote clusters, take a look at the .

Note: The Home edition doesn't support virtualization, but you can still use Garden if you're working with and .

The package manager. The script installs it automatically if necessary.

Visit the Garden on GitHub and download the linux archive (under Assets).

If you'd like to use a local Kubernetes cluster, please refer to the for installation and usage information.

🌼
their installation instructions
Homebrew
releases page
releases page
installation guide
Local Kubernetes guide
Remote Kubernetes guide
remote Kubernetes
in-cluster building
Chocolatey
releases page
local Kubernetes guide
local Kubernetes guide
contributor guide
a local installation of Kubernetes
the latest six stable versions (i.e. if the latest stable version is v1.23.x, Garden supports v1.18.x and newer)
Rosetta
macOS
Windows
Linux
requirements
requirements