As we make breaking changes to the contract between fly and the API regarding login, users regularly find themselves stuck in a position where they cannot just sync their fly and they are forced to visit the web UI and click the download icons or some similar workaround.
$ fly -t wings login -c https://wings.pivotal.io -n main
logging in to team 'main'
WARNING:
fly version (3.14.1) is out of sync with the target (4.2.2). to sync up, run the following:
fly -t wings sync
error: resource not found
$ fly -t wings sync
error: unknown target: wings