Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Coverage report
Test suite run success3985 tests passing in 1527 suites. Report generated by 🧪jest coverage report action from b9064bc |
59c4766 to
efd8c3d
Compare
a4d95bf to
91c5478
Compare
efd8c3d to
a078db7
Compare
91c5478 to
7eff2a7
Compare
a078db7 to
d45c41b
Compare
e9ef54b to
d22a6e8
Compare
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/private/node/constants.d.ts@@ -8,7 +8,6 @@ export declare const environmentVariables: {
env: string;
firstPartyDev: string;
noAnalytics: string;
- cliToken: string;
partnersToken: string;
runAsUser: string;
serviceEnv: string;
packages/cli-kit/dist/public/node/environment.d.ts@@ -10,12 +10,17 @@
*/
export declare function getEnvironmentVariables(): NodeJS.ProcessEnv;
/**
- * Returns the value of the SHOPIFY_CLI_TOKEN environment variable,
- * falling back to the deprecated SHOPIFY_CLI_PARTNERS_TOKEN.
+ * Returns the value of the SHOPIFY_CLI_PARTNERS_TOKEN environment variable.
*
- * @returns The CLI token value, or undefined if neither env var is set.
+ * @returns Current process environment variables.
+ */
+export declare function getPartnersToken(): string | undefined;
+/**
+ * Check if the current proccess is running using the partners token.
+ *
+ * @returns True if the current proccess is running using the partners token.
*/
-export declare function getCliToken(): string | undefined;
+export declare function usePartnersToken(): boolean;
/**
* Returns the value of the organization id from the environment variables.
*
packages/cli-kit/dist/private/node/session/exchange.d.ts@@ -25,7 +25,7 @@ export declare function exchangeAccessForApplicationTokens(identityToken: Identi
*/
export declare function refreshAccessToken(currentToken: IdentityToken): Promise<IdentityToken>;
/**
- * Given a custom CLI token passed as ENV variable, request a valid Partners API token.
+ * Given a custom CLI token passed as ENV variable, request a valid Partners API token
* This token does not accept extra scopes, just the cli one.
* @param token - The CLI token passed as ENV variable
* @returns An instance with the application access tokens.
@@ -35,7 +35,7 @@ export declare function exchangeCustomPartnerToken(token: string): Promise<{
userId: string;
}>;
/**
- * Given a custom CLI token passed as ENV variable, request a valid App Management API token.
+ * Given a custom CLI token passed as ENV variable, request a valid App Management API token
* @param token - The CLI token passed as ENV variable
* @returns An instance with the application access tokens.
*/
@@ -44,7 +44,7 @@ export declare function exchangeCliTokenForAppManagementAccessToken(token: strin
userId: string;
}>;
/**
- * Given a custom CLI token passed as ENV variable, request a valid Business Platform API token.
+ * Given a custom CLI token passed as ENV variable, request a valid Business Platform API token
* @param token - The CLI token passed as ENV variable
* @returns An instance with the application access tokens.
*/
|
7eff2a7 to
da7fb1e
Compare
d22a6e8 to
5828af2
Compare
da7fb1e to
c953d80
Compare
5828af2 to
7a4c5d2
Compare
7a4c5d2 to
bcfb6e3
Compare
c953d80 to
085ad44
Compare
|
We detected some changes at Caution DO NOT create changesets for features which you do not wish to be included in the public changelog of the next CLI release. |
First pass, not final agent shape
085ad44 to
ecc2096
Compare
bcfb6e3 to
b9064bc
Compare

What
Add
--jsontoshopify app config validate.This gives the command a machine-readable mode while keeping the current text output and exit behavior unchanged.
Why
shopify app config validateis useful in shell-based and agent-driven workflows, but today it only exposes human-readable output.This PR creates a small automation foothold for validation loops and follow-up work on repair flows without changing the underlying validation model yet.
How
--json/-jsupport toshopify app config validateTesting
To test manually in an app project:
shopify app config validate --jsonin a valid app and confirm it prints a valid result object.shopify app config validate --jsonagain.