-
Notifications
You must be signed in to change notification settings - Fork 225
[DNM] Release bulk operations CLI commands #6699
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
Open
jordanverasamy
wants to merge
1
commit into
main
Choose a base branch
from
jtv/release-bulk-ops-commands
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@shopify/app': minor | ||
| --- | ||
|
|
||
| Introduce `app execute` and `app bulk execute` commands to run queries and mutations | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| // This is an autogenerated file. Don't edit this file manually. | ||
| import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs' | ||
|
|
||
| const data: ReferenceEntityTemplateSchema = { | ||
| name: 'app bulk execute', | ||
| description: `Executes an Admin API GraphQL query or mutation on the specified store, as a bulk operation. Mutations are only allowed on dev stores. | ||
|
|
||
| Bulk operations allow you to process large amounts of data asynchronously. Learn more about [bulk query operations](/docs/api/usage/bulk-operations/queries) and [bulk mutation operations](/docs/api/usage/bulk-operations/imports). | ||
|
|
||
| Use [\`bulk status\`](/docs/api/shopify-cli/app/app-bulk-status) to check the status of your bulk operations.`, | ||
| overviewPreviewDescription: `Execute bulk operations.`, | ||
| type: 'command', | ||
| isVisualComponent: false, | ||
| defaultExample: { | ||
| codeblock: { | ||
| tabs: [ | ||
| { | ||
| title: 'app bulk execute', | ||
| code: './examples/app-bulk-execute.example.sh', | ||
| language: 'bash', | ||
| }, | ||
| ], | ||
| title: 'app bulk execute', | ||
| }, | ||
| }, | ||
| definitions: [ | ||
| { | ||
| title: 'Flags', | ||
| description: 'The following flags are available for the `app bulk execute` command:', | ||
| type: 'appbulkexecute', | ||
| }, | ||
| ], | ||
| category: 'app', | ||
| related: [ | ||
| ], | ||
| } | ||
|
|
||
| export default data |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| // This is an autogenerated file. Don't edit this file manually. | ||
| import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs' | ||
|
|
||
| const data: ReferenceEntityTemplateSchema = { | ||
| name: 'app bulk status', | ||
| description: `Check the status of a specific bulk operation by ID, or list all bulk operations belonging to this app on this store in the last 7 days. | ||
|
|
||
| Bulk operations allow you to process large amounts of data asynchronously. Learn more about [bulk query operations](/docs/api/usage/bulk-operations/queries) and [bulk mutation operations](/docs/api/usage/bulk-operations/imports). | ||
|
|
||
| Use [\`bulk execute\`](/docs/api/shopify-cli/app/app-bulk-execute) to start a new bulk operation.`, | ||
| overviewPreviewDescription: `Check the status of bulk operations.`, | ||
| type: 'command', | ||
| isVisualComponent: false, | ||
| defaultExample: { | ||
| codeblock: { | ||
| tabs: [ | ||
| { | ||
| title: 'app bulk status', | ||
| code: './examples/app-bulk-status.example.sh', | ||
| language: 'bash', | ||
| }, | ||
| ], | ||
| title: 'app bulk status', | ||
| }, | ||
| }, | ||
| definitions: [ | ||
| { | ||
| title: 'Flags', | ||
| description: 'The following flags are available for the `app bulk status` command:', | ||
| type: 'appbulkstatus', | ||
| }, | ||
| ], | ||
| category: 'app', | ||
| related: [ | ||
| ], | ||
| } | ||
|
|
||
| export default data |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| // This is an autogenerated file. Don't edit this file manually. | ||
| import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs' | ||
|
|
||
| const data: ReferenceEntityTemplateSchema = { | ||
| name: 'app execute', | ||
| description: `Executes an Admin API GraphQL query or mutation on the specified store. Mutations are only allowed on dev stores. | ||
|
|
||
| For operations that process large amounts of data, use [\`bulk execute\`](/docs/api/shopify-cli/app/app-bulk-execute) instead.`, | ||
| overviewPreviewDescription: `Execute GraphQL queries and mutations.`, | ||
| type: 'command', | ||
| isVisualComponent: false, | ||
| defaultExample: { | ||
| codeblock: { | ||
| tabs: [ | ||
| { | ||
| title: 'app execute', | ||
| code: './examples/app-execute.example.sh', | ||
| language: 'bash', | ||
| }, | ||
| ], | ||
| title: 'app execute', | ||
| }, | ||
| }, | ||
| definitions: [ | ||
| { | ||
| title: 'Flags', | ||
| description: 'The following flags are available for the `app execute` command:', | ||
| type: 'appexecute', | ||
| }, | ||
| ], | ||
| category: 'app', | ||
| related: [ | ||
| ], | ||
| } | ||
|
|
||
| export default data |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| shopify app bulk execute [flags] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| shopify app bulk status [flags] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| shopify app execute [flags] |
86 changes: 86 additions & 0 deletions
86
docs-shopify.dev/commands/interfaces/app-bulk-execute.interface.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,86 @@ | ||
| // This is an autogenerated file. Don't edit this file manually. | ||
| export interface appbulkexecute { | ||
| /** | ||
| * The Client ID of your app. | ||
| * @environment SHOPIFY_FLAG_CLIENT_ID | ||
| */ | ||
| '--client-id <value>'?: string | ||
|
|
||
| /** | ||
| * The name of the app configuration. | ||
| * @environment SHOPIFY_FLAG_APP_CONFIG | ||
| */ | ||
| '-c, --config <value>'?: string | ||
|
|
||
| /** | ||
| * Disable color output. | ||
| * @environment SHOPIFY_FLAG_NO_COLOR | ||
| */ | ||
| '--no-color'?: '' | ||
|
|
||
| /** | ||
| * The file path where results should be written if --watch is specified. If not specified, results will be written to STDOUT. | ||
| * @environment SHOPIFY_FLAG_OUTPUT_FILE | ||
| */ | ||
| '--output-file <value>'?: string | ||
|
|
||
| /** | ||
| * The path to your app directory. | ||
| * @environment SHOPIFY_FLAG_PATH | ||
| */ | ||
| '--path <value>'?: string | ||
|
|
||
| /** | ||
| * The GraphQL query or mutation to run as a bulk operation. | ||
| * @environment SHOPIFY_FLAG_QUERY | ||
| */ | ||
| '-q, --query <value>'?: string | ||
|
|
||
| /** | ||
| * Path to a file containing the GraphQL query or mutation. Can't be used with --query. | ||
| * @environment SHOPIFY_FLAG_QUERY_FILE | ||
| */ | ||
| '--query-file <value>'?: string | ||
|
|
||
| /** | ||
| * Reset all your settings. | ||
| * @environment SHOPIFY_FLAG_RESET | ||
| */ | ||
| '--reset'?: '' | ||
|
|
||
| /** | ||
| * The store domain. Must be an existing dev store. | ||
| * @environment SHOPIFY_FLAG_STORE | ||
| */ | ||
| '-s, --store <value>'?: string | ||
|
|
||
| /** | ||
| * Path to a file containing GraphQL variables in JSONL format (one JSON object per line). Can't be used with --variables. | ||
| * @environment SHOPIFY_FLAG_VARIABLE_FILE | ||
| */ | ||
| '--variable-file <value>'?: string | ||
|
|
||
| /** | ||
| * The values for any GraphQL variables in your mutation, in JSON format. Can be specified multiple times. | ||
| * @environment SHOPIFY_FLAG_VARIABLES | ||
| */ | ||
| '-v, --variables <value>'?: string | ||
|
|
||
| /** | ||
| * Increase the verbosity of the output. | ||
| * @environment SHOPIFY_FLAG_VERBOSE | ||
| */ | ||
| '--verbose'?: '' | ||
|
|
||
| /** | ||
| * The API version to use for the bulk operation. If not specified, uses the latest stable version. | ||
| * @environment SHOPIFY_FLAG_VERSION | ||
| */ | ||
| '--version <value>'?: string | ||
|
|
||
| /** | ||
| * Wait for bulk operation results before exiting. Defaults to false. | ||
| * @environment SHOPIFY_FLAG_WATCH | ||
| */ | ||
| '--watch'?: '' | ||
| } |
50 changes: 50 additions & 0 deletions
50
docs-shopify.dev/commands/interfaces/app-bulk-status.interface.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| // This is an autogenerated file. Don't edit this file manually. | ||
| export interface appbulkstatus { | ||
| /** | ||
| * The Client ID of your app. | ||
| * @environment SHOPIFY_FLAG_CLIENT_ID | ||
| */ | ||
| '--client-id <value>'?: string | ||
|
|
||
| /** | ||
| * The name of the app configuration. | ||
| * @environment SHOPIFY_FLAG_APP_CONFIG | ||
| */ | ||
| '-c, --config <value>'?: string | ||
|
|
||
| /** | ||
| * The bulk operation ID (numeric ID or full GID). If not provided, lists all bulk operations belonging to this app on this store in the last 7 days. | ||
| * @environment SHOPIFY_FLAG_ID | ||
| */ | ||
| '--id <value>'?: string | ||
|
|
||
| /** | ||
| * Disable color output. | ||
| * @environment SHOPIFY_FLAG_NO_COLOR | ||
| */ | ||
| '--no-color'?: '' | ||
|
|
||
| /** | ||
| * The path to your app directory. | ||
| * @environment SHOPIFY_FLAG_PATH | ||
| */ | ||
| '--path <value>'?: string | ||
|
|
||
| /** | ||
| * Reset all your settings. | ||
| * @environment SHOPIFY_FLAG_RESET | ||
| */ | ||
| '--reset'?: '' | ||
|
|
||
| /** | ||
| * The store domain. Must be an existing dev store. | ||
| * @environment SHOPIFY_FLAG_STORE | ||
| */ | ||
| '-s, --store <value>'?: string | ||
|
|
||
| /** | ||
| * Increase the verbosity of the output. | ||
| * @environment SHOPIFY_FLAG_VERBOSE | ||
| */ | ||
| '--verbose'?: '' | ||
| } |
80 changes: 80 additions & 0 deletions
80
docs-shopify.dev/commands/interfaces/app-execute.interface.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,80 @@ | ||
| // This is an autogenerated file. Don't edit this file manually. | ||
| export interface appexecute { | ||
| /** | ||
| * The Client ID of your app. | ||
| * @environment SHOPIFY_FLAG_CLIENT_ID | ||
| */ | ||
| '--client-id <value>'?: string | ||
|
|
||
| /** | ||
| * The name of the app configuration. | ||
| * @environment SHOPIFY_FLAG_APP_CONFIG | ||
| */ | ||
| '-c, --config <value>'?: string | ||
|
|
||
| /** | ||
| * Disable color output. | ||
| * @environment SHOPIFY_FLAG_NO_COLOR | ||
| */ | ||
| '--no-color'?: '' | ||
|
|
||
| /** | ||
| * The file name where results should be written, instead of STDOUT. | ||
| * @environment SHOPIFY_FLAG_OUTPUT_FILE | ||
| */ | ||
| '--output-file <value>'?: string | ||
|
|
||
| /** | ||
| * The path to your app directory. | ||
| * @environment SHOPIFY_FLAG_PATH | ||
| */ | ||
| '--path <value>'?: string | ||
|
|
||
| /** | ||
| * The GraphQL query or mutation, as a string. | ||
| * @environment SHOPIFY_FLAG_QUERY | ||
| */ | ||
| '-q, --query <value>'?: string | ||
|
|
||
| /** | ||
| * Path to a file containing the GraphQL query or mutation. Can't be used with --query. | ||
| * @environment SHOPIFY_FLAG_QUERY_FILE | ||
| */ | ||
| '--query-file <value>'?: string | ||
|
|
||
| /** | ||
| * Reset all your settings. | ||
| * @environment SHOPIFY_FLAG_RESET | ||
| */ | ||
| '--reset'?: '' | ||
|
|
||
| /** | ||
| * The myshopify.com domain of the store to execute against. The app must be installed on the store. If not specified, you will be prompted to select a store. | ||
| * @environment SHOPIFY_FLAG_STORE | ||
| */ | ||
| '-s, --store <value>'?: string | ||
|
|
||
| /** | ||
| * Path to a file containing GraphQL variables in JSON format. Can't be used with --variables. | ||
| * @environment SHOPIFY_FLAG_VARIABLE_FILE | ||
| */ | ||
| '--variable-file <value>'?: string | ||
|
|
||
| /** | ||
| * The values for any GraphQL variables in your query or mutation, in JSON format. | ||
| * @environment SHOPIFY_FLAG_VARIABLES | ||
| */ | ||
| '-v, --variables <value>'?: string | ||
|
|
||
| /** | ||
| * Increase the verbosity of the output. | ||
| * @environment SHOPIFY_FLAG_VERBOSE | ||
| */ | ||
| '--verbose'?: '' | ||
|
|
||
| /** | ||
| * The API version to use for the query or mutation. Defaults to the latest stable version. | ||
| * @environment SHOPIFY_FLAG_VERSION | ||
| */ | ||
| '--version <value>'?: string | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we also mention
app bulk status?