The flyctl command has a number of features that enable it to be seamlessly integrated with scripted and automated environments such as CI.
FLY_ACCESS_TOKENis an environment variable which can be used to pass an access token to an instance of Flyctl. The token may be obtained using
flyctl auth token.
FLY_APPis an environment variable which is used as the application name.
Most flyctl commands can product JSON output using the
-j flag. The JSON may be streamed messsages in JSON-NL format or a single JSON object, depending on what is being requested.