Skip to content

Commit

Permalink
Publicize new CLI commands (Shopify#995)
Browse files Browse the repository at this point in the history
  • Loading branch information
graygilmore authored Jun 9, 2023
1 parent 15cea18 commit 428c78d
Showing 8 changed files with 10 additions and 13 deletions.
7 changes: 7 additions & 0 deletions .changeset/old-masks-shave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@shopify/cli-hydrogen': patch
---

Hidden flag removed from new CLI commands

You can now link your local Hydrogen storefront to a storefront you have created in the Shopify admin. This allows you to pull your environment variables into your local environment or have them be automatically injected into your runtime when you run `dev`.
2 changes: 1 addition & 1 deletion packages/cli/oclif.manifest.json

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions packages/cli/src/commands/hydrogen/env/list.ts
Original file line number Diff line number Diff line change
@@ -22,9 +22,8 @@ import {
} from '../../../lib/render-errors.js';

export default class EnvList extends Command {
static description = 'List the environments on your Hydrogen storefront.';

static hidden = true;
static description =
'List the environments on your linked Hydrogen storefront.';

static flags = {
path: commonFlags.path,
2 changes: 0 additions & 2 deletions packages/cli/src/commands/hydrogen/env/pull.ts
Original file line number Diff line number Diff line change
@@ -21,8 +21,6 @@ export default class EnvPull extends Command {
static description =
'Populate your .env with variables from your Hydrogen storefront.';

static hidden = true;

static flags = {
['env-branch']: commonFlags['env-branch'],
path: commonFlags.path,
2 changes: 0 additions & 2 deletions packages/cli/src/commands/hydrogen/link.ts
Original file line number Diff line number Diff line change
@@ -18,8 +18,6 @@ export default class Link extends Command {
static description =
"Link a local project to one of your shop's Hydrogen storefronts.";

static hidden = true;

static flags = {
force: commonFlags.force,
path: commonFlags.path,
2 changes: 0 additions & 2 deletions packages/cli/src/commands/hydrogen/list.ts
Original file line number Diff line number Diff line change
@@ -21,8 +21,6 @@ export default class List extends Command {
static description =
'Returns a list of Hydrogen storefronts available on a given shop.';

static hidden = true;

static flags = {
path: commonFlags.path,
shop: commonFlags.shop,
2 changes: 0 additions & 2 deletions packages/cli/src/commands/hydrogen/unlink.ts
Original file line number Diff line number Diff line change
@@ -8,8 +8,6 @@ import {getConfig, unsetStorefront} from '../../lib/shopify-config.js';
export default class Unlink extends Command {
static description = 'Unlink a local project from a Hydrogen storefront.';

static hidden = true;

static flags = {
path: commonFlags.path,
};
1 change: 0 additions & 1 deletion packages/cli/src/lib/flags.ts
Original file line number Diff line number Diff line change
@@ -34,7 +34,6 @@ export const commonFlags = {
"Specify an environment's branch name when using remote environment variables.",
env: 'SHOPIFY_HYDROGEN_ENVIRONMENT_BRANCH',
char: 'e',
hidden: true,
}),
};

0 comments on commit 428c78d

Please sign in to comment.