superfly / flyctl

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

Auth token inconsistent syntax #3666

Open Haarolean opened 1 week ago

Haarolean commented 1 week ago

To create a token I have to do this: flyctl tokens create org --org <orgname>

But with the same syntax can't list them, as --org is not supported here for some reason:

$ fly tokens list org --org zoopets
Error: unknown flag: --org

To list them I have to use another obscure flag -s:

fly tokens list -s org

Then, -s is not supported for fly tokens revoke:

$ fly tokens revoke -s org

Error: unknown shorthand flag: 's' in -s

Also, fly tokens revoke is missing an interactive token selector, so one has to copy-paste the id.