Using Bob Swift CLI to create new users

Benjamin Meier June 15, 2020

Hello Community,

 

I am trying to use Bob Swift CLI to create users in my confluence. 

I installed the plugin on my confluence and the client on my PC (windows 10). However, there seems to be an issue with my confluence: 

I tried to run the following command:

 

acli jiracloud --action getProjectList --server https://<<my Confluence>>.atlassian.net

 

and I get the following response:


Client error: Unable to contact Jira at url https://<<my Confluence>>.atlassian.net. Response code: 404.

 

Am I missing something? It seems like I cant run any commands (like creating new users) as long as the general connection to my confluence is not working.

Thank you for your answers.

2 answers

0 votes
Kiran Panduga {Appfire}
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 16, 2020

Hi @Benjamin Meier , 

Thank you, we were able to fix this issue over the call. Please use our portal for further communication on this issue.

Thanks,

Kiran.

0 votes
Kiran Panduga {Appfire}
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 15, 2020

Hi @Benjamin Meier , 

I'm from Appfire Support team and I will assist you with the Bob Swift Atlassian Apps - Confluence Command Line Interface (CLI) issue,

I would like to inform you that the Cloud requires an Atlassian API token and you can generate the API token by the below link:

https://id.atlassian.com/manage/api-tokens

Once the API token is generated, please use that has the password and you should be able to connect to the Cloud instance to perform the CLI actions.


Kirans-MacBook-Pro:ACLI kiranpanduga$ cat acli.properties
# Below are the connections configured by the ACLI installer:
jiraCredentials = -u kiran@appfire.com -t QIp2hc5KwiIwevZX669040Il3146
confluence=jiracloud -s https://example.atlassian.net/ ${jiraCredentials}


After successfully adding, you can execute the below CLI action to get the Space List in Confluence


--action getSpaceList

I hope the information is helpful.

I would like to inform you that, we had opened a request for the same in our support portal and request you to login and access this request and all further communication will be through our support portal.

Thanks,
Kiran.

Benjamin Meier June 15, 2020

Hello Kiran,

 

thanks a lot for your answer. Unfortunately I do not have permission to view the request you linked. 

Regarding your answer:

I already used the API token of my confluence when I installed the client.

Unfortunately, when I run the ACLI acli.properties command the following message returns: 

Configuration or client acli.properties not found. Valid clients are: agile, agilecloud, bamboo, bitbucket, bitbucketcloud, cli, confluence, confluencecloud, csv, jira, jiracloud, servicedesk, servicedeskcloud, slack, structure, tempo, tempocloud, trello, upm, upmcloud. Configuration file is: 'C:\Users\Benny\ACLI\acli.properties'.
Benjamin Meier June 15, 2020

My acli.properties file contains the following:

 

# Below are the connections configured by the ACLI installer:
jiraCredentials = -u benjamin.meier@<<domain>>.de -t <<my Token>>
default=jiracloud -s https://<<my Confluence>>.atlassian.net/ ${jiraCredentials}

Kiran Panduga {Appfire}
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 15, 2020

Hi @Benjamin Meier , 

Thank you for the information. Regarding the accessing the Support portal, please find the screenshot as a reference. Click on the profile and setting in the left sidebar and select Profile. You will see the name. Please provide the name so that we will add it to our Support portal as the reporter and you can have further updates on that Support request.

 

profile1.png

 

With respect to CLI issue, 

Please execute the below CLI action ans share us the output in the support request.

./acli jiracloud --action getSpaceList --debug

Thanks,

Kiran.

Benjamin Meier June 15, 2020

Hello Kiran,

 

thank you very much for your continued help, I highly appreciate it. 

The name I can see when I open my confluence profile is "Benjamin Meier". I hope this is the value you needed.

Regarding the CLI action:

C:\Users\benny\ACLI>ACLI jiracloud --action getSpaceList --debug
Client information:

Client name . . . . . . . . . : jiracloud
Client version . . . . . . . : 9.2.0
Client description . . . . . : Client for Atlassian Jira and Jira Software for Cloud.
Client usage . . . . . . . . : Use the jiracloud client to create and report on issues, projects, releases, components and other Jira information. This client is especially suited to help administrators to deal with managing their Jira Cloud instances.
Delegated clients . . . . . . : confluencecloud, agilecloud, servicedeskcloud, upmcloud
Client build date . . . . . . : 2020-03-30T15:21:46.403373200
Client build revision . . . . : 5a77048e4f7a976384928c541fca96d6fb78ab06
Client build JDK . . . . . . : 11.0.5
Client Java compatibility . . : 1.8
OS name . . . . . . . . . . . : Windows 10
OS version . . . . . . . . . : 10.0
Java name . . . . . . . . . . : OpenJDK 64-Bit Server VM
Java version . . . . . . . . : 11.0.5
Java arguments . . . . . . . : -Dfile.encoding=UTF-8
Used memory (MB) . . . . . . : 8
Free memory (MB) . . . . . . : 248
Total memory (MB) . . . . . . : 256
Max memory (MB) . . . . . . . : 4084
Default encoding . . . . . . : UTF-8
Configuration file . . . . . : C:\Users\benny\ACLI\acli.properties
User parameters (non-blank):
action . . . . . . . . . . . : getSpaceList
debug . . . . . . . . . . . . : true
Default parameters (non-blank):
activate . . . . . . . . . . : false
append . . . . . . . . . . . : false
appendText . . . . . . . . . : false
autoAdjust . . . . . . . . . : false
autoComponent . . . . . . . . : false
autoGroup . . . . . . . . . . : false
autoVersion . . . . . . . . . : false
clearFileBeforeAppend . . . . : false
cloneIssues . . . . . . . . . : false
continue . . . . . . . . . . : false
copyAttachments . . . . . . . : false
copyComments . . . . . . . . : false
copyComponents . . . . . . . : false
copyEstimates . . . . . . . . : false
copyLinks . . . . . . . . . . : false
copyRoleActors . . . . . . . : false
copySubtaskEstimates . . . . : false
copySubtasks . . . . . . . . : false
copyVersions . . . . . . . . : false
copyWatchers . . . . . . . . : false
copyWork . . . . . . . . . . : false
dbCreateTable . . . . . . . . : false
deactivate . . . . . . . . . : false
deleteFilter . . . . . . . . : false
exportAttachments . . . . . . : false
favorite . . . . . . . . . . : false
help . . . . . . . . . . . . : false
includeInactive . . . . . . . : false
limit . . . . . . . . . . . . : 2147483647
loginFromStandardInput . . . : false
lookup . . . . . . . . . . . : false
notify . . . . . . . . . . . : false
outputFormat . . . . . . . . : 1
preserveCase . . . . . . . . : false
quiet . . . . . . . . . . . . : false
recursive . . . . . . . . . . : false
replace . . . . . . . . . . . : false
requestType . . . . . . . . . : GET
simulate . . . . . . . . . . : false
subtract . . . . . . . . . . : false
suppressId . . . . . . . . . : false
suppressNotify . . . . . . . : false
useParentVersions . . . . . . : false
verbose . . . . . . . . . . . : false
withId . . . . . . . . . . . : false
Invalid action: GETSPACELIST. Use --action "?" or --action <prefix>? to get a list of actions.
com.appfire.atlassian.cli.Exceptions$InvalidActionClientException: Invalid action: GETSPACELIST. Use --action "?" or --action <prefix>? to get a list of actions.
at com.appfire.cli.cli.CliClient.process(CliClient.java:611)
at com.appfire.cli.cli.CliClient.doWork(CliClient.java:505)
at com.appfire.cli.cli.CliClient.doWork(CliClient.java:475)
at com.appfire.cli.cli.CliClient.doWork(CliClient.java:592)
at com.appfire.atlassian.cli.Base.doWorkForName(Base.java:326)
at com.appfire.atlassian.cli.Base.process(Base.java:132)
at com.appfire.atlassian.cli.Entry.main(Entry.java:31)
Kiran Panduga {Appfire}
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 15, 2020

Hi @Benjamin Meier , 

It appears you have not signed up into our portal. Please sign up(here) and let me know, then I will be able to add you as reported to the issue.

 

Meanwhile, please execute these actions and share the debug logs

acli jiracloud --action getProjectList --debug
acli --action getProjectList --server https://<<my Confluence>>.atlassian.net --username ***** --token **** --debug

Replace your Cloud instance, Username and Token in the above command and execute.

Thanks,

Kiran.

Benjamin Meier June 15, 2020

Hello @Kiran Panduga {Appfire} 

thank you very much for your help. I think I am already signed in on the linked website, see this screenshot:

Anmerkung 2020-06-16 081946.png

Regarding the first command: 

C:\Users\benny\ACLI>acli jiracloud --action getProjectList --debug
Client information:

Client name . . . . . . . . . : jiracloud
Client version . . . . . . . : 9.2.0
Client description . . . . . : Client for Atlassian Jira and Jira Software for Cloud.
Client usage . . . . . . . . : Use the jiracloud client to create and report on issues, projects, releases, components and other Jira information. This client is especially suited to help administrators to deal with managing their Jira Cloud instances.
Delegated clients . . . . . . : confluencecloud, agilecloud, servicedeskcloud, upmcloud
Client build date . . . . . . : 2020-03-30T15:21:46.403373200
Client build revision . . . . : 5a77048e4f7a976384928c541fca96d6fb78ab06
Client build JDK . . . . . . : 11.0.5
Client Java compatibility . . : 1.8
OS name . . . . . . . . . . . : Windows 10
OS version . . . . . . . . . : 10.0
Java name . . . . . . . . . . : OpenJDK 64-Bit Server VM
Java version . . . . . . . . : 11.0.5
Java arguments . . . . . . . : -Dfile.encoding=UTF-8
Used memory (MB) . . . . . . : 8
Free memory (MB) . . . . . . : 248
Total memory (MB) . . . . . . : 256
Max memory (MB) . . . . . . . : 4084
Default encoding . . . . . . : UTF-8
Configuration file . . . . . : C:\Users\benny\ACLI\acli.properties
User parameters (non-blank):
action . . . . . . . . . . . : getProjectList
debug . . . . . . . . . . . . : true
Default parameters (non-blank):
activate . . . . . . . . . . : false
append . . . . . . . . . . . : false
appendText . . . . . . . . . : false
autoAdjust . . . . . . . . . : false
autoComponent . . . . . . . . : false
autoGroup . . . . . . . . . . : false
autoVersion . . . . . . . . . : false
clearFileBeforeAppend . . . . : false
cloneIssues . . . . . . . . . : false
continue . . . . . . . . . . : false
copyAttachments . . . . . . . : false
copyComments . . . . . . . . : false
copyComponents . . . . . . . : false
copyEstimates . . . . . . . . : false
copyLinks . . . . . . . . . . : false
copyRoleActors . . . . . . . : false
copySubtaskEstimates . . . . : false
copySubtasks . . . . . . . . : false
copyVersions . . . . . . . . : false
copyWatchers . . . . . . . . : false
copyWork . . . . . . . . . . : false
dbCreateTable . . . . . . . . : false
deactivate . . . . . . . . . : false
deleteFilter . . . . . . . . : false
exportAttachments . . . . . . : false
favorite . . . . . . . . . . : false
help . . . . . . . . . . . . : false
includeInactive . . . . . . . : false
limit . . . . . . . . . . . . : 2147483647
loginFromStandardInput . . . : false
lookup . . . . . . . . . . . : false
notify . . . . . . . . . . . : false
outputFormat . . . . . . . . : 1
preserveCase . . . . . . . . : false
quiet . . . . . . . . . . . . : false
recursive . . . . . . . . . . : false
replace . . . . . . . . . . . : false
requestType . . . . . . . . . : GET
simulate . . . . . . . . . . : false
subtract . . . . . . . . . . : false
suppressId . . . . . . . . . : false
suppressNotify . . . . . . . : false
useParentVersions . . . . . . : false
verbose . . . . . . . . . . . : false
withId . . . . . . . . . . . : false
Parameter error: This function requires a non-blank value for parameter server.
com.appfire.atlassian.cli.Exceptions$ParameterClientException: This function requires a non-blank value for parameter server.
at com.appfire.atlassian.cli.AbstractClient.getRequiredString(AbstractClient.java:847)
at com.appfire.atlassian.cli.AbstractClient.verifyRequired(AbstractClient.java:834)
at com.appfire.remote.cli.DefaultRemoteClient.verifyRequiredServer(DefaultRemoteClient.java:547)
at com.appfire.jira.cli.JiraClient.verifyRequiredParameters(JiraClient.java:601)
at com.appfire.jira.cli.JiraClient.handleRequest(JiraClient.java:617)
at com.appfire.cli.cli.CliClient.process(CliClient.java:614)
at com.appfire.cli.cli.CliClient.doWork(CliClient.java:505)
at com.appfire.cli.cli.CliClient.doWork(CliClient.java:475)
at com.appfire.cli.cli.CliClient.doWork(CliClient.java:592)
at com.appfire.atlassian.cli.Base.doWorkForName(Base.java:326)
at com.appfire.atlassian.cli.Base.process(Base.java:132)
at com.appfire.atlassian.cli.Entry.main(Entry.java:31)

 

and the second command:

Attempt unsuccessful for the jiracloud client.
Attempt unsuccessful for the confluencecloud client.
Attempt unsuccessful for the agilecloud client.
Attempt unsuccessful for the servicedeskcloud client.
Attempt unsuccessful for the upmcloud client.
Parameter error: Unknown flag 'username'. Action was getProjectList for the jiracloud client. Other related clients were also attempted without success.

 

I was not sure what username you meant. I tried my login-Email, my name and also the ID shown in the url when managing my profile. All of them returned the same output.

Kiran Panduga {Appfire}
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 15, 2020

Hi @Benjamin Meier , 

I still cannot view your name in our portal. Can you share me your email address? I will send you an meeting invite for now to address the CLI issue and portal access issue. 

Thanks,

Kiran.

Benjamin Meier June 16, 2020

Hello Kiran,

 

thank you. My address is xxxx.

I will delete this answer once you answered me so that this address is not public on this website.

Kiran Panduga {Appfire}
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 16, 2020

Thank you @Benjamin Meier , 

Please join the meeting.

 

Thanks,

Kiran.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events