Skip to content

Commit

Permalink
feat(credentials): use env var as default token (#56)
Browse files Browse the repository at this point in the history
Use env var `CTF_CMA_TOKEN` as default for CMA token.
This will ease using this tool inside package.json `scripts` block without exposing the CMA token.
  • Loading branch information
marcolink authored Nov 19, 2020
1 parent e109a6b commit 5b9c72a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ class ContentfulMdg extends Command {
static flags = {
version: flags.version({char: 'v'}),
help: flags.help({char: 'h'}),

out: flags.string({char: 'o', description: 'output directory'}),
preserve: flags.boolean({char: 'p', description: 'preserve output folder'}),

// remote access
spaceId: flags.string({char: 's', description: 'space id'}),
token: flags.string({char: 't', description: 'management token'}),
token: flags.string({char: 't', description: 'management token', default: process.env.CTF_CMA_TOKEN}),
environment: flags.string({char: 'e', description: 'environment'}),
};

Expand Down

0 comments on commit 5b9c72a

Please sign in to comment.