This guide will walk you through the steps to install stackgen
using Homebrew.
Before you begin, make sure you have the following:
-
An account at https://cloud.stackgen.com/
-
Homebrew installed on your system. If you don't have Homebrew installed, you can install it by running the following command in your terminal:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Follow these steps to install stackgen
using Homebrew:
-
Open your terminal.
-
Run the following command to add the stackgen tap:
brew install stackgenhq/homebrew-stackgen/stackgen
-
After the installation is complete, you can verify the installation by running the following command:
stackgen version
This should display the version of
stackgen
installed on your system.
To configure stackgen
, you need to set your API key. Follow these steps:
-
Log in to your account at https://cloud.stackgen.com/.
-
Navigate to your personal access token settings.
-
Copy your API key.
-
Run the following command in your terminal to set the API key:
export STACKGEN_TOKEN=<YOUR_API_KEY>
Replace
<YOUR_API_KEY>
with your actual API key.
export STACKGEN_URL="https://stackgen.<acme.org>"
-
Log in to your account at https://stackgen.acme.org/.
-
Navigate to your personal access token settings @ https://stackgen.acme.org/account-settings/pat/.
-
Copy your API key.
-
Run the following command in your terminal to set the API key:
export STACKGEN_TOKEN=<YOUR_API_KEY>
Replace
<YOUR_API_KEY>
with your actual API key.
You can now start using stackgen
. Run the following command to see the available commands: