Installation
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
Verify that Tailcall is installed correctly by running:
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
Verify that Tailcall is installed correctly by running:
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 tailcallVerify that Tailcall is installed correctly by running:
tailcall
Once installation is done, upgrades can be performed via:
brew update
brew upgrade tailcall
Curl
Follow the steps below to manually install the cli on your system:
curl -sSL https://raw.githubusercontent.com/tailcallhq/tailcall/master/install.sh | bash -s --
This command fetches and executes the Tailcall installation script. The installed files are located in the ~/.tailcall
directory.
Upon completion of the installation, extend your PATH
environment variable to include the ~/.tailcall/bin
directory:
export PATH=$PATH:~/.tailcall/bin
Docker
If you want to install Tailcall with Docker, follow the steps below. Before starting, ensure Docker is installed on your system. If not, you can 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 -p 8080:8080 -p 8081:8081 tailcall.docker.scarf.sh/tailcallhq/tailcall/tc-server:
This command starts the Tailcall server in a Docker container. Similar to the homebrew installation, it exposes a the graphQL endpoint on port 8080.