Run a machine

Usage

flyctl machine run <image> [command] [flags]

Options

  -a, --app string           Application name
      --build-nixpacks       Build your image with nixpacks
  -c, --config string        Path to application configuration file
      --cpus int             Number of CPUs
      --detach               Return immediately instead of monitoring deployment progress
      --dockerfile string    Path to a Dockerfile. Defaults to the Dockerfile in the working directory.
      --entrypoint string    ENTRYPOINT replacement
  -e, --env strings          Set of environment variables in the form of NAME=VALUE pairs. Can be specified multiple times.
  -h, --help                 help for run
      --id string            Machine ID, if previously known
      --kernel-arg strings   List of kernel arguments to be provided to the init. Can be specified multiple times.
      --memory int           Memory (in megabytes) to attribute to the machine
  -m, --metadata strings     Metadata in the form of NAME=VALUE pairs. Can be specified multiple times.
  -n, --name string          Machine name, will be generated if missing
      --org string           The organization that will own the app
  -p, --port strings         Exposed port mappings (format: (edgePort|startPort-endPort)[:machinePort]/[protocol[:handler]])
  -r, --region string        The target region (see 'flyctl platform regions')
      --schedule string      Schedule a machine run at hourly, daily and monthly intervals
  -s, --size string          Preset guest cpu and memory for a machine, defaults to shared-cpu-1x
  -v, --volume strings       Volumes to mount in the form of <volume_id_or_name>:/path/inside/machine[:<options>]

Global Options

  -t, --access-token string   Fly API Access Token
  -j, --json                  json output
      --verbose               verbose output

See Also