Installation
Download and launch
<>
cURL
Homebrew
Docker
APT
Source
Windows
Download the latest stable release of MeiliSearch with cURL.
Launch MeiliSearch to start the server.
# Install MeiliSearch
curl -L https://install.meilisearch.com | sh
# Launch MeiliSearch
./meilisearch
Download the latest stable release of MeiliSearch with Homebrew.
Launch MeiliSearch to start the server.
# Update brew and install MeiliSearch
brew update && brew install meilisearch
# Launch MeiliSearch
meilisearch
Using Docker you can choose to run any available tag (opens new window).
This command starts the latest stable release of MeiliSearch.
# Fetch the latest version of MeiliSearch image from DockerHub
docker pull getmeili/meilisearch:latest
# Launch MeiliSearch
docker run -it --rm \
-p 7700:7700 \
-v $(pwd)/data.ms:/data.ms \
getmeili/meilisearch:latest
Data written to a Docker container is not persistent and is deleted along with the container when the latter is stopped. Docker volumes are not deleted when containers are removed. It is then recommended to share volumes between your containers and your host machine to provide persistent storage. MeiliSearch writes data to /data.ms
You can learn more about Docker on the official documentation (opens new window).
Download the latest stable release of MeiliSearch with APT.
Launch MeiliSearch to start the server.
# Add MeiliSearch package
echo "deb [trusted=yes] https://apt.fury.io/meilisearch/ /" > /etc/apt/sources.list.d/fury.list
# Update APT and install MeiliSearch
apt update && apt install meilisearch-http
# Launch MeiliSearch
meilisearch
MeiliSearch is written in Rust
. To compile it, installing the Rust toolchain (opens new window) is required.
If the Rust toolchain is already installed, clone the repository on your local system and change it to your working directory.
git clone https://github.com/meilisearch/MeiliSearch
cd MeiliSearch
In the cloned repository, compile MeiliSearch.
# Update the rust toolchain to the latest version
rustup update
# Compile the project
cargo build --release
# Execute the server binary
./target/release/meilisearch
To install MeiliSearch on Windows, you can:
- use Docker (see “Docker” tab above)
- download the latest binary (opens new window)
- use the installation script (see “cURL” tab above) if you have installed Cygwin (opens new window) or equivalent
- compile from source (see “Source” tab above)
To learn more about the Windows command prompt, follow this introductory guide (opens new window).
Compile for Best Performance
For best performance, compile MeiliSearch on the machine you intend to run it on. This way, the binary is optimized for your specific architecture.
Cloud deploy
To deploy MeiliSearch on a cloud service, follow one of our dedicated guides:
Configuration options
Configuration options are added at launch, either through command line options or through environment variables.
This is an example using the command line options.
./meilisearch --db-path ./meilifiles --http-addr '127.0.0.1:7700'
Here is a list of all the options and how to use them.
Updating MeiliSearch
Getting the latest version of MeiliSearch is a straightforward process: simply fetch and install the latest binary with your preferred method (see Installation above).
However, please note that prior to our official release (v1.0
), databases are not compatible across versions. Any database created by MeiliSearch v0.X
can only be read by that version.
Migrating your database to a later version
If you get the error Cannot open database, expected MeiliSearch engine version: X.X.X, current engine version Y.Y.Y
, your database is not compatible with the version you’re using. To migrate your database to the most recent version of MeiliSearch, follow our dedicated guide.