Download and Install

Install

These commands will download and unpack the latest version of FusionAuth.

By default, FusionAuth installs leverage the database as the User search engine. You may optionally also install and configure Elasticsearch to leverage advanced search functionality.

Optionally, provide the following environment variables to the install script to augment behavior:

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

macOS Fast Path

Copy and paste the code below into Terminal/iTerm and we'll do the rest (feel free to read the install scripts first). This installation method installs the FusionAuth ZIP packages into the current working directory. You'll also need to manually install a database for FusionAuth to work. You can learn more about our Fast Path installation in our Fast Path Installation Guide. Feel free to open an issue in GitHub if you find any issues.

Step 1: Download and install the ZIP files

  curl -fsSL https://raw.githubusercontent.com/FusionAuth/fusionauth-install/master/install.sh | bash -s && \
cd fusionauth

Step 2: Start FusionAuth

  bin/startup.sh

Then open http://localhost:9011 in your browser.

Configure

These configuration steps are common to almost all FusionAuth installations. Take these steps to avoid being inadvertently locked out of your FusionAuth server.

Configure An Email Server

Email is used for many purposes in FusionAuth, including to verify user email addresses and for passwordless authentication. However, one of the most important functions is to allow for forgotten passwords.

Full instructions on how to configure your email server settings.

If you lose your password, you can reset it using the Forgot Password link on the login screen.

Add a Second Admin User

Create a second user with the admin role. This user can provide access should your initially created admin user lose access for any reason.

  • Log in to the administrative user interface.
  • Navigate to Users .
  • Add a user with a known, valid email address and secure password within your organization.
  • Register that user with the FusionAuth application and the admin role.

Activate License Key

Activating the license key will allow access to all of the paid features inside FusionAuth. The key is found in your account portal and is activated in the Reactor tab.

Production keys must be used for any FusionAuth instance that customers will be logging into, that is how we track MAUs.

Non-production keys may be used for any other instances such as your developers’ laptops, QA, or UAT.

  • Log in to the administrative user interface.
  • Navigate to Plan and copy the appropriate key.
  • Access the FusionAuth instance and navigate to the Reactor .
  • Paste that key into the License Key field and Activate it.

Full instructions on how to activate your license.

Set Up an API Key

Create an API key you can use to manage FusionAuth in an emergency. If you lose access to the administrative user interface, you can use this API key to retain access to your FusionAuth instance by adding a new admin user.

  • Log in to the administrative user interface.
  • Navigate to Settings -> API Keys .
  • Add an API Key with no limitations. This will make it a super user key with no limitations.
  • Note the key value, and store it someplace safe.

Modify the Tenant Issuer

The Issuer , found by navigating to Tenants -> Your Tenant -> General defaults to acme.com. This is not usually what you want.

This value is used by any JWTs created by the OAuth grants or the Login API.

While the exact value you change this to varies based on how you are using FusionAuth, a typical value is the URL of the FusionAuth instance, such as https://auth.example.com.

Summary

If you take care of these steps when you first install FusionAuth, you’ll have multiple ways to access your instance should the user you created on installation be removed or lose access, and you’ll be well on your way towards using FusionAuth for your authentication needs.