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. This value is ignored when installing Debian or RPM packages. -
VERSION
- The version to install. Defaults to the latest stable version.
macOS
sh -c "curl -fsSL https://raw.githubusercontent.com/FusionAuth/fusionauth-install/master/install.sh | sh"
sh -c "curl -fsSL https://raw.githubusercontent.com/FusionAuth/fusionauth-install/master/install.sh | sh -s - -s"
Linux
sh -c "curl -fsSL https://raw.githubusercontent.com/FusionAuth/fusionauth-install/master/install.sh | sh -s - -z"
sh -c "curl -fsSL https://raw.githubusercontent.com/FusionAuth/fusionauth-install/master/install.sh | sh -s - -z -s"
sh -c "curl -fsSL https://raw.githubusercontent.com/FusionAuth/fusionauth-install/master/install.sh | sh"
sh -c "curl -fsSL https://raw.githubusercontent.com/FusionAuth/fusionauth-install/master/install.sh | sh -s - -s"
Windows
. { iwr -useb https://raw.githubusercontent.com/FusionAuth/fusionauth-install/master/install.ps1 } | iex; install
. { 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
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 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 Services
<FUSIONAUTH_HOME>/fusionauth/bin/startup.sh
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.
First, terminate the running FusionAuth and Elasticsearch processes.
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.
# Startup Services
<FUSIONAUTH_HOME>\bin\startup.bat
Linux
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.
<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 this command from /usr/local
). Reference the commands defined in the install steps above to determine which install/upgrade command is appropriate for your environment.
<FUSIONAUTH_HOME>/fusionauth/bin/startup.sh
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.
Then, run the appropriate FastPath install/upgrade command anywhere in your filesystem. Reference the commands defined in the install steps above to determine which install/upgrade command is appropriate for your environment.
sudo service fusionauth-search start
sudo service fusionauth-app start