Installation on Linux

This is a step-by-step guide to installing Stakpak CLI on Linux.

Prerequisites

Install Homebrew

Before installing Stakpak CLI, ensure the following prerequisites and dependencies are met.

First, ensure your system is up to date and install the necessary dependencies:

sudo apt install -y build-essential curl file git

Second, install homebrew:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

After installation, you need to add Homebrew to your shell's PATH. The installer will typically provide instructions.

echo >> /home/user/.bashrc
echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> /home/user/.bashrc
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"

To verify that Homebrew is installed correctly, run:

brew doctor

You will get "your system is ready to brew".

Stakpak Installation

After installing brew, install Stakpak:

brew tap stakpak/stakpak
brew install stakpak

Usage

  1. Create an API key from your Stakpak console Manage API Keys

  2. Set the environment variable STAKPAK_API_KEY

export STAKPAK_API_KEY=<YOUR-KEY>
  1. Login to Stakpak CLI

stakpak login --api-key $STAKPAK_API_KEY
  1. Confirm the login by viewing your account

stakpak account
  1. Stakpak CLI is now ready to use.

Stakpak CLI on Linux

Last updated