Installation
You can install the latest version - by using NPM.
NPM
-
If you don't already have nodejs installed, you can find the instructions here.
-
Install Tailcall by running the following command in your terminal:
npm i -g @tailcallhq/tailcall
-
To verify the correct installation of Tailcall, run:
tailcall
noteDo not use the
--force
flag during npm installations, as it ignores installing platform-specific builds.
Yarn
-
Install Tailcall by running the following command in your terminal:
yarn global add @tailcallhq/tailcall
-
To verify the correct installation of Tailcall, run:
tailcall
Homebrew
-
If you don't already have Homebrew installed, you can find the instructions here.
-
Add the Tailcall repository to Homebrew by running the following command in your terminal:
brew tap tailcallhq/tailcall
brew install tailcall -
To verify the correct installation of Tailcall, run:
tailcall
-
After completing the installation, perform upgrades with:
brew update
brew upgrade tailcall
Curl
Follow the steps below to manually install the cli on your system:
curl -sSL https://tailcall.run/install.sh | bash -s --
This command fetches and executes the Tailcall installation script. The ~/.tailcall
directory contains the installed files.
Upon completion of the installation, extend your PATH
environment variable to include the ~/.tailcall/bin
directory:
export PATH=$PATH:~/.tailcall/bin
Docker
To install Tailcall with Docker, follow the steps below. Please note that currently, this installation method only works on Linux/amd64 systems. Before starting, make sure you have Docker installed on your system. If not, download it from here.
-
Pull the latest Tailcall Docker image using the following command:
docker pull tailcall.docker.scarf.sh/tailcallhq/tailcall/tc-server:
This command fetches the latest version of the Tailcall Docker image from the Docker registry.
-
Run the Tailcall Docker container with the following command:
docker run -d --name graphql-server -p 8000:8000
-v /path/to/your/configs:/etc/tailcall
--entrypoint "/bin/sh"
ghcr.io/tailcallhq/tailcall/tc-server:
-c "export PATH=$PATH:~/.tailcall/bin && tailcall start /etc/tailcall/config.graphql"This command launches the Tailcall server in a Docker container, exposing the GraphQL endpoint on port 8080.