Can not use --access-token with newly created token

We’re running 0.0.189 and since this version all commands using --access-token fail with the error

Error No access token available. Please login with 'flyctl auth login'

We first ran into this on our CI because we install the latest version each deploy. Locally it worked until after the upgrade.

Wow that’s not great.

You’re just setting your access token to deploy from CI? We’ll see why the --access-token arg regressed (I have guesses). However, it’s better to use an env variable for this. Is it possible for you to set FLY_ACCESS_TOKEN as an environment variable and stop using the arg?

I hadn’t thought about setting the environment variable. That certainly fixed our CI build pipeline. Thanks!

1 Like