Skip to content

fm launch-template

Reference for the fm launch-template command group (auto-generated from fm launch-template --help).

fm launch-template

text
Manage launch templates for scale groups.

Launch templates define the instance configuration (flavor, image, SSH keys, etc.)
used when a scale group launches new instances.

Examples:
  fm launch-template list
  fm launch-template get lt-123
  fm launch-template create --name web-template --flavor c1.general1.medium --image ubuntu-24.04 --vpc vpc-123
  fm launch-template delete lt-123

Usage:
  fm launch-template [command]

Aliases:
  launch-template, launch-templates, lt

Available Commands:
  create      Create a launch template
  delete      Delete a launch template
  get         Get launch template details
  list        List launch templates
  tags        Read and replace a launch template's tags

Flags:
  -h, --help   help for launch-template

Global Flags:
      --config string   config file (default is $HOME/.fm/config.yaml)
  -d, --debug           enable debug/verbose output
      --no-color        disable colored output
  -o, --output string   output format: table, json, yaml, wide (default "table")
  -q, --quiet           suppress non-essential output
      --tenant string   tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)

Use "fm launch-template [command] --help" for more information about a command.

fm launch-template create

text
Create a new launch template.

Examples:
  fm launch-template create --name web-template --flavor c1.general1.medium --image ubuntu-24.04 --vpc vpc-123
  fm launch-template create --name app-template --flavor c1.general1.large --image ubuntu-24.04 --vpc vpc-123 --ssh-key my-key --security-group sg-456
  fm launch-template create --name web-template --flavor c1.general1.medium --image ubuntu-24.04 --vpc vpc-123 --tag env=prod --tag owner=team-a

Usage:
  fm launch-template create [flags]

Flags:
      --flavor string            flavor ID (required)
  -h, --help                     help for create
      --image string             image ID (required)
      --name string              template name (required)
      --security-group strings   security group ID(s)
      --ssh-key strings          SSH key name(s)
      --tag strings              tags in key=value format (repeatable)
      --user-data string         user data script (or @filename)
      --vpc string               VPC ID (required)

Global Flags:
      --config string   config file (default is $HOME/.fm/config.yaml)
  -d, --debug           enable debug/verbose output
      --no-color        disable colored output
  -o, --output string   output format: table, json, yaml, wide (default "table")
  -q, --quiet           suppress non-essential output
      --tenant string   tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)

fm launch-template delete

text
Delete a launch template.

Usage:
  fm launch-template delete <template-id> [flags]

Flags:
  -h, --help   help for delete

Global Flags:
      --config string   config file (default is $HOME/.fm/config.yaml)
  -d, --debug           enable debug/verbose output
      --no-color        disable colored output
  -o, --output string   output format: table, json, yaml, wide (default "table")
  -q, --quiet           suppress non-essential output
      --tenant string   tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)

fm launch-template get

text
Get detailed information about a specific launch template.

Usage:
  fm launch-template get <template-id> [flags]

Flags:
  -h, --help   help for get

Global Flags:
      --config string   config file (default is $HOME/.fm/config.yaml)
  -d, --debug           enable debug/verbose output
      --no-color        disable colored output
  -o, --output string   output format: table, json, yaml, wide (default "table")
  -q, --quiet           suppress non-essential output
      --tenant string   tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)

fm launch-template list

text
List all launch templates.

Usage:
  fm launch-template list [flags]

Flags:
  -h, --help   help for list

Global Flags:
      --config string   config file (default is $HOME/.fm/config.yaml)
  -d, --debug           enable debug/verbose output
      --no-color        disable colored output
  -o, --output string   output format: table, json, yaml, wide (default "table")
  -q, --quiet           suppress non-essential output
      --tenant string   tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)

fm launch-template tags

text
Read and replace a launch template's tags

Usage:
  fm launch-template tags [command]

Aliases:
  tags, tag

Available Commands:
  get         Show a launch template's tags
  set         Replace a launch template's tags

Flags:
  -h, --help   help for tags

Global Flags:
      --config string   config file (default is $HOME/.fm/config.yaml)
  -d, --debug           enable debug/verbose output
      --no-color        disable colored output
  -o, --output string   output format: table, json, yaml, wide (default "table")
  -q, --quiet           suppress non-essential output
      --tenant string   tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)

Use "fm launch-template tags [command] --help" for more information about a command.

fm launch-template tags get

text
Show a launch template's tags

Usage:
  fm launch-template tags get <template-id> [flags]

Flags:
  -h, --help   help for get

Global Flags:
      --config string   config file (default is $HOME/.fm/config.yaml)
  -d, --debug           enable debug/verbose output
      --no-color        disable colored output
  -o, --output string   output format: table, json, yaml, wide (default "table")
  -q, --quiet           suppress non-essential output
      --tenant string   tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)

fm launch-template tags set

text
Replace a launch template's tags in place with exactly the given set
(replace semantics — any tag not listed is removed).

The set you pass IS the resulting set. To ADD one tag without disturbing the
others, read the current ones first with 'fm launch-template tags get' and pass
them all back.

Use --clear to remove every tag.

These are the template's OWN tags, not the metadata stamped on the instances it
launches, so changing them never touches a running instance.

Examples:
  fm launch-template tags set lt-123 --tag env=prod --tag owner=team-a
  fm launch-template tags set lt-123 --clear

Usage:
  fm launch-template tags set <template-id> --tag <key=value> [--tag <key=value> ...] [flags]

Flags:
      --clear         remove ALL tags (mutually exclusive with --tag)
  -h, --help          help for set
      --tag strings   tag in key=value format (repeatable; replace semantics)

Global Flags:
      --config string   config file (default is $HOME/.fm/config.yaml)
  -d, --debug           enable debug/verbose output
      --no-color        disable colored output
  -o, --output string   output format: table, json, yaml, wide (default "table")
  -q, --quiet           suppress non-essential output
      --tenant string   tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)