TypeDB Community Edition

You can run TypeDB Community Edition (CE) locally or inside a Docker container. TypeDB CE is free & open source!

Distributions

Download and install

Download the latest distribution of TypeDB CE from the table below.

Release notes macOS Linux Windows

latest

x86_64 / arm64

x86_64 / arm64

x86_64

For all versions, see the Packages page.

Unzip the downloaded file in a location that is easily accessible from your terminal. The unzipped folder contains the typedb binary.

Run

To start the server:

typedb server

To stop a local TypeDB server, close the terminal where it runs or press kbd:[Ctrl+C].

Docker

Download

To pull the latest TypeDB CE Docker image:

docker pull typedb/typedb:latest

You can replace latest with a version number to get a specific version of TypeDB CE. To check the list of available versions, see the Releases page.

Run

To create a new Docker container with TypeDB CE server:

docker volume create typedb-data
docker create --name typedb -v typedb-data:/opt/typedb-all-linux-x86_64/server/data -p 1729:1729 -p 8000:8000 typedb/typedb:latest

Where typedb is the name of the container, and typedb-data is the name of the volume to persist data. -p 1729:1729 -p 8000:8000 forward the ports 1729 and 8000 on the host machine to the container’s ports 1729 and 8000 respectively.

You will have to use -v typedb-data:/opt/typedb-all-linux-arm64/server/data if you are running the arm64 image.

To start the created Docker container or restart a stopped container:

docker start typedb

To stop a running Docker container:

docker stop typedb