Uploaded image for project: 'Atlassian Ecosystem'
  1. Atlassian Ecosystem
  2. ECO-852

Allow to retrieve latest version of an App using the Forge CLI

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Issue Summary

      The current method of tracking the deployed version of a Forge app involves extracting the version from the deploy output, which is unstable and prone to breaking if the response format changes. The request is for a new feature in the Forge CLI that would allow developers to access the latest deployed version of an app environment in a stable manner.

      Actual Results

      At present, during deployment, the version is extracted from the string response using a script. The partner then stores this version in an external remote, and the Forge UI retrieves it via an external call from the backend resolver. However, this method is unstable because the forge deploy output can change.

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

            [ECO-852] Allow to retrieve latest version of an App using the Forge CLI

            Whilst the forge version command can return the latest (and previous major) versions, this only supplies the latest major version. This does provide enough information to detect major version app changes which is the primary need to allow developers to detect a major version difference (To alert customer they should upgrade)

            Denny Miller added a comment - Whilst the forge version command can return the latest (and previous major) versions, this only supplies the latest major version. This does provide enough information to detect major version app changes which is the primary need to allow developers to detect a major version difference (To alert customer they should upgrade)

            My understanding of the request could be solved using the recently released Forge version command https://developer.atlassian.com/platform/forge/cli-reference/version-list/ 

            For example using the below command it would give the latest deployed version in production: 

            // forge version list -e production --json | jq '.[].version' | sort -nr | head -n 1 

             

            Sam Purchase added a comment - My understanding of the request could be solved using the recently released Forge version command https://developer.atlassian.com/platform/forge/cli-reference/version-list/   For example using the below command it would give the latest deployed version in production:  // forge version list -e production --json | jq '.[].version' | sort -nr | head -n 1  

              Unassigned Unassigned
              cc8aaff0e17f Leonardo Grzybowski
              Votes:
              7 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: