superfly / flyctl

Command line tools for fly.io services
https://fly.io
Apache License 2.0
1.37k stars 226 forks source link

FLY_CONFIG environment variable #3595

Open rubys opened 2 months ago

rubys commented 2 months ago

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

jadejr commented 1 month ago

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)

rubys commented 1 month ago

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

Try FLY_CONFIG_DIR.

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

jadejr commented 1 month ago

@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.