Please document `fly machine run`: how to pass equivalent of `docker run`'s `--cmd` argument

PLEASE document that fly machine run ... allows the caller to pass command line arguments to the entrypoint by appending a -- then the desired arguments.

I burned significant time trying to figure this out, and I’m still only 90% sure that’s true.

1 Like

I can’t seem to find an answer to this either.

Edit:

I found this in docs

[experimental]
cmd = ["path/to/command", "arg1", "arg2"]
entrypoint = ["path/to/command", "arg1", "arg2"]
exec = ["path/to/command", "arg1", "arg2"]

Running machines with custom commands covered here:

…search could probably be improved though