The npm community forum has been discontinued.
To discuss usage of npm, visit the GitHub Support Community.
CLI: npm token create could be easier to automate.
NPM is awesome - thanks for all the hard work so far.
I’m automating a deployment and I’d like to generate an npm token for each deploy.
I’ve a couple of enhancement requests for the
npm token create cli command, which at the moment is difficult to automate.
npm token createthe output lists all the properties of the created token in ascii table format.
Would it be possible to provide an option to just return the token value, so you could redirect the output into a variable or similar? Currently, I’d have to parse the returned table of properties.
npm token createwould it be possible to provide the
npm passwordas a parameter? Currently this can be navigated around using an
expectscript in bash or similar, but thats a hack. An alternative to a parameter would be to use an ENV_VAR I guess.
--json but you’d still need to parse.
+1, token management is now all on manual and hard to integrate to CI/CD for docker build