Console

How do I install Courier on Linux?

Learn how to get started with Blutui Courier on Linux.

Introduction

Courier is a development tool that allows you to write code locally and view the results instantly. Once you're satisfied with your work, you can push it to your Blutui project for review. Courier is designed to offer the best of both worlds by integrating local workflow with the cloud, thereby making development faster, more enjoyable, and more creative. This guide outlines the steps to install and set up Courier on a Linux machine.

Installation

Install Courier

Open your terminal and run the install script:

curl -fsSL https://blutui.com/courier/install.sh | sh

The install script works on x86_64 and arm64. It downloads the latest release and verifies its checksum before installing it.

Verify the installation

Open a new terminal window and run:

courier version

A working installation prints the installed version number.

Additional steps for Firefox users

If you're using Firefox, you'll need to install Network Security Services (NSS) to use courier dev. Use the package manager for your distribution:

sudo apt install libnss3-tools

Authentication

Log in to Courier with your Blutui account:

courier login

Courier shows a login code and copies it to your clipboard. Press Enter to open Blutui in your browser, sign in if you need to, paste the code and approve the login.

✔ Login code copied to your clipboard … ABCD-EFGH
? Press Enter to open accounts.blutui.com in your browser...
  Paste the code into the page to continue. If your browser doesn't open, visit:

  https://accounts.blutui.com/oauth/device

✔ Success! Courier is configured for your account.

Courier renews your login in the background, so you rarely need to log in again. If your browser doesn't open, or you're connected over SSH, visit the URL Courier prints and enter the code there.

Courier saves your credentials to your system's secure storage (Keychain on macOS, Credential Manager on Windows, Secret Service on Linux). If secure storage isn't available, Courier saves them in its config file and shows a warning.

Log in with an access token

In CI, scripts, or anywhere without a browser, log in with an access token instead:

  1. In your Agency Console, click your avatar in the top-right corner and choose Profile.
  2. Go to Apps in the sidebar and click Create token under Access tokens.
  3. Name your token and set the token type to Courier. This selects the project:read, cassette:read and cassette:write scopes Courier needs.
  4. Click Create token and copy the token. It's only shown once.

Save the token to a token.txt file and pass it to Courier on standard input:

courier login --token < token.txt

Delete token.txt once you're logged in. When the token expires, create a new one and log in again.

And there you have it—a complete guide to installing, and setting up Courier on Linux! To upgrade, install a specific version, or uninstall Courier, see the Linux installation docs.

More resources

Last updated on

On this page