Closed indirect closed 1 year ago
@indirect do you only need it to work for fly apps list
?
No. I want to use it with every single fly command that accepts a -o / --organization
flag.
I understand, thank you!
I will try to make an initial implementation for fly apps list
where the FLY_ORG
env var takes priority.
I identified the following commands that use org
argument or --org
flag currently:
fly apps list
fly dig
fly ips allocate-v6
fly machine api-proxy
fly proxy
fly ssh issue
fly ssh log
fly litefs-cloud
I did an initial implementation as fast as I could, now we wait for a Fly employee to look at that or provide a better implementation. ☺️
@indirect The solution for this is part of v0.1.85-pre-1 pre-release. You can try it by running the command for "installing the latest pre-release version": (there doesn't seem to be an option for Windows?)
curl -L https://fly.io/install.sh | sh -s pre
I don't know how it makes it from a pre-release to a release, but thought to let you know!
@redjonzaci thank you! 🙌🏻
thanks @indirect for the report and @redjonzaci for a well rounded fix!
Describe the bug Briefly, describe what broke and provide the following details:
Setting the FLY_ORG env var does not replace
-o
in org-level commands. According to @michaeldwan, this is a bug: https://community.fly.io/t/flyctl-feature-request-fly-org-env-var/15099/4.fly version
Command output:
Expected results are for both commands to produce the same results, an org-filtered list of apps.