From 6b7c44d32ded9ce33a3157023d52a60e42abcc25 Mon Sep 17 00:00:00 2001 From: Joel Low Date: Thu, 3 Dec 2020 16:10:36 +0800 Subject: [PATCH] Add simple instructions to providing an NPM Token to backend:build-image --- packages/cli/src/commands/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/cli/src/commands/index.ts b/packages/cli/src/commands/index.ts index 2b0e3e25b9..975df97f41 100644 --- a/packages/cli/src/commands/index.ts +++ b/packages/cli/src/commands/index.ts @@ -55,7 +55,9 @@ export function registerCommands(program: CommanderStatic) { .helpOption(', --backstage-cli-help') // Let docker handle --help .option('--build', 'Build packages before packing them into the image') .description( - 'Bundles the package into a docker image. All extra args are forwarded to docker image build', + 'Bundles the package into a docker image. All extra args are forwarded to ' + + '`docker image build`. For example, if a $NPM_TOKEN needs to be exposed, run ' + + '`backend:build-image --secret id=NPM_TOKEN,src=/NPM_TOKEN.txt`', ) .action(lazy(() => import('./backend/buildImage').then(m => m.default)));