Forrest logo
back to the pulumi tool

pulumi:tldr:fcfd3

pulumi: Create a new stack using an isolated deployment target.
$ pulumi stack init
try on your machine

The "pulumi stack init" command is used to initialize a new Pulumi stack.

Pulumi is an infrastructure as code (IaC) tool that allows developers and infrastructure teams to define and manage their cloud infrastructure using familiar programming languages. A "stack" in Pulumi represents a distinct deployment target, such as a separate environment or a different set of configurations.

When running "pulumi stack init", the command will:

  1. Create a new Pulumi stack in the current directory.
  2. Prompt you to input a name for the stack.
  3. Create the necessary stack configuration files, like Pulumi.yaml and Pulumi..yaml, where is the name you provided.

The Pulumi.yaml file contains general project-level settings and references to provider plugins, while the Pulumi..yaml file is used for stack-specific configurations. These files will be used later when deploying resources to the cloud.

Overall, "pulumi stack init" is a command used to set up and initialize a new Pulumi stack to begin defining and managing cloud infrastructure using Pulumi.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the pulumi tool