Skip to main content

Mass Environment Create

mass environment createโ€‹

Create an environment

Synopsisโ€‹

Create Environment

Creates a new environment in a project.

Usageโ€‹

shell
mass environment create <slug> [flags]

Flagsโ€‹

  • --name, -n: Environment name (defaults to slug if not provided)

Examplesโ€‹

shell
# Create an environment "dbbundle-test" (project "dbbundle" is parsed from slug)
mass environment create dbbundle-test

# Create an environment with a custom name
mass environment create dbbundle-test --name "Database Test Environment"
mass environment create [ID] [flags]

Optionsโ€‹

  -a, --attributes stringToString   Custom attributes for ABAC (e.g. -a environment=staging,region=uswest) (default [])
-d, --description string Optional environment description
-h, --help help for create
-n, --name string Environment name (defaults to ID if not provided)

Options inherited from parent commandsโ€‹

      --profile string   Configuration profile to use (overrides MASSDRIVER_PROFILE and the active profile)

SEE ALSOโ€‹