flyctl icon indicating copy to clipboard operation
flyctl copied to clipboard

FLY_CONFIG environment variable

Open rubys opened this issue 1 year ago • 3 comments

It would be great if there was an environment variable FLY_CONFIG that functions similarly to FLY_APP, except it points to the config file and saves having to use -c flags all the time.

See: https://community.fly.io/t/fly-config-in-your-choice-of-formats-toml-yaml-or-json/20017/11

rubys avatar Jun 04 '24 19:06 rubys

I wouldn't want it to point to just the config file. I want to move the entire ~/.fly/ directory (in my case to $XDG_DATA_HOME)

jadejr avatar Jun 12 '24 00:06 jadejr

I want to move the entire ~/.fly/ directory

Try FLY_CONFIG_DIR.

See: https://github.com/superfly/flyctl/pull/2785

rubys avatar Jun 12 '24 00:06 rubys

@ruby Did i miss that in the docs somwhere? Also there's logs and locks in there, so I wouldn't expect that by the name. I'll give it a go.

jadejr avatar Jun 12 '24 10:06 jadejr