create-gatsby

3.13.1 • Public • Published

create-gatsby

Create Gatsby apps in an interactive CLI experience that does the plumbing for you.

Quick Overview

Create a new Gatsby app by running the following command:

npm init gatsby

or

yarn create gatsby

It will ask you questions about what you're building, and set up a Gatsby project for you.

Note: This package is different from gatsby-cli, it is intended solely to create new sites.

Options

If you'd like to set up a minimal site without answering any prompts you can run the following command, including your chosen site directory.

npm init gatsby -y <site-directory>

Working on create-gatsby locally?

If you're making changes to the create-gatsby package, you can follow the steps below to test out your changes locally:

# Move into the monorepo
cd <path-to-gatsby-monorepo>

# Install dependencies and build the package
yarn bootstrap

# Run the create-gatsby script
node packages/create-gatsby/cli.js

Note that if you use the bootstrap script, you'll have to rebuild after each change. Alternatively, you can use the watch script to automatically rebuild after local changes:

# Move into the monorepo
cd <path-to-gatsby-monorepo>

# Install dependencies and build the package
yarn bootstrap

# Watch changes
yarn watch --scope=create-gatsby

Open another terminal window and go to a folder where you can easily delete the test projects:

cd <path-to-playground>

# Run the create-gatsby script
node <some-path>/packages/create-gatsby/cli.js

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.0-image-helpers.131image-helpers
2.9.0-alpha-image-cdn.390image-cdn
2.8.0-alpha-image-service.260image-service
2.6.0-alpha-ts-jit.260alpha-ts-jit
2.25.0-alpha-image-cdn-pathprefix.480image-cdn-pathprefix
2.23.0-alpha-9689ff.250alpha-9689ff
2.18.0-alpha-mdx-v2.680alpha-mdx-v2
2.18.0-alpha-image-cdn-jobs-resolve.320image-cdn-jobs-resolve
2.15.0-alpha-wp-image-cdn-auth.460wp-image-cdn-auth
1.14.0-alpha-qe-sm.460alpha-qe-sm
1.0.0-v3rc.20v3rc
0.2.0-create-gatsby.20create-gatsby
3.13.1103,579latest
2.25.039,425latest-v4
1.15.016,826latest-v3
3.14.0-next.2972next
2.5.0-alpha-trailing-slash.712alpha-trailing-slash
2.24.1-alpha-wordpress-image-err.272wordpress-image-err
2.14.0-alpha-transformer-json.262alpha-transformer-json
2.11.0-alpha-luda.302luda
3.9.0-alpha-cg-tailwind.231alpha-cg-tailwind
3.0.0-alpha-v5.d20221012t101120.571alpha-v5
3.0.0-alpha-drupal-proxyurl.141drupal-proxyurl
2.23.0-alpha-preview-gh-api.261preview-gh-api
2.23.0-alpha-image-cdn-enc.401image-cdn-enc
2.23.0-alpha-a5-peer.701alpha-a5-peer
2.20.0-mdxv4-rc.651mdxv4-rc
2.18.0-alpha-drupal-self-reference.181drupal-self-reference
2.17.0-alpha-drupal-image-404.121drupal-image-404
2.16.0-alpha-image-cdn-caching.91image-cdn-caching
2.13.0-alpha-image-cdn-telemetry.291image-cdn-telemetry
3.9.0-image-cdn-configurable.40image-cdn-configurable
3.13.0-alpha-alt-image-cdn.440alt-image-cdn

Version History

VersionDownloads (Last 7 Days)Published
3.13.1103,579
3.14.0-next.2972
3.14.0-next.12
3.13.05,662
3.14.0-next.01
3.13.0-next.1454
3.13.0-alpha-alt-image-cdn.440
3.12.33,182
3.12.21,296
3.12.1709
3.12.03,463
3.13.0-next.04
3.12.0-next.11
3.11.05,476
3.12.0-next.00
3.11.0-next.11
3.10.01,765
3.11.0-next.00
3.9.0-alpha-cg-tailwind.231
3.10.0-next.21
3.10.0-next.10
3.9.0688
3.10.0-next.01
3.9.0-image-cdn-configurable.40
3.9.0-next.22
3.9.0-next.10
3.8.01,088
3.9.0-next.02
3.7.03,145
3.8.0-next.01
3.6.0180
3.7.0-next.01
3.6.0-next.11
3.5.0481
3.6.0-next.00
3.5.0-next.10
3.4.0355
3.5.0-next.01
3.4.0-next.20
3.3.1497
3.4.0-next.11
3.3.01
3.4.0-next.01
1.15.016,826
2.25.039,425
3.3.0-next.31
3.3.0-next.21
3.3.0-next.10
3.2.02,023
3.3.0-next.00
3.0.0-alpha-drupal-proxyurl.141
3.1.0238
3.2.0-next.01
2.24.1-alpha-wordpress-image-err.272
2.24.1-alpha-wordpress-image-err.261
2.24.1-alpha-wordpress-image-err.250
3.0.0230
3.1.0-next.00
3.0.0-next.416
3.0.0-next.30
3.0.0-next.21
3.0.0-next.10
2.14.0-alpha-transformer-json.262
3.0.0-next.00
3.0.0-alpha-v5.d20221012t101120.571
3.0.0-alpha-v5.d20221010t183635.511
2.25.0-alpha-image-cdn-pathprefix.480
2.25.0-alpha-image-cdn-pathprefix.470
3.0.0-alpha-v5.d20221007t081809.410
3.0.0-alpha-v5.d20221005t111511.350
3.0.0-alpha-v5.160
2.24.06,185
2.25.0-next.00
2.23.1954
2.24.0-next.20
2.24.0-next.10
2.23.0-alpha-image-cdn-enc.401
2.23.0-alpha-a5-peer.701
3.0.0-alpha-v5.261
2.23.0-alpha-image-cdn-enc.230
2.23.0276
2.23.0-alpha-preview-gh-api.261
2.22.1218
2.24.0-next.01
2.23.0-alpha-v5.261
2.23.0-alpha-9689ff.250
3.0.0-alpha-v5.250
3.0.0-alpha-v5.241
2.22.01,227
2.23.0-next.095
2.21.0759
2.22.0-next.2101
2.22.0-next.11
2.22.0-next.058
2.21.0-next.21
2.21.0-next.11
2.20.0472
2.21.0-next.00
2.20.0-mdxv4-rc.651
2.20.0-next.20
2.20.0-mdxv4-rc.601
2.18.0-mdxv4-rc.761
2.20.0-next.10
2.18.0-alpha-drupal-self-reference.181
2.19.0330
2.20.0-next.01
2.18.1446
2.18.0-mdxv4-rc.680
2.18.0-alpha-image-cdn-jobs-resolve.320
2.18.0317
2.19.0-next.20
2.19.0-next.10
2.19.0-next.01
2.18.0-alpha-mdx-v2.680
2.18.0-alpha-mdx-v2.661
2.18.0-alpha-mdx-v2.640
2.18.0-alpha-mdx-v2.631
2.18.0-next.11
2.17.03,517
2.18.0-next.00
2.17.0-next.10
2.17.0-alpha-drupal-image-404.121
2.16.0324
2.17.0-next.01
2.16.0-alpha-image-cdn-caching.91
2.15.167
2.16.0-next.10
2.15.0229
2.15.0-alpha-wp-image-cdn-auth.460
2.15.0-alpha-wp-image-cdn-auth.450
2.15.0-alpha-wp-image-cdn-auth.421
2.16.0-next.00
2.11.0-alpha-luda.302
2.15.0-next.21
2.14.0154
2.15.0-next.10
2.15.0-next.00
2.14.0-next.30
2.14.0-next.20
2.13.0419
2.14.0-next.11
2.14.0-next.01
2.13.0-alpha-image-cdn-telemetry.291
2.12.1121
2.12.02
2.13.0-next.01
2.12.0-next.40
2.11.253
2.12.0-next.31
2.12.0-next.20
2.11.134
2.12.0-next.11
2.11.029
2.12.0-next.01
2.11.0-next.30
2.10.2865
2.11.0-next.21
2.10.153
2.11.0-next.10
2.10.019
2.11.0-next.00
2.10.0-next.30
2.10.0-next.21
2.10.0-next.11
2.9.0276
2.10.0-next.01
2.9.0-alpha-image-cdn.390
2.9.0-alpha-image-cdn.540
2.9.0-next.11
2.9.0-alpha-image-cdn.490
2.9.0-alpha-image-cdn.371
2.9.0-alpha-image-cdn.320
2.9.0-alpha-image-cdn.361
2.8.0148
2.9.0-alpha-image-service2.140
2.9.0-next.00
2.8.0-next.21
2.8.0-alpha-image-service.451
2.8.0-alpha-image-service.260
2.8.0-alpha-image-service.251
2.8.0-alpha-image-service.241
2.8.0-alpha-image-service.230
2.8.0-alpha-image-service.200
2.8.0-alpha-image-service.171
2.8.0-alpha-image-service.150
2.8.0-alpha-image-service.190
2.8.0-alpha-image-service.181
2.8.0-alpha-image-service.160
2.7.0203
2.8.0-next.11
2.7.0-alpha-image-service.160
2.7.0-alpha-image-service.151
2.7.0-alpha-image-service.130
2.8.0-next.01
2.6.169
2.7.0-next.41
2.7.0-alpha-image-service.141
2.7.0-next.31
2.7.0-next.21
2.7.0-next.11
2.6.0406
2.6.0-alpha-ts-jit.260
2.7.0-next.01
2.5.0-alpha-trailing-slash.712
2.6.0-next.31
2.5.169
2.6.0-next.20
2.6.0-next.11
2.5.056
2.6.0-next.01
2.5.0-next.20
2.5.0-next.11
2.4.0637
2.5.0-next.01
2.4.0-next.11
2.3.0455
2.4.0-next.01
2.3.0-next.11
2.2.0415
2.3.0-next.01
2.2.0-next.21
2.1.1193
2.2.0-next.11
2.1.065
2.2.0-next.00
2.1.0-next.11
2.0.0870
2.1.0-next.01
2.0.0-zz-next.31
2.0.0-zz-next.21
1.14.08,412
2.0.0-zz-next.11
2.0.0-zz-next.81
2.0.0-next.11
2.0.0-next.01
2.0.0-alpha-9689ff.131
1.14.0-alpha-qe-sm.460
2.0.0-alpha-9689ff.361
2.0.0-alpha-9689ff.350
2.0.0-alpha-9689ff.341
2.0.0-alpha-9689ff.320
2.0.0-alpha-9689ff.241
2.0.0-alpha-9689ff.220
2.0.0-alpha-9689ff.171
2.0.0-alpha-9689ff.80
1.14.0-next.21
1.14.0-next.11
1.11.0-alpha-qe-sm.1081
1.13.0772
2.0.0-alpha-9689ff.51
1.14.0-next.01
1.11.0-alpha-qe-sm.861
1.11.0-alpha-qe-sm.850
1.11.0-alpha-qe-sm.831
1.13.0-next.11
2.0.0-alpha-9689ff.270
1.12.098
1.13.0-next.00
1.12.0-next.30
1.12.0-next.20
1.12.0-next.11
1.11.0169
1.12.0-next.00
1.10.0159
1.11.0-next.00
1.10.0-next.11
1.9.0168
1.10.0-next.00
1.9.0-next.10
1.8.0206
1.9.0-next.01
1.7.12,318
1.8.0-next.10
1.7.05
1.8.0-next.01
1.7.0-next.21
1.7.0-next.10
1.6.0601
1.7.0-next.01
1.5.0307
1.6.0-next.00
1.4.0422
1.5.0-next.01
1.3.0676
1.4.0-next.01
1.3.0-next.11
1.2.0137
1.3.0-next.01
1.2.0-next.11
1.1.0109
1.2.0-next.00
1.1.0-next.30
1.0.0355
1.0.0-v3rc.20
1.1.0-next.20
1.0.0-v3rc.10
1.0.0-v3rc.01
1.1.0-next.11
1.1.0-next.00
1.0.0-next.21
1.0.0-next.11
1.0.0-next.01
0.5.125,359
0.6.0-next.14
0.5.046
0.6.0-next.01
0.4.0182
0.5.0-next.01
0.4.0-next.11
0.3.01,143
0.4.0-next.00
0.3.0-next.42
0.3.0-next.30
0.2.1215
0.3.0-next.20
0.2.02
0.3.0-next.10
0.3.0-next.00
0.2.0-next.40
0.2.0-next.30
0.2.0-next.21
0.1.0308
0.2.0-next.10
0.2.0-create-gatsby.20
0.2.0-next.00
0.0.2111
0.1.0-next.21
0.0.0-image-helpers.131
0.1.0-next.10
0.0.124
0.1.0-next.00
0.0.0-next.00
0.0.0-101
0.0.0-90
0.0.0-81
0.0.0-71
0.0.0-create-gatsby.172241
0.0.0-create-gatsby.172231
0.0.0-create-gatsby.172221
0.0.0-create-gatsby.172211
0.0.0-create-gatsby.172201
0.0.0-60
0.0.0-50
0.0.0-40
0.0.0-create-gatsby.171200
0.0.0-create-gatsby.171140
0.0.0-create-gatsby.171131
0.0.0-20
0.0.0-10

Package Sidebar

Install

npm i create-gatsby

Weekly Downloads

255,401

Version

3.13.1

License

MIT

Unpacked Size

545 kB

Total Files

10

Last publish

Collaborators

  • mlgualtieri-gatsby
  • serhalp-netlify
  • kathmbeck
  • pieh
  • tylerbarnes
  • daniellewgatsby
  • wardpeet