Fast Path Install & Upgrade

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.

By default, FusionAuth installs leveraging the database as the User search engine. You may optionally also install and configure Elasticsearch to leverage advanced search functionality. Commands for both configurations are provided below.

Environment Variables

The following environment variables may be provided to the install script to augment behavior.

  • TARGET_DIR - The location to install the zip. Defaults value is $PWD/fusionauth.
  • VERSION - The version to install. Defaults to the latest stable version.

macOS and Linux

Please feel free to read these install scripts before running them. Always a good idea.

Install in your current working directory

sh -c "curl -fsSL https://raw.githubusercontent.com/FusionAuth/fusionauth-install/master/install.sh | sh"

Install in your current working directory and include Elasticsearch

sh -c "curl -fsSL https://raw.githubusercontent.com/FusionAuth/fusionauth-install/master/install.sh | sh -s - -s"

Windows

Please note, that versions equal to 1.37.0 and less than 1.40.0 did not have a native Windows install option. It is recommended to plan to install version 1.40.0 or later.

Please feel free to read these install scripts before running them. Always a good idea.

Install in your current working directory. Install using Windows PowerShell

. { iwr -useb https://raw.githubusercontent.com/FusionAuth/fusionauth-install/master/install.ps1 } | iex; install

Install in your current working directory and include Elasticsearch. Install using Windows PowerShell

. { iwr -useb https://raw.githubusercontent.com/FusionAuth/fusionauth-install/master/install.ps1 } | iex; install -includeSearch 1

Fast Path Upgrade

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

macOS and Linux

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

Then, run the appropriate FastPath install/upgrade command from the parent directory of FUSIONAUTH_HOME (if FUSIONAUTH_HOME is /usr/local/fusionauth, run the command from /usr/local). Reference the commands defined in the install steps above to determine which install/upgrade command is appropriate for your environment.

Start FusionAuth

# Start Services
<FUSIONAUTH_HOME>/fusionauth/bin/startup.sh

Windows

Please note, that versions equal to 1.37.0 and less than 1.40.0 did not have a native Windows install option. It is recommended to plan to install version 1.40.0 or later.

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.

First, terminate the running FusionAuth App and Elasticsearch services. Prior to version 1.40.0 if you are not using Windows services, you will need to manually end the FusionAuth processes process by closing the interactive command shell window. Beginning in version 1.40.0, please utilize the following shutdown command.

Shutdown FusionAuth services

# Stop Services
<FUSIONAUTH_HOME>\bin\shutdown.ps1

Then, run the appropriate FastPath install/upgrade command from the parent directory of FUSIONAUTH_HOME (if FUSIONAUTH_HOME is \fusionauth, run this command from \). Reference the commands defined in the install steps above to determine which install/upgrade command is appropriate for your environment.

Prior to version 1.37.0, the startup command will be named startup.bat instead of startup.ps1.

Start FusionAuth

# Startup Services
<FUSIONAUTH_HOME>\bin\startup.ps1