When already logged in via terraform login the token is (in general) saved at ~/.terraform.d/credentials.tfrc.json. It would be great if in addition to reading the token from TFE_TOKEN the token could also be read from this location. (JQ path: .credentials["app.terraform.io"].token)
If you think that is a good idea I am happy to provide a PR for it.
When already logged in via
terraform loginthe token is (in general) saved at~/.terraform.d/credentials.tfrc.json. It would be great if in addition to reading the token fromTFE_TOKENthe token could also be read from this location. (JQ path:.credentials["app.terraform.io"].token)If you think that is a good idea I am happy to provide a PR for it.