Product Release Commands - project-ncl/pnc-cli GitHub Wiki
#Product Release Commands#
###create-release### Create a new ProductRelease.
#####Required Parameters#####
- Version: Version for this ProductRelease. Must confirm to the \d*.\w* regex. Will be appended to the version of the ProductVersion this ProductRelease is associated with. Example: ProductVersion.version = 1.0, ProductRelease.version = 1.GA, final version string = 1.0.1.GA.
- Release date: Date that this ProductRelease was released.
- Download URL: URL for downloading the deliverables of the ProductRelease.
- Product Version ID: ProductVersion which is associated with this ProductRelease.
- Product Milestone ID: ProductMilestone which is the basis of this ProductRelease.
- Support Level: PNC specific value indicating what kind of support is offered for this ProductRelease.
###get-release### Get a JSON payload of the specified ProductRelease.
#####Required Parameters#####
- ProductRelease ID: ID of the ProductRelease to retrieve.
[[thauser] [19:30:45] ~]$pnc get-release 1
{'download_url': None,
'id': 1,
'product_milestone_id': 1,
'product_version_id': 1,
'release_date': None,
'support_level': 'EARLYACCESS',
'version': '1.0.0.GA'}
###update-release### Update the specified ProductRelease fields with updated information.
#####Required Parameters#####
- Product Release ID: The ProductRelease to modify.
#####Optional Parameters#####
- Version (-v / --version): New version for the ProductRelease.
- Release Date (-rd / --release-date): New release date for the ProductRelease.
- Download URL (-du / --download-url): New Download URL for the ProductRelease's deliverables.
- Product Version ID (-pvid / --product-version-id): New ProductVersion to associate this ProductRelease with.
- Product Milestone ID (-msid / --product-milestone-id): New ProductMilestone to associate this ProductRelease with.
- Support Level (-sl / --support-level): New support level for this ProductRelease.
###list-product-releases### List all ProductReleases.
#####Optional Parameters#####
- Page size (-p / --page-size): The maximum amount of ProductReleases that will be returned per "page". Default 200.
- Sort (-s / --sort): RSQL query to define the order of returned ProductReleases
- Query (-q): RSQL query to filter returned results
[[thauser] [19:27:42] ~]$pnc list-product-releases
{'download_url': None,
'id': 1,
'product_milestone_id': 1,
'product_version_id': 1,
'release_date': None,
'support_level': 'EARLYACCESS',
'version': '1.0.0.GA'}
###list-product-releases-for-version### List all ProductReleases associated with a given ProductVersion.
#####Required Parameters#####
- Product Version ID: ProductVersion to retrieve ProductReleases of.
#####Optional Parameters#####
- Page size (-p / --page-size): The maximum amount of ProductReleases that will be returned per "page". Default 200.
- Sort (-s / --sort): RSQL query to define the order of returned ProductReleases
- Query (-q): RSQL query to filter returned results
[[thauser] [19:27:42] ~]$pnc list-product-releases-for-version 1
{'download_url': None,
'id': 1,
'product_milestone_id': 1,
'product_version_id': 1,
'release_date': None,
'support_level': 'EARLYACCESS',
'version': '1.0.0.GA'}