@bigcommerce/stencil-cli 8.5.2 → 8.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,7 +19,11 @@ program
19
19
  '-n, --no-cache',
20
20
  'Turns off caching for API resource data per storefront page. The cache lasts for 5 minutes before automatically refreshing.',
21
21
  )
22
- .option('-t, --timeout', 'Set a timeout for the bundle operation. Default is 20 secs', '60');
22
+ .option('-t, --timeout', 'Set a timeout for the bundle operation. Default is 20 secs', '60')
23
+ .option(
24
+ '-cu, --channelUrl [channelUrl]',
25
+ 'Set a custom domain url to bypass dns/proxy protection',
26
+ );
23
27
  const cliOptions = prepareCommand(program);
24
28
  const options = {
25
29
  open: cliOptions.open,
@@ -28,6 +32,7 @@ const options = {
28
32
  apiHost: cliOptions.host,
29
33
  tunnel: cliOptions.tunnel,
30
34
  cache: cliOptions.cache,
35
+ channelUrl: cliOptions.channelUrl,
31
36
  };
32
37
  const timeout = cliOptions.timeout * 1000; // seconds
33
38
  const buildConfigManager = new BuildConfigManager({ timeout });
@@ -91,6 +91,9 @@ class StencilStart {
91
91
  this.storeHash = await this._themeApiClient.getStoreHash({
92
92
  storeUrl: stencilConfig.normalStoreUrl,
93
93
  });
94
+ if (cliOptions.channelUrl) {
95
+ return cliOptions.channelUrl;
96
+ }
94
97
  const channels = await this._themeApiClient.getStoreChannels({
95
98
  storeHash: this.storeHash,
96
99
  accessToken,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigcommerce/stencil-cli",
3
- "version": "8.5.2",
3
+ "version": "8.6.0",
4
4
  "type": "module",
5
5
  "description": "CLI tool to run BigCommerce Stores locally for theme development.",
6
6
  "main": "index.js",