When creating a publisher via `vsce` I get a 401

Viewed 1466

I am running this command to create a VSCode publisher:

 vsce create-publisher cprev

but I am getting this 401 error:

my shell showing the 401

I have a personal token created like so:

the azure devops console

anyone know why I am getting a 401? Is there some way to debug it, to get a more specific message?

1 Answers

One easy mistake to make when creating the PAT (Personal Access Token) is to not select all accessible accounts in the Accounts field drop-down (instead selecting a specific account). You should also set the Authorized Scopes to All scopes for the publish to work。

enter image description here

Please set Organization in drop down list with All accessible organizations.

More details pleas take a look at this similar issue here: vsce create-publisher returns 401

Related