Introduction
There may be situations where a Terraform Enterprise Administrator needs to update Terraform Enterprise to a newer version using the command line- for example, in a programmatic approach.
Procedure (online installation)
- You can fetch any available updates via the command:
$ replicatedctl app-release ls --fetch --all
- You can then apply the latest update via 'replicatedctl app-release apply' or upgrade to a specific release with the '--sequence' flag:
$ replicatedctl app-release apply --sequence 570
Procedures (airgapped installation)
- First, ensure your '.airgap' files are in the appropriate location. You can find the currently configured location from the console settings of your instance (https://<TFE HOSTNAME>:8800/console/settings) in the field Update Path update directory, or from the command line with:
$ replicatedctl params export --template '{{.AirgapPackagePath}}'
- Once the .airgap files are in the configured directory, you can then run the following command to rescan the directory for the corresponding Terraform Enterprise versions:
$ replicatedctl app-release ls --fetch
- You can then apply the latest update via 'replicatedctl app-release apply' or upgrade to a specific release with the '--sequence' flag:
$ replicatedctl app-release apply --sequence 570
Additional Information
- See Also: How To Track The Progress of a Terraform Enterprise Update via Replicated CLI
- For additional assistance please contact HashiCorp Support.