Skip to main content
⏳ Estimated read time: 2 min read

Configure StackGen CLI

The stackgen configure command is used to configure the StackGen CLI by setting up your team information and server URL.

Usage:

stackgen configure [flags]

Flags

FlagDescription
-h, --helpDisplays help information for the configure command.
--team stringSpecifies the team of the organization. This can also be set using the TEAM environment variable.
--url stringSpecifies the URL of the StackGen server. This can also be set using the STACKGEN_URL environment variable.

Examples

Usage 1: Basic Configuration Command

stackgen configure --team myteam --url https://my-stackgen-server.com

The above command will:

  • Set the organization team to myteam.
  • Set the StackGen server URL to https://my-stackgen-server.com.

Usage 2: Configure with Environment Variables

export TEAM=myteam
export STACKGEN_URL=https://my-stackgen-server.com
stackgen configure

The above commands will use the environment variables to configure the team (myteam) and the StackGen server URL (https://my-stackgen-server.com), without explicitly passing them as flags.

Usage 3: Interactive Mode Configuration

stackgen configure --team myteam --url https://my-stackgen-server.com --interactive

The above command will:

  • Run the configuration command in interactive mode.
  • Prompt for additional required inputs if necessary.