Skip to content

Commit

Permalink
feat: add host parameter (#325)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcolink authored Jan 23, 2024
1 parent d5536cf commit c70c2a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/commands/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -68,6 +69,7 @@ class ContentfulMdg extends Command {
skipRoles: true,
skipWebhooks: true,
saveFile: false,
host: flags.host,
});
}

Expand Down

0 comments on commit c70c2a6

Please sign in to comment.