Fast Path Install & Upgrade

1. Fast Path Install

Want to get up and running super fast on your dev box or server? Use our awesome download scripts and you’ll be coding in no time. These commands will download and unpack the latest version of FusionAuth.

1.1. macOS

Install in your current working directory using ZIP packages
sh -c "curl -fsSL https://raw.githubusercontent.com/FusionAuth/fusionauth-install/master/install.sh | sh"

1.2. Linux

Install in your current working directory using ZIP packages
sh -c "curl -fsSL https://raw.githubusercontent.com/FusionAuth/fusionauth-install/master/install.sh | sh -s - -z"
Install for all users on the system using DEB or RPM packages
sh -c "curl -fsSL https://raw.githubusercontent.com/FusionAuth/fusionauth-install/master/install.sh | sh"

1.3. Windows

Install in your current working directory using ZIP packages
iex (new-object net.webclient).downloadstring('https://raw.githubusercontent.com/FusionAuth/fusionauth-install/master/install.ps1')

2. Fast Path Upgrade

The Fast Path commands can also be used to upgrade to the latest version of FusionAuth. Follow the steps documented below.

2.1. macOS

In this example, we’ll assume you have previously installed FusionAuth in /usr/local/fusionauth and this directory will be referred to FUSIONAUTH_HOME. If you have used a different directory you can adjust the following example accordingly.

Shutdown FusionAuth
# Stop Services
<FUSIONAUTH_HOME>/bin/shutdown.sh

Run the FastPath install/upgrade command from the parent directory of FUSIONAUTH_HOME (if FUSIONAUTH_HOME is /usr/local/fusionauth, run this command from /usr/local).

Upgrade FusionAuth
sh -c "curl -fsSL https://raw.githubusercontent.com/FusionAuth/fusionauth-install/master/install.sh | sh"
Start FusionAuth
# Start Services
<FUSIONAUTH_HOME>/fusionauth/bin/startup.sh

2.2. Windows

In this example, we’ll assume you have previously installed FusionAuth in \fusionauth and this directory will be referred to FUSIONAUTH_HOME. If you have used a different directory you can adjust the following example accordingly.

Shutdown FusionAuth
# Stop Services
net stop FusionAuthApp
net stop FusionAuthSearch

Run the FastPath install/upgrade command from the parent directory of FUSIONAUTH_HOME (if FUSIONAUTH_HOME is \fusionauth, run this command from \).

Upgrade FusionAuth
iex (new-object net.webclient).downloadstring('https://raw.githubusercontent.com/FusionAuth/fusionauth-install/master/install.ps1')
Start FusionAuth
# Startup Services
<FUSIONAUTH_HOME>\bin\startup.bat

2.3. Linux

2.3.1. Zip

In this example, we’ll assume you have previously installed FusionAuth in /usr/local/fusionauth and this directory will be referred to FUSIONAUTH_HOME. If you have used a different directory you can adjust the following example accordingly.

Stop FusionAuth
<FUSIONAUTH_HOME>/bin/shutdown.sh

Run the FastPath install/upgrade command from the parent directory of FUSIONAUTH_HOME (if FUSIONAUTH_HOME is /usr/local/fusionauth, run this command from /usr/local).

Upgrade FusionAuth
sh -c "curl -fsSL https://raw.githubusercontent.com/FusionAuth/fusionauth-install/master/install.sh | sh -s - -z"
Start FusionAuth
<FUSIONAUTH_HOME>/fusionauth/bin/startup.sh

2.3.2. RPM or DEB

Running the update script will shut down the FusionAuth service if they have not yet been stopped The service will need to be restarted after the update is finished.

Run the FastPath install/upgrade command anywhere in your filesystem.

Upgrade FusionAuth
sh -c "curl -fsSL https://raw.githubusercontent.com/FusionAuth/fusionauth-install/master/install.sh | sh"
Start FusionAuth
sudo service fusionauth-search start
sudo service fusionauth-app start