Skip to content

Commit 71f0d4f

Browse files
authored
Merge pull request #6422 from Shopify/09-23-update_app_dev_documentation
Update app dev documentation
2 parents 9bad9e7 + 52eb35a commit 71f0d4f

File tree

5 files changed

+7
-88
lines changed

5 files changed

+7
-88
lines changed

docs-shopify.dev/commands/app-dev.doc.ts

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,7 @@ import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs'
33

44
const data: ReferenceEntityTemplateSchema = {
55
name: 'app dev',
6-
description: `[Builds the app](/docs/api/shopify-cli/app/app-build) and lets you preview it on a [development store](/docs/apps/tools/development-stores) or [Plus sandbox store](https://help.shopify.com/partners/dashboard/managing-stores/plus-sandbox-store).
7-
8-
> Note: Development store preview of extension drafts is not supported for Plus sandbox stores. You must \`deploy\` your app.
9-
10-
To preview your app on a development store or Plus sandbox store, Shopify CLI walks you through the following steps. If you've run \`dev\` before, then your settings are saved and some of these steps are skipped. You can reset these configurations using \`dev --reset\` to go through all of them again:
11-
12-
- Associating your project with an app associated with your Partner account or organization, or creating a new app.
13-
- Selecting a development store or Plus sandbox store to use for testing. If you have only one store, then it's selected automatically.
14-
- Installing your app on the store using the provided install link.
15-
- Creating a tunnel between your local environment and the store using Cloudflare.
16-
17-
You can use your own tunneling software instead, by passing your tunnel URL with the \`--tunnel-url\` flag.
18-
- Updating the app URLs that are set in the Partner Dashboard.
19-
20-
To avoid overwriting any URLs that are already set, select the No, never option. If you select this option, then you're provided with URLs that you can manually add in the Partner Dashboard so you can preview your app.
21-
22-
- Enabling development store preview for extensions.
23-
- Serving [GraphiQL for the Admin API](/docs/apps/tools/graphiql-admin-api#use-a-local-graphiql-instance) using your app's credentials and access scopes.
24-
- Building and serving your app and app extensions.
25-
26-
If you're using the Ruby app template, then you need to complete the following steps outlined in the [README](https://github.com/Shopify/shopify-app-template-ruby#setting-up-your-rails-app) before you can preview your app for the first time.
27-
28-
> Caution: To use a development store or Plus sandbox store with Shopify CLI, you need to be the store owner, or have a [staff account](https://help.shopify.com/manual/your-account/staff-accounts) on the store. Staff accounts are created automatically the first time you access a development store with your Partner staff account through the Partner Dashboard.
29-
`,
6+
description: `Builds and previews your app on a development store, and watches for changes. [Read more about testing apps locally](/docs/apps/build/cli-for-apps/test-apps-locally).`,
307
overviewPreviewDescription: `Run the app.`,
318
type: 'command',
329
isVisualComponent: false,

docs-shopify.dev/generated/generated_docs_data.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@
524524
},
525525
{
526526
"name": "app dev",
527-
"description": "[Builds the app](/docs/api/shopify-cli/app/app-build) and lets you preview it on a [development store](/docs/apps/tools/development-stores) or [Plus sandbox store](https://help.shopify.com/partners/dashboard/managing-stores/plus-sandbox-store).\n\n> Note: Development store preview of extension drafts is not supported for Plus sandbox stores. You must `deploy` your app.\n\n To preview your app on a development store or Plus sandbox store, Shopify CLI walks you through the following steps. If you've run `dev` before, then your settings are saved and some of these steps are skipped. You can reset these configurations using `dev --reset` to go through all of them again:\n\n- Associating your project with an app associated with your Partner account or organization, or creating a new app.\n- Selecting a development store or Plus sandbox store to use for testing. If you have only one store, then it's selected automatically.\n- Installing your app on the store using the provided install link.\n- Creating a tunnel between your local environment and the store using Cloudflare.\n\n You can use your own tunneling software instead, by passing your tunnel URL with the `--tunnel-url` flag.\n- Updating the app URLs that are set in the Partner Dashboard.\n\n To avoid overwriting any URLs that are already set, select the No, never option. If you select this option, then you're provided with URLs that you can manually add in the Partner Dashboard so you can preview your app.\n\n- Enabling development store preview for extensions.\n- Serving [GraphiQL for the Admin API](/docs/apps/tools/graphiql-admin-api#use-a-local-graphiql-instance) using your app's credentials and access scopes.\n- Building and serving your app and app extensions.\n\nIf you're using the Ruby app template, then you need to complete the following steps outlined in the [README](https://github.com/Shopify/shopify-app-template-ruby#setting-up-your-rails-app) before you can preview your app for the first time.\n\n> Caution: To use a development store or Plus sandbox store with Shopify CLI, you need to be the store owner, or have a [staff account](https://help.shopify.com/manual/your-account/staff-accounts) on the store. Staff accounts are created automatically the first time you access a development store with your Partner staff account through the Partner Dashboard.\n",
527+
"description": "Builds and previews your app on a development store, and watches for changes. [Read more about testing apps locally](/docs/apps/build/cli-for-apps/test-apps-locally).",
528528
"overviewPreviewDescription": "Run the app.",
529529
"type": "command",
530530
"isVisualComponent": false,

packages/app/src/cli/commands/app/dev.ts

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -14,30 +14,7 @@ import {addPublicMetadata} from '@shopify/cli-kit/node/metadata'
1414
export default class Dev extends AppLinkedCommand {
1515
static summary = 'Run the app.'
1616

17-
static descriptionWithMarkdown = `[Builds the app](https://shopify.dev/docs/api/shopify-cli/app/app-build) and lets you preview it on a [development store](https://shopify.dev/docs/apps/tools/development-stores) or [Plus sandbox store](https://help.shopify.com/partners/dashboard/managing-stores/plus-sandbox-store).
18-
19-
> Note: Development store preview of extension drafts is not supported for Plus sandbox stores. You must \`deploy\` your app.
20-
21-
To preview your app on a development store or Plus sandbox store, Shopify CLI walks you through the following steps. If you've run \`dev\` before, then your settings are saved and some of these steps are skipped. You can reset these configurations using \`dev --reset\` to go through all of them again:
22-
23-
- Associating your project with an app associated with your Partner account or organization, or creating a new app.
24-
- Selecting a development store or Plus sandbox store to use for testing. If you have only one store, then it's selected automatically.
25-
- Installing your app on the store using the provided install link.
26-
- Creating a tunnel between your local environment and the store using Cloudflare.
27-
28-
You can use your own tunneling software instead, by passing your tunnel URL with the \`--tunnel-url\` flag.
29-
- Updating the app URLs that are set in the Partner Dashboard.
30-
31-
To avoid overwriting any URLs that are already set, select the No, never option. If you select this option, then you're provided with URLs that you can manually add in the Partner Dashboard so you can preview your app.
32-
33-
- Enabling development store preview for extensions.
34-
- Serving [GraphiQL for the Admin API](https://shopify.dev/docs/apps/tools/graphiql-admin-api#use-a-local-graphiql-instance) using your app's credentials and access scopes.
35-
- Building and serving your app and app extensions.
36-
37-
If you're using the Ruby app template, then you need to complete the following steps outlined in the [README](https://github.com/Shopify/shopify-app-template-ruby#setting-up-your-rails-app) before you can preview your app for the first time.
38-
39-
> Caution: To use a development store or Plus sandbox store with Shopify CLI, you need to be the store owner, or have a [staff account](https://help.shopify.com/manual/your-account/staff-accounts) on the store. Staff accounts are created automatically the first time you access a development store with your Partner staff account through the Partner Dashboard.
40-
`
17+
static descriptionWithMarkdown = `Builds and previews your app on a development store, and watches for changes. [Read more about testing apps locally](https://shopify.dev/docs/apps/build/cli-for-apps/test-apps-locally).`
4118

4219
static description = this.descriptionWithoutMarkdown()
4320

packages/cli/README.md

Lines changed: 2 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -245,43 +245,8 @@ FLAGS
245245
DESCRIPTION
246246
Run the app.
247247
248-
"Builds the app" (https://shopify.dev/docs/api/shopify-cli/app/app-build) and lets you preview it on a "development
249-
store" (https://shopify.dev/docs/apps/tools/development-stores) or "Plus sandbox store"
250-
(https://help.shopify.com/partners/dashboard/managing-stores/plus-sandbox-store).
251-
252-
> Note: Development store preview of extension drafts is not supported for Plus sandbox stores. You must `deploy` your
253-
app.
254-
255-
To preview your app on a development store or Plus sandbox store, Shopify CLI walks you through the following steps.
256-
If you've run `dev` before, then your settings are saved and some of these steps are skipped. You can reset these
257-
configurations using `dev --reset` to go through all of them again:
258-
259-
- Associating your project with an app associated with your Partner account or organization, or creating a new app.
260-
- Selecting a development store or Plus sandbox store to use for testing. If you have only one store, then it's
261-
selected automatically.
262-
- Installing your app on the store using the provided install link.
263-
- Creating a tunnel between your local environment and the store using Cloudflare.
264-
265-
You can use your own tunneling software instead, by passing your tunnel URL with the `--tunnel-url` flag.
266-
- Updating the app URLs that are set in the Partner Dashboard.
267-
268-
To avoid overwriting any URLs that are already set, select the No, never option. If you select this option, then
269-
you're provided with URLs that you can manually add in the Partner Dashboard so you can preview your app.
270-
271-
- Enabling development store preview for extensions.
272-
- Serving "GraphiQL for the Admin API"
273-
(https://shopify.dev/docs/apps/tools/graphiql-admin-api#use-a-local-graphiql-instance) using your app's credentials
274-
and access scopes.
275-
- Building and serving your app and app extensions.
276-
277-
If you're using the Ruby app template, then you need to complete the following steps outlined in the "README"
278-
(https://github.com/Shopify/shopify-app-template-ruby#setting-up-your-rails-app) before you can preview your app for
279-
the first time.
280-
281-
> Caution: To use a development store or Plus sandbox store with Shopify CLI, you need to be the store owner, or have
282-
a "staff account" (https://help.shopify.com/manual/your-account/staff-accounts) on the store. Staff accounts are
283-
created automatically the first time you access a development store with your Partner staff account through the
284-
Partner Dashboard.
248+
Builds and previews your app on a development store, and watches for changes. "Read more about testing apps locally"
249+
(https://shopify.dev/docs/apps/build/cli-for-apps/test-apps-locally).
285250
```
286251

287252
## `shopify app dev clean`

packages/cli/oclif.manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,8 +396,8 @@
396396
"args": {
397397
},
398398
"customPluginName": "@shopify/app",
399-
"description": "\"Builds the app\" (https://shopify.dev/docs/api/shopify-cli/app/app-build) and lets you preview it on a \"development store\" (https://shopify.dev/docs/apps/tools/development-stores) or \"Plus sandbox store\" (https://help.shopify.com/partners/dashboard/managing-stores/plus-sandbox-store).\n\n> Note: Development store preview of extension drafts is not supported for Plus sandbox stores. You must `deploy` your app.\n\n To preview your app on a development store or Plus sandbox store, Shopify CLI walks you through the following steps. If you've run `dev` before, then your settings are saved and some of these steps are skipped. You can reset these configurations using `dev --reset` to go through all of them again:\n\n- Associating your project with an app associated with your Partner account or organization, or creating a new app.\n- Selecting a development store or Plus sandbox store to use for testing. If you have only one store, then it's selected automatically.\n- Installing your app on the store using the provided install link.\n- Creating a tunnel between your local environment and the store using Cloudflare.\n\n You can use your own tunneling software instead, by passing your tunnel URL with the `--tunnel-url` flag.\n- Updating the app URLs that are set in the Partner Dashboard.\n\n To avoid overwriting any URLs that are already set, select the No, never option. If you select this option, then you're provided with URLs that you can manually add in the Partner Dashboard so you can preview your app.\n\n- Enabling development store preview for extensions.\n- Serving \"GraphiQL for the Admin API\" (https://shopify.dev/docs/apps/tools/graphiql-admin-api#use-a-local-graphiql-instance) using your app's credentials and access scopes.\n- Building and serving your app and app extensions.\n\nIf you're using the Ruby app template, then you need to complete the following steps outlined in the \"README\" (https://github.com/Shopify/shopify-app-template-ruby#setting-up-your-rails-app) before you can preview your app for the first time.\n\n> Caution: To use a development store or Plus sandbox store with Shopify CLI, you need to be the store owner, or have a \"staff account\" (https://help.shopify.com/manual/your-account/staff-accounts) on the store. Staff accounts are created automatically the first time you access a development store with your Partner staff account through the Partner Dashboard.\n",
400-
"descriptionWithMarkdown": "[Builds the app](https://shopify.dev/docs/api/shopify-cli/app/app-build) and lets you preview it on a [development store](https://shopify.dev/docs/apps/tools/development-stores) or [Plus sandbox store](https://help.shopify.com/partners/dashboard/managing-stores/plus-sandbox-store).\n\n> Note: Development store preview of extension drafts is not supported for Plus sandbox stores. You must `deploy` your app.\n\n To preview your app on a development store or Plus sandbox store, Shopify CLI walks you through the following steps. If you've run `dev` before, then your settings are saved and some of these steps are skipped. You can reset these configurations using `dev --reset` to go through all of them again:\n\n- Associating your project with an app associated with your Partner account or organization, or creating a new app.\n- Selecting a development store or Plus sandbox store to use for testing. If you have only one store, then it's selected automatically.\n- Installing your app on the store using the provided install link.\n- Creating a tunnel between your local environment and the store using Cloudflare.\n\n You can use your own tunneling software instead, by passing your tunnel URL with the `--tunnel-url` flag.\n- Updating the app URLs that are set in the Partner Dashboard.\n\n To avoid overwriting any URLs that are already set, select the No, never option. If you select this option, then you're provided with URLs that you can manually add in the Partner Dashboard so you can preview your app.\n\n- Enabling development store preview for extensions.\n- Serving [GraphiQL for the Admin API](https://shopify.dev/docs/apps/tools/graphiql-admin-api#use-a-local-graphiql-instance) using your app's credentials and access scopes.\n- Building and serving your app and app extensions.\n\nIf you're using the Ruby app template, then you need to complete the following steps outlined in the [README](https://github.com/Shopify/shopify-app-template-ruby#setting-up-your-rails-app) before you can preview your app for the first time.\n\n> Caution: To use a development store or Plus sandbox store with Shopify CLI, you need to be the store owner, or have a [staff account](https://help.shopify.com/manual/your-account/staff-accounts) on the store. Staff accounts are created automatically the first time you access a development store with your Partner staff account through the Partner Dashboard.\n",
399+
"description": "Builds and previews your app on a development store, and watches for changes. \"Read more about testing apps locally\" (https://shopify.dev/docs/apps/build/cli-for-apps/test-apps-locally).",
400+
"descriptionWithMarkdown": "Builds and previews your app on a development store, and watches for changes. [Read more about testing apps locally](https://shopify.dev/docs/apps/build/cli-for-apps/test-apps-locally).",
401401
"flags": {
402402
"api-key": {
403403
"description": "The API key of your app.",

0 commit comments

Comments
 (0)