Skip to content
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

Suggest npx over npm init #13637

Merged
merged 3 commits into from
Jun 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ Deploy the example using [Vercel](https://vercel.com/now):
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:

```bash
npm init next-app --example DIRECTORY_NAME DIRECTORY_NAME-app
npx create-next-app --example DIRECTORY_NAME DIRECTORY_NAME-app
# or
yarn create next-app --example DIRECTORY_NAME DIRECTORY_NAME-app
```
Expand Down
2 changes: 1 addition & 1 deletion examples/active-class-name/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Deploy the example using [Vercel](https://vercel.com):
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:

```bash
npm init next-app --example active-class-name active-class-name-app
npx create-next-app --example active-class-name active-class-name-app
# or
yarn create next-app --example active-class-name active-class-name-app
```
Expand Down
2 changes: 1 addition & 1 deletion examples/amp-first/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Deploy the example using [Vercel](https://vercel.com):
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:

```bash
npm init next-app --example amp-first amp-first-app
npx create-next-app --example amp-first amp-first-app
# or
yarn create next-app --example amp-first amp-first-app
```
Expand Down
2 changes: 1 addition & 1 deletion examples/amp-story/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Deploy the example using [Vercel](https://vercel.com):
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:

```bash
npm init next-app --example amp-story amp-app
npx create-next-app --example amp-story amp-app
# or
yarn create next-app --example amp-story amp-app
```
Expand Down
2 changes: 1 addition & 1 deletion examples/amp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Deploy the example using [Vercel](https://vercel.com):
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:

```bash
npm init next-app --example amp amp-app
npx create-next-app --example amp amp-app
# or
yarn create next-app --example amp amp-app
```
Expand Down
2 changes: 1 addition & 1 deletion examples/analyze-bundles/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Deploy the example using [Vercel](https://vercel.com):
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:

```bash
npm init next-app --example analyze-bundles analyze-bundles-app
npx create-next-app --example analyze-bundles analyze-bundles-app
# or
yarn create next-app --example analyze-bundles analyze-bundles-app
```
Expand Down
2 changes: 1 addition & 1 deletion examples/api-routes-apollo-server-and-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ https://www.apollographql.com/docs/react/api/react-ssr/#getdatafromtree
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:

```bash
npm init next-app --example api-routes-apollo-server-and-client api-routes-apollo-server-and-client-app
npx create-next-app --example api-routes-apollo-server-and-client api-routes-apollo-server-and-client-app
# or
yarn create next-app --example api-routes-apollo-server-and-client api-routes-apollo-server-and-client-app
```
Expand Down
2 changes: 1 addition & 1 deletion examples/api-routes-apollo-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Deploy the example using [Vercel](https://vercel.com):
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:

```bash
npm init next-app --example api-routes-apollo-server api-routes-apollo-server-app
npx create-next-app --example api-routes-apollo-server api-routes-apollo-server-app
# or
yarn create next-app --example api-routes-apollo-server api-routes-apollo-server-app
```
Expand Down
2 changes: 1 addition & 1 deletion examples/api-routes-cors/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Deploy the example using [Vercel](https://vercel.com):
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:

```bash
npm init next-app --example api-routes-cors api-routes-cors-app
npx create-next-app --example api-routes-cors api-routes-cors-app
# or
yarn create next-app --example api-routes-cors api-routes-cors-app
```
Expand Down
2 changes: 1 addition & 1 deletion examples/api-routes-graphql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Deploy the example using [Vercel](https://vercel.com):
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:

```bash
npm init next-app --example api-routes-graphql api-routes-graphql-app
npx create-next-app --example api-routes-graphql api-routes-graphql-app
# or
yarn create next-app --example api-routes-graphql api-routes-graphql-app
```
Expand Down
2 changes: 1 addition & 1 deletion examples/api-routes-middleware/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Deploy the example using [Vercel](https://vercel.com):
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:

```bash
npm init next-app --example api-routes-middleware api-routes-middleware-app
npx create-next-app --example api-routes-middleware api-routes-middleware-app
# or
yarn create next-app --example api-routes-middleware api-routes-middleware-app
```
Expand Down
2 changes: 1 addition & 1 deletion examples/api-routes-rest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Deploy the example using [Vercel](https://vercel.com):
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:

```bash
npm init next-app --example api-routes-rest api-routes-rest-app
npx create-next-app --example api-routes-rest api-routes-rest-app
# or
yarn create next-app --example api-routes-rest api-routes-rest-app
```
Expand Down
2 changes: 1 addition & 1 deletion examples/api-routes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Deploy the example using [Vercel](https://vercel.com):
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:

```bash
npm init next-app --example api-routes api-routes-app
npx create-next-app --example api-routes api-routes-app
# or
yarn create next-app --example api-routes api-routes-app
```
Expand Down
2 changes: 1 addition & 1 deletion examples/auth0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Read more: [https://auth0.com/blog/ultimate-guide-nextjs-authentication-auth0/](
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:

```bash
npm init next-app --example auth0 auth0
npx create-next-app --example auth0 auth0
# or
yarn create next-app --example auth0 auth0
```
Expand Down
2 changes: 1 addition & 1 deletion examples/basic-css/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Deploy the example using [Vercel](https://vercel.com):
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:

```bash
npm init next-app --example basic-css basic-css-app
npx create-next-app --example basic-css basic-css-app
# or
yarn create next-app --example basic-css basic-css-app
```
Expand Down
2 changes: 1 addition & 1 deletion examples/basic-export/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Deploy the example using [Vercel](https://vercel.com):
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:

```bash
npm init next-app --example basic-export basic-export-app
npx create-next-app --example basic-export basic-export-app
# or
yarn create next-app --example basic-export basic-export-app
```
Expand Down
2 changes: 1 addition & 1 deletion examples/blog-starter-typescript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ To create the blog posts we use [`remark`](https://github.com/remarkjs/remark) a
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:

```bash
npm init next-app --example blog-starter-typescript blog-starter-typescript-app
npx create-next-app --example blog-starter-typescript blog-starter-typescript-app
# or
yarn create next-app --example blog-starter-typescript blog-starter-typescript-app
```
Expand Down
2 changes: 1 addition & 1 deletion examples/blog-starter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ To create the blog posts we use [`remark`](https://github.com/remarkjs/remark) a
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:

```bash
npm init next-app --example blog-starter blog-starter-app
npx create-next-app --example blog-starter blog-starter-app
# or
yarn create next-app --example blog-starter blog-starter-app
```
Expand Down
2 changes: 1 addition & 1 deletion examples/catch-all-routes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Deploy the example using [Vercel](https://vercel.com):
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:

```bash
npm init next-app --example catch-all-routes catch-all-routes-app
npx create-next-app --example catch-all-routes catch-all-routes-app
# or
yarn create next-app --example catch-all-routes catch-all-routes-app
```
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-contentful/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ This example showcases Next.js's [Static Generation](/docs/basic-features/pages.
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:

```bash
npm init next-app --example cms-contentful cms-contentful-app
npx create-next-app --example cms-contentful cms-contentful-app
# or
yarn create next-app --example cms-contentful cms-contentful-app
```
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-datocms/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ This example showcases Next.js's [Static Generation](https://nextjs.org/docs/bas
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:

```bash
npm init next-app --example cms-datocms cms-datocms-app
npx create-next-app --example cms-datocms cms-datocms-app
# or
yarn create next-app --example cms-datocms cms-datocms-app
```
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-prismic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ This example showcases Next.js's [Static Generation](/docs/basic-features/pages.
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:

```bash
npm init next-app --example cms-prismic cms-prismic-app
npx create-next-app --example cms-prismic cms-prismic-app
# or
yarn create next-app --example cms-prismic cms-prismic-app
```
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-sanity/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ This example showcases Next.js's [Static Generation](https://nextjs.org/docs/bas
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:

```bash
npm init next-app --example cms-sanity cms-sanity-app
npx create-next-app --example cms-sanity cms-sanity-app
# or
yarn create next-app --example cms-sanity cms-sanity-app
```
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-takeshape/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ This example showcases Next.js's [Static Generation](https://nextjs.org/docs/bas
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:

```bash
npm init next-app --example cms-takeshape cms-takeshape-app
npx create-next-app --example cms-takeshape cms-takeshape-app
# or
yarn create next-app --example cms-takeshape cms-takeshape-app
```
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-server-actionhero/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ A more detailed example showcasing how to use fetch and web sockets to interact
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:

```bash
npm init next-app --example custom-server-actionhero custom-server-actionhero-app
npx create-next-app --example custom-server-actionhero custom-server-actionhero-app
# or
yarn create next-app --example custom-server-actionhero custom-server-actionhero-app
```
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-server-express/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The example shows a server that serves the component living in `pages/a.js` when
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:

```bash
npm init next-app --example custom-server-express custom-server-express-app
npx create-next-app --example custom-server-express custom-server-express-app
# or
yarn create next-app --example custom-server-express custom-server-express-app
```
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-server-fastify/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The example shows a server that serves the component living in `pages/a.js` when
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:

```bash
npm init next-app --example custom-server-fastify custom-server-fastify-app
npx create-next-app --example custom-server-fastify custom-server-fastify-app
# or
yarn create next-app --example custom-server-fastify custom-server-fastify-app
```
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-server-hapi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The example shows a server that serves the component living in `pages/a.js` when
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:

```bash
npm init next-app --example custom-server-hapi custom-server-hapi-app
npx create-next-app --example custom-server-hapi custom-server-hapi-app
# or
yarn create next-app --example custom-server-hapi custom-server-hapi-app
```
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-server-koa/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The example shows a server that serves the component living in `pages/a.js` when
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:

```bash
npm init next-app --example custom-server-koa custom-server-koa-app
npx create-next-app --example custom-server-koa custom-server-koa-app
# or
yarn create next-app --example custom-server-koa custom-server-koa-app
```
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-server-polka/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The example shows a server that serves the component living in `pages/a.js` when
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:

```bash
npm init next-app --example custom-server-polka custom-server-polka-app
npx create-next-app --example custom-server-polka custom-server-polka-app
# or
yarn create next-app --example custom-server-polka custom-server-polka-app
```
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-server-typescript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The second directory should be added to `.gitignore`.
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:

```bash
npm init next-app --example custom-server-typescript custom-server-typescript-app
npx create-next-app --example custom-server-typescript custom-server-typescript-app
# or
yarn create next-app --example custom-server-typescript custom-server-typescript-app
```
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The example shows a server that serves the component living in `pages/a.js` when
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:

```bash
npm init next-app --example custom-server custom-server-app
npx create-next-app --example custom-server custom-server-app
# or
yarn create next-app --example custom-server custom-server-app
```
Expand Down
2 changes: 1 addition & 1 deletion examples/data-fetch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Deploy the example using [Vercel](https://vercel.com):
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:

```bash
npm init next-app --example data-fetch data-fetch-app
npx create-next-app --example data-fetch data-fetch-app
# or
yarn create next-app --example data-fetch data-fetch-app
```
Expand Down
2 changes: 1 addition & 1 deletion examples/dynamic-routing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Deploy the example using [Vercel](https://vercel.com):
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:

```bash
npm init next-app --example dynamic-routing dynamic-routing-app
npx create-next-app --example dynamic-routing dynamic-routing-app
# or
yarn create next-app --example dynamic-routing dynamic-routing-app
```
Expand Down
2 changes: 1 addition & 1 deletion examples/gh-pages/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This example shows the most basic idea behind Next. We have 2 pages: `pages/inde
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:

```bash
npm init next-app --example gh-pages gh-pages-app
npx create-next-app --example gh-pages gh-pages-app
# or
yarn create next-app --example gh-pages gh-pages-app
```
Expand Down
2 changes: 1 addition & 1 deletion examples/head-elements/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Deploy the example using [Vercel](https://vercel.com):
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:

```bash
npm init next-app --example head-elements head-elements-app
npx create-next-app --example head-elements head-elements-app
# or
yarn create next-app --example head-elements head-elements-app
```
Expand Down
2 changes: 1 addition & 1 deletion examples/hello-world/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Deploy the example using [Vercel](https://vercel.com):
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:

```bash
npm init next-app --example hello-world hello-world-app
npx create-next-app --example hello-world hello-world-app
# or
yarn create next-app --example hello-world hello-world-app
```
Expand Down
2 changes: 1 addition & 1 deletion examples/layout-component/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Deploy the example using [Vercel](https://vercel.com):
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:

```bash
npm init next-app --example layout-component layout-component-app
npx create-next-app --example layout-component layout-component-app
# or
yarn create next-app --example layout-component layout-component-app
```
Expand Down
Loading