Skip to end of banner
Go to start of banner

How to get list of deployment projects to a file using Bamboo CLI

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

This article explains how to get the list of deployment projects to a file in the Bamboo server using the app, Bamboo Command Line Interface.

Instructions

Use the getDeploymentProjectList CLI action.

To get the list of deployment projects in a project:

  1. Log in as a Bamboo administrator. Ensure you have the deployment projects.
  2. Navigate to Deploy > All deployment projects to view all deployment projects in the Bamboo instance.
  3. Execute the below CLI action:

Option 1:

  • To get the list of all deployment projects in a project with Id, Name, Description, Plan fields.

    ./acli mybamboo --action getDeploymentProjectList --outputFormat 999 --file projects.csv
  • The output on the console looks similar to:

    --action getDeploymentProjectList --outputFormat 999 --file projects.csv
    
    7 deployment projects in list written to file: /Users/amulyaakula/Downloads/Confluence/CLI_9.3/projects.csv
  • Below is the output of the file projects.csv:


Option 2:

  • To get the list of all deployment projects in a project:

    ./acli mybamboo --action getDeploymentProjectList --outputFormat 1
  • The output on the console is similar to:

    ./acli mybamboo --action getDeploymentProjectList --outputFormat 1
    
    7 deployment projects in list
    "Id","Name","Description","Plan"
    "3342338","Bamboo CLI","","DEMO-DEM"
    "3342337","Bamboo UI","","DEMO-DEM"
    "3342340","Bobswift_Project","","DEMO-DEM"
    "2588673","DeployProject1","DeployProject1 Description","DEMO-DEM"
    "2850817","DeployProject2","DeployProject2 Description","DEMO-DEM"
    "3342341","SQL","","DEMO-DEM"
    "3342339","Witti","","DEMO-DEM"
  • It is recommended to test the commands in a non-production environment, or run the action with --simulate parameter to verify the behavior before deploying.
  • Ensure that the Bamboo Command Line Interface app is installed in your Bamboo instance.
  • No labels