Providing Circle CLI my token when publishing orbs

Use case:
I’m using CircleCI workflows to publish my Orbs as part of a monorepo.
I’m using the circleci/circleci-cli executor

Problem
I don’t want to have to run circleci setup to provide my token

Solution:
The circleci-cli container supports the --token parameter so this works:

circleci orb publish orb.yml <namspace>/<orb-name>@dev:0.0.1 --token <my-token>

Just putting this out there as in case it helps anyone else.

3 Likes

Hi Hardiarl, thank you very much for sharing!