Skip to content

Commit

Permalink
fix: allow host-delivery config to be passed to export command [EXT-5…
Browse files Browse the repository at this point in the history
…986] (#2846)
  • Loading branch information
jjolton-contentful authored Nov 25, 2024
1 parent 3996be3 commit a1dc85f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ When multiple proxy configurations exists, precedence is taken in this form:
You can override the host configuration in your `.contentfulrc.json` via:

```sh
contentful config add --host api.eu.contentful.com
contentful config add --host api.eu.contentful.com --host-delivery cdn.eu.contentful.com
```

Then any subsequent command will use the EU host. E.g. `contentful login` will log you in to your EU Contentful instance.
Then any subsequent command will use the EU hosts. E.g. `contentful login` will log you in to your EU Contentful instance.

## :rescue_worker_helmet: Troubleshooting

Expand Down
4 changes: 4 additions & 0 deletions lib/cmds/space_cmds/export.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ module.exports.builder = function (yargs) {
describe: 'Management API host',
type: 'string'
})
.option('host-delivery', {
describe: 'Delivery API host',
type: 'string',
})
.option('proxy', {
describe:
'Proxy configuration in HTTP auth format: [http|https]://host:port or [http|https]://user:password@host:port',
Expand Down

0 comments on commit a1dc85f

Please sign in to comment.