There are multiple ways of installing Fluree e.g. JVM, Docker, Homebrew. If you choose the JVM installation route you need Java 11 or above. To verify your version of Java, you can type
java -version in the terminal.
After checking your Java version, you will then need to download a version of Fluree:
Use one of these links:
Or you can download the latest Fluree of a particular version (starting with version 13 and up) using the following formula -
https://fluree-releases-public.s3.amazonaws.com/fluree-[MAJOR VERSION].[MINOR VERSION]-latest.zip.
The contents of the downloaded folder are as follows (might be slightly different based on your version):
fluree-[version]/├── logback.xml├── fluree_start.sh├── fluree_server.jar├── fluree_sample.properties├── VERSION├── LICENSE└── CHANGELOG.md
fluree_sample.properties- File that specifies the customizable Fluree properties.
fluree_start.sh- Shell script to launch Fluree.
fluree_server.jar- Fluree packaged into a JAR file.
To run Fluree with all the default options, navigate to the directory where you downloaded Fluree in the terminal then launch Fluree with the following command:
For Windows systems, you may need to download a Bash emulator, like Git For Windows to properly run Fluree. In your Bash emulator, you would still run
./fluree_start.shto start Fluree.
When Fluree is done starting up, your terminal will log:
INFO fluree.db.peer.http-api - Starting web server on port: [PORT NUMBER]
If the above message is not displaying in your terminal, the terminal should print out a relevant error message. Common errors include your chosen port already being in use and not having Java 11 or above installed.
🎉 Congrats! You're up and running! 🥳
After you launch Fluree for the first time, you will not have any ledgers. You will need to create a ledger to begin.
There is a built-in user interface which we call it the AdminUI. You can access the AdminUI by navigating to
localhost:[port], once you have an instance of Fluree running on your machine. If you did not change the port or IP address, it will be on
You can see all the code for the AdminUI in our AdminUI repo on Github.
To exit Fluree, simply type
ctrl + c to quit the current process on your terminal. This will not delete any of the information that was successfully added to your ledgers (if you received a 200 response from your transactions, that means it was added to your ledger). This section will assume you are running Fluree with the default configurations. If you would like to see the other options available to launch Fluree, please visit the Config Options reference.
To restart Fluree, navigate to the folder that contains your Fluree instance and run
After Fluree successfully starts for the first time, there will be additional items in your Fluree instance folder. Your folder will look something like the below:
fluree-[version]/├── data/│ ├── group│ ├── ledger├── fluree_sample.properties├── VERSION├── fluree_start.sh├── fluree-ledger.standalone.jar├── default_private_key.txt├── CHANGELOG.md└── LICENSE
There are few things which Fluree will write to the file system when a fresh ledger is started. The data/ directory contains all of the raft state as well as the block files for each ledger in the fluree instance and a new file called default_private_key.txt which contains the unique private key used for the root account in your ledgers.
data directory contains 2 directories; group/ and ledger/.
Group/ contains all fo the raft files as well as a directory of raft snapshots. Ledger/ contains all of your ledger indexes. These are organized within sub-directories which are named according to the names you gave your ledgers in Fluree. This data directory can be moved or copied to a different Fluree instance directory and run from the directory if you choose. This is a good option if you want to use a newer Fluree version, but keep all of your previous ledgers.
This file contains the default private key for your ledgers. A new (and unique) private key is generated every time you start up a new network, unless you already have a valid private key in
Fluree publishes a Docker image to Docker Hub. We publish the following tags:
latest - the latest release
1.0 - the latest 1.0.x release (and other versions similarly)
1.0.0-beta16 - specific versions
main - the latest main branch code (unstable!)
You can run these like so:
docker run -d --restart=always -p 8090:8090 fluree/ledger:latest
...and then access the admin dashboard at http://localhost:8090.
On a Mac machine, you can download Fluree using Homebrew by running:
brew tap fluree/flureedb
brew install flureedb
To run Fluree after installing it, run:
To uninstall, run:
brew uninstall flureedb
brew untap fluree/flureedb
See the code for our Homebrew set up on our Github repo. Using Fluree via Homebrew will slightly modify where your Fluree configuration files are stored on your machine. Please refer to the log in your terminal when you start Fluree up. All relevant information is printed to the console on startup.