Follow the steps below to install Mailchain...

Quick Install (Mac)

To install Mailchain for the first time, we recommend using Homebrew to download, install and manage the application on your local machine.

brew install mailchain

Quick Install (Linux and Windows)

To install Mailchain for the first time, run the following command to download and install the application on your local machine.

curl -sL | sh

Manual Install

To choose where to store the application, you can install mailchain manually.

1. Download the application

Download the application directly via the Mailchain releases page. We recommend you save it in your home directory: ~/.mailchain/bin

2. Export the application path

Next, add mailchain to your environmental variable path with:

export PATH=$PATH:$HOME/.mailchain/bin

Note: if you changed the location of the mailchain executable, you should update the path as appropriate:

export PATH=$PATH:$HOME/{mailchain_executable_location}

Verify the application is installed and running correctly with: mailchain version. For example:`

$ mailchain version
Version: v0.0.11

Next, if the application is working as expected, you’ll want to add the path to ~/.profile, .zshrc, or ~/.bash_profile, depending on which shell you use.

To determine the shell you use, run echo $SHELL. For example, if using zsh, as shown below:

$ echo $SHELL

Shell output

Command to export the path to the shell profile


echo 'export PATH=$PATH:$HOME/.mailchain/bin' >> ~/.zshrc


echo 'export PATH=$PATH:$HOME/.mailchain/bin' >> ~/.bashrc


echo 'export PATH=$PATH:$HOME/.mailchain/bin' >> ~/.kshrc

You are now ready to initialize the application.