-
Notifications
You must be signed in to change notification settings - Fork 219
Allow non-interactive app init
#6640
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
This comment has been minimized.
This comment has been minimized.
app initapp init
|
Will need to figure out why unit tests are failing. Works on my machine ™️. |
|
/snapit |
|
🫰✨ Thanks @gonzaloriestra! Your snapshot has been published to npm. Test the snapshot by installing your package globally: npm i -g --@shopify:registry=https://registry.npmjs.org @shopify/cli@0.0.0-snapshot-20251120104339Caution After installing, validate the version by running just |
Coverage report
Show new covered files 🐣
Show files with reduced coverage 🔻
Test suite run success3372 tests passing in 1382 suites. Report generated by 🧪jest coverage report action from 37f0070 |
250ba03 to
94b8275
Compare
|
Converted PR to Draft to avoid merging before required server-side changes. |
Differences in type declarationsWe detected differences in the type declarations generated by Typescript for this branch compared to the baseline ('main' branch). Please, review them to ensure they are backward-compatible. Here are some important things to keep in mind:
New type declarationsWe found no new type declarations in this PR Existing type declarationspackages/cli-kit/dist/public/node/environment.d.ts@@ -53,7 +53,7 @@ export declare function jsonOutputEnabled(environment?: NodeJS.ProcessEnv): bool
/**
* If true, the CLI should not use the Partners API.
*
- * @returns True if the SHOPIFY_CLI_NEVER_USE_PARTNERS_API environment variable is set.
+ * @returns True when SHOPIFY_CLI_NEVER_USE_PARTNERS_API is set or SHOPIFY_CLI_1P_DEV is not set.
*/
export declare function blockPartnersAccess(): boolean;
/**
|
94b8275 to
37f0070
Compare

WHY are these changes introduced?
The
app initcommand has interactive prompts that are impossible to bypass. This prevents scripting and some agentic use.(Agentic use may still be difficult as the agent needs to obtain the organization ID, but this puts us a step closer.)
WHAT is this pull request doing?
organization-idflag to suppress organization selectionnameflag suppresses interactive linking and name promptsinitcommandSHOPIFY_FLAG_CLIENT_IDenvironment definition in our GitHub actions to the acceptance test job specifically (where it's needed), since it was breaking the newapp inittestsHow to test your changes?
The following commands should all be successful:
The following should fail:
Measuring impact
How do we know this change was effective? Please choose one:
Checklist