This article explains how to get the list of unreleased versions in a project using Jira Command Line Interface (CLI).
Instructions
Use the --project parameter along with --getVersionList to get the released/unreleased version details of a project. The command to use:
--action getVersionList --options excludeReleased --project CT
If excludeReleased is not used, then the list of all versions available in a project can be obtained. The command to use:
--action getVersionList --project CT
The command works for cloud as well as self-hosted Jira instances.
Refer to these documentations for more information on the actions used: