Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Go to the CLI installation directory.
  2. Rename the example properties file (acli-cloud or acli-server) to acli.properties appropriately as per your environment.
  3. Update the acli.properties file, as shown below:

    1. To work with multiple Cloud sites and/or Server sites, you need to update the acli.properties file as shown in the below example where different environments like Prod,Stage, QA etc., are targeted:

      Code Block
      languagebash
      titleExample: acli.properties
      linenumberstrue
      # Example Cloud configuration - customize and rename this file to acli.properties
       
      # Cloud requires an email address and a corresponding API token from Atlassian.
      # Use an existing token or create one at https://id.atlassian.com/manage/api-tokens (requires an Atlassian account login).
      
      credentials       = --user automation@examplegear.com --token xxxxxxxxxxxxxxxxxxxxxxxx
      cloudSite         = examplegear
      myjira            = jiracloud       -s https://${cloudSite}.atlassian.net     issues.example.com      ${credentials} 
      myconfluence      = confluencecloud -s https://${cloudSite}.atlassian.net/wiki $mydocs.example.com      ${credentials} 
      
      
      # Example Server configuration:
      
      prodcredentials   = --user admin --password admin
      jiraserver            = jira       -s https://prodjira.examplegear.com       ${prodcredentials}
      confluenceserver      = confluence -s https://prodconfluence.examplegear.com ${prodcredentials}
      
      
      qacredentials     = --user qauser --password qapass
      qajira            = jira       -s https://qajira.example.com       ${qacredentials}
      qaconfluence      = confluence -s https://qaconfluence.example.com ${qacredentials}
      
       
      # This defines the default client for actions, choose the most likely used client
      default           = ${myjira}

      Save the file and run the below commands as per your requirement:

      Code Block
      languagebash
      acli qajira --action getServerInfo


Info

You can also use -a instead of --action for all CLI actions. For example: 

No Format
acli -a getServerInfo



Info

Note: Please provide your userid in user parameter and API token data in token parameter as shown below: 
credentials       = --user automation@examplegear.com --token xxxxxxxxxxxxxxxxxxxxxxxx
In the properties file myjira is pointing to your Jira instance and myconfluence is pointing to your Confluence instance details.