Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

CLI Auth with API Token

Elias Steiner
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 27, 2023

Hello, is it possible to authenticate via API token using Confluence CLI? How can I do this? So far, I have been receiving an error message stating that the password field cannot be empty.
Kind Regards

2 answers

0 votes
Naveen Kumar_Appfire
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 2, 2023

Hi @Elias Steiner Welcome to the community

Yes, You can authenticate confluence CLI using a Token. Pass the CLI action as below.

--user "xxxx" --token "xxxx" --action getSpaceList

0 votes
Fabio Racobaldo _Herzum_
Community Champion
May 2, 2023

Hi @Elias Steiner and welcome,

please take a look to the following article https://bobswift.atlassian.net/wiki/spaces/ACLI/pages/392757809/Authentication.

You should be able to authenticate through https://confluence.atlassian.com/enterprise/using-personal-access-tokens-1026032365.html . That approach requires 7.9 or higher of Confluence.

Fabio

Elias Steiner
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 2, 2023

Hi @Fabio Racobaldo _Herzum_ 
Yes i have seen this Article. But i see there only the Documentation for using the Rest API. I need a away to authtentificate over the Confluence CLI.

Do you have an example?

kind Regards
Elias

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events