Skip to content

fly -c <config.toml> apps restart doesn't pick up app name #4279

Open
@benwaffle

Description

@benwaffle

Describe the bug
The only supported syntax is fly apps restart <app-name>. I would expect fly -c <config.toml> apps restart to also work.

  • Operating system: macOS 15.3.1
  • fly version: v0.3.94

** Paste your fly.toml

app = '...'
primary_region = 'iad'

[build]
  dockerfile = "apps/.../Dockerfile"

[deploy]
  release_command = 'sh -c "cd packages/db && pnpm run migrate"'

[http_service]
  internal_port = 4000
  force_https = true
  auto_stop_machines = 'off'
  auto_start_machines = true
  min_machines_running = 0
  processes = ['app']
  [http_service.http_options]
    h2_backend = true

[[vm]]
  memory = '2gb'
  cpu_kind = 'shared'
  cpus = 2

** Command output: **

Usage:
  fly apps restart <app name> [flags]
...
Error: unknown shorthand flag: 'c' in -c

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions