Skip to content

Conversation

alfonso-noriega
Copy link
Contributor

@alfonso-noriega alfonso-noriega commented Sep 17, 2025

[Feature] Add store list command to display development stores

WHY are these changes introduced?

To provide CLI users with the ability to view their development stores directly from the command line, making it easier to manage and work with their development environments.

WHAT is this pull request doing?

  • Adds a new shopify store list command that displays development stores in the user's organization
  • Implements the service logic to fetch and display stores from the Business Platform API
  • Updates the CLI documentation to include the new command
  • Sets up the necessary file structure for future store management commands

How to test your changes?

  1. Run shopify store list from the command line
  2. You should be prompted to select an organization if you have access to multiple
  3. The command should display a table of development stores with their names, domains, and IDs
  4. Verify that the output is correctly formatted and contains the expected information

Measuring impact

How do we know this change was effective? Please choose one:

  • n/a - this doesn't need measurement, e.g. a linting rule or a bug-fix
  • Existing analytics will cater for this addition
  • PR includes analytics changes to measure impact

Checklist

  • I've considered possible cross-platform impacts (Mac, Linux, Windows)
  • I've considered possible documentation changes

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link
Contributor

github-actions bot commented Sep 17, 2025

Unused exports (2)

Filename exports
packages/store/src/cli/utilities/app-dev-store-client.ts encodedGidFromOrganizationIdForBP
encodedGidFromShopId

@alfonso-noriega alfonso-noriega force-pushed the 09-16-cli_store_creation_prototype branch from d0f0bc9 to ec611a3 Compare September 19, 2025 16:14
Copy link
Contributor

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements
78.1% (-0.52% 🔻)
13514/17303
🟡 Branches
72.13% (-0.5% 🔻)
6562/9098
🟡 Functions
78.37% (-0.5% 🔻)
3510/4479
🟡 Lines
78.45% (-0.51% 🔻)
12774/16284
Show new covered files 🐣
St.
File Statements Branches Functions Lines
🟢
... / flow-template.ts
100% 100% 100% 100%
🔴
... / organizations.ts
0% 100% 100% 0%
🔴
... / user-info.ts
0% 100% 100% 0%
🔴
... / create_app_development_store.ts
0% 100% 100% 0%
🔴
... / fetch_dev_store_by_domain.ts
0% 100% 100% 0%
🔴
... / list_app_dev_stores.ts
0% 100% 100% 0%
🔴
... / app-dev-store-client.ts
0% 0% 0% 0%
🔴
... / create.ts
0% 100% 0% 0%
🔴
... / list.ts
0% 100% 0% 0%
🔴
... / create.ts
0% 0% 0% 0%
🔴
... / list.ts
0% 0% 0% 0%
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🟢
... / app.ts
86.49% (-0.07% 🔻)
68.57%
93.44% (-0.11% 🔻)
88.2% (-0.07% 🔻)
🟢
... / extension-instance.ts
82.68% (-0.38% 🔻)
77.6% (-1.14% 🔻)
92.73%
82.42% (-0.42% 🔻)
🟢
... / write-app-logs.ts
90% (-0.48% 🔻)
100% 100%
90% (-0.48% 🔻)
🔴
... / extension.ts
57.38% (-2.97% 🔻)
60%
44.44% (-5.56% 🔻)
58.33% (-3.07% 🔻)
🟢
... / app-event-watcher.ts
97.62% (-0.11% 🔻)
91.43% 95.45% 100%
🟢
... / bundle.ts
82.35% (-10.87% 🔻)
66.67%
73.33% (-14.9% 🔻)
83.67% (-12.62% 🔻)
🔴
... / app-management-client.ts
53.45% (-0.32% 🔻)
47.06% (-0.62% 🔻)
49.09% (-0.45% 🔻)
52.26% (-0.17% 🔻)
🟢
... / session.ts
89.6% (-1.51% 🔻)
77.53% (-1.47% 🔻)
91.67% (-0.64% 🔻)
88.98% (-1.57% 🔻)
🟢
... / headers.ts
100%
87.5% (-2.5% 🔻)
100% 100%
🔴
... / schema.ts
44.44% (-25.56% 🔻)
0% (-50% 🔻)
0% (-50% 🔻)
50% (-16.67% 🔻)
🔴
... / store.ts
50% (-43.55% 🔻)
25% (-68.75% 🔻)
100%
50% (-42.59% 🔻)
🟢
... / Tasks.tsx
94% (-6% 🔻)
93.1% (-6.9% 🔻)
88.89% (-11.11% 🔻)
93.62% (-6.38% 🔻)
🟢
... / environments.ts
100%
91.67% (-8.33% 🔻)
100% 100%
🟢
... / session.ts
97.96% (+3.73% 🔼)
100% (+4.88% 🔼)
85.71% (-1.79% 🔻)
97.96% (+3.73% 🔼)
🔴
... / ui.tsx
49.15% (-2.46% 🔻)
42.86% (-5.53% 🔻)
51.61% (-1.51% 🔻)
48.28% (-2.54% 🔻)
🟡
... / flags.ts
71.43% (-19.48% 🔻)
100%
50% (-25% 🔻)
66.67% (-23.33% 🔻)
🟢
... / theme-command.ts
85.71% (-0.24% 🔻)
68.25% (-1.9% 🔻)
83.33%
87.04% (-0.24% 🔻)
🟢
... / theme-uploader.ts
93.22% (-0.04% 🔻)
79.63% (-0.73% 🔻)
92.19%
94.3% (-0.04% 🔻)

Test suite run success

3241 tests passing in 1360 suites.

Report generated by 🧪jest coverage report action from ec611a3

@plvaldes plvaldes force-pushed the 09-16-cli_store_creation_prototype branch 2 times, most recently from 4122ff4 to 4ec9ece Compare September 23, 2025 09:46
@alfonso-noriega alfonso-noriega force-pushed the 09-16-cli_store_creation_prototype branch 4 times, most recently from 8aea542 to b37740f Compare September 26, 2025 15:17
@alfonso-noriega alfonso-noriega force-pushed the 09-16-cli_store_creation_prototype branch from b37740f to 10db7a2 Compare October 1, 2025 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant