From 3f8911e4b698de6ac0b1df698d8a573c95b311b0 Mon Sep 17 00:00:00 2001 From: Marco Link Date: Fri, 19 Jan 2024 23:40:29 +0100 Subject: [PATCH] feat: add host parameter --- README.md | 2 ++ src/commands/index.ts | 2 ++ 2 files changed, 4 insertions(+) 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, }); }