Stakpak Docs
Go to StakpakGo to API DocsDiscord
  • Get Started
    • Welcome to Stakpak! 🚀
    • Installing Stakpak CLI
      • Installation on Linux
      • Installation on MacOS
      • Installation on Windows
  • Security at Stakpak
  • DevOps Agent
    • Get Started
    • Containerize Next.js Application
  • Web IDE
    • Features
  • CLI
    • Features
  • API
    • Manage API Keys
    • API Docs
  • MCP Server
Powered by GitBook
On this page
  • Prerequisites
  • Stakpak Installation
  • Usage
  1. Get Started
  2. Installing Stakpak CLI

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.

PreviousInstalling Stakpak CLINextInstallation on MacOS

Last updated 2 months ago

Stakpak CLI on Linux