diff --git a/README.md b/README.md index fc16eb3..5449836 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,8 @@ OPTIONS -s, --spaceId=spaceId space id -t, --token=token management token -v, --version show CLI version + -a, --host The Management API host + ``` ### Example diff --git a/src/commands/index.ts b/src/commands/index.ts index 70a86e3..9b1b72d 100644 --- a/src/commands/index.ts +++ b/src/commands/index.ts @@ -38,6 +38,7 @@ class ContentfulMdg extends Command { default: process.env.CTF_CMA_TOKEN, }), environment: Flags.string({ char: 'e', description: 'environment' }), + host: Flags.string({ char: 'a', description: 'host', default: 'api.contentful.com' }), }; static args = { @@ -68,6 +69,7 @@ class ContentfulMdg extends Command { skipRoles: true, skipWebhooks: true, saveFile: false, + host: flags.host, }); }