Skip to main content

Installation

How do I install the Command Line Interface (aka cli)?

Require node >=14
CLI installation
npm i -g @getanthill/datastore@latest

After the installation, you will have 2 new commands: datastore and ds which is a shorter alias to the first one.

You can test the installation with

Getting the help
ds --help
ds --vers

How do I install the Datastore locally with Docker?

First you need to have a working MongoDB deployment:

docker run -d --name mongo6 -p 27017:27017 mongo:6 mongod --replSet rs

docker exec mongo6 mongosh \
--eval 'rs.initiate({"_id":"rs","members":[{"_id":0,"host":"localhost:27017"}]})'

Then, you can pull and deploy the latest version of Datastore with:

docker run -d --name datastore \
--network host \
-e FEATURE_API_ADMIN=true -e ADMIN_ACCESS_TOKENS=token \
getanthill/datastore:latest