Skip to content

dgraph-io/Install-Dgraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dgraph Install Scripts

This repository is home to the installation scripts that you find at https://get.dgraph.io and others.

Works for:

  • ✅ Ubuntu 16.04 and above
  • ❌ macOS Sierra and above
  • ❌ Windows 10 and above
  • ❌ Windows Server 2016 above

Install Dgraph on Linux and macOS

macOS is no longer supported (for now), you can only install old versions.

Using Shell

From https://get.dgraph.io

Download latest:

curl https://get.dgraph.io -sSf | bash

Download latest and install as Systemd services (just Linux):

curl https://get.dgraph.io -sSf | bash -s -- --systemd

With Environment Variables:

curl https://get.dgraph.io -sSf | VERSION=v20.03.1-beta1 bash

Flags

Add -s -- before the flags.

-y | --accept-license: Automatically agree to the terms of the Dgraph Community License (default: “n”).

-d | --download: Download Dgraph's binary to the current path only. No globally installation. (default: “n”).

-s | --systemd: Automatically create Dgraph’s installation as Systemd services (default: “n”).

-v | --version: Choose Dgraph’s version manually (default: The latest stable release, you can do tag combinations e.g v22.0.0-RC1-20221003 or -rc2).

Environment Variables

ACCEPT_LICENSE: Automatically agree to the terms of the Dgraph Community License (default: “n”).

JUST_DOWNLOAD: Download Dgraph's binary to the current path only. No globally installation. (default: “n”).

INSTALL_IN_SYSTEMD: Automatically create Dgraph’s installation as Systemd services (default: “n”).

VERSION: Choose Dgraph’s version manually (default: The latest stable release).

Install Dgraph on Windows

No longer supported (for now).

Using Powershell

This script needs to be executed with ExecutionPolicy set as RemoteSigned" please run (as Administrator):"

Set-ExecutionPolicy -ExecutionPolicy "RemoteSigned"

After run the script you can set it to -ExecutionPolicy "Undefined"

From https://get.dgraph.io/windows

Download latest:

iwr https://get.dgraph.io/windows -useb | iex

With Environment Variables:

$Version="v22.00.1"; $acceptLicense="yes"; iwr http://get.dgraph.io/windows -useb | iex

Download the script and run locally

iwr http://get.dgraph.io/windows -useb -outf install.ps1; .\install.ps1

Run locally with flags

iwr http://get.dgraph.io/windows -useb -outf install.ps1; .\install.ps1 -version v22.00.1 -acceptLicense yes

Flags

-acceptLicense: Automatically agree to the terms of the Dgraph Community License (default: ask).

-version: Choose Dgraph’s version manually (default: The latest stable release, you can do tag combinations e.g v20.03.1-beta1 or -rc1).

Environment Variables

$Version="v20.03.1": Choose Dgraph’s version manually (default: The latest stable release).

$acceptLicense="yes": Choose Dgraph’s version manually (default: The latest stable release, you can do tag combinations e.g v22.0.0-RC1-20221003 or -rc2).

Compatibility

This Scrip works on Windows 10, some Windows containers and Windows Server 2016 only.