{"name":"gatsby-cli","description":"Gatsby command-line interface for creating new sites and running Gatsby commands","version":"1.2.0-alpha.22c8a6f1","author":{"name":"Kyle Mathews","email":"mathews.kyle@gmail.com"},"bin":{"gatsby":"./index.js"},"dependencies":{"babel-runtime":"^6.25.0","commander":"^2.11.0","core-js":"^2.5.0","fs-extra":"^4.0.1","hosted-git-info":"^2.5.0","lodash":"^4.17.4","resolve-cwd":"^2.0.0","tracer":"^0.8.9"},"devDependencies":{"babel-cli":"^6.24.1"},"keywords":["gatsby"],"license":"MIT","main":"index.js","scripts":{"build":"babel src --out-dir . --ignore __tests__","watch":"babel -w src --out-dir . --ignore __tests__"},"_id":"gatsby-cli@1.2.0-alpha.22c8a6f1","_shasum":"ea68ab23c3d71e88a67e17856ef019ee941f43cc","_from":".","_npmVersion":"4.6.1","_nodeVersion":"8.1.2","_npmUser":{"name":"kylemathews","email":"mathews.kyle@gmail.com"},"dist":{"shasum":"ea68ab23c3d71e88a67e17856ef019ee941f43cc","tarball":"http://registry-npm.ywwl.com/gatsby-cli/download/gatsby-cli-1.2.0-alpha.22c8a6f1.tgz","integrity":"sha512-cfZq41v+fmqIJMHLUFmv6VrH5bY09SOiMU43q2KRamQgJyZSbrE0HCRSrsyJ4yvs7iIhz8Uyy5ShcApDso+E2g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQClE+sTpjKbKiRIU7YbJ+SN5MiXLgXDw/8EMa5Fc2s5wgIhAMBJJUFuBcDBopRlEBxg0Sgy2Pm1qizGUGl3D7b8kiOK"}],"size":8634,"noattachment":false,"key":"/gatsby-cli/-/gatsby-cli-1.2.0-alpha.22c8a6f1.tgz"},"maintainers":[{"name":"kylemathews","email":"mathews.kyle@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gatsby-cli-1.2.0-alpha.22c8a6f1.tgz_1503591127799_0.3238509146030992"},"directories":{},"readme":"# gatsby-cli\n\nThe Gatsby command line interface (CLI) is the main tool you use to initialize, build and develop Gatsby sites.\n\n## How to use gatsby-cli\n\nTo use the Gatsby CLI you must either:\n\n- Install it globally with `npm install -g gatsby-cli`, where you execute commands with the syntax `gatsby new`, or\n- Run commands directly with [`npx`](https://nodejs.dev/en/learn/the-npx-nodejs-package-runner/), where you execute commands with the syntax `npx gatsby new`\n\nUseful Gatsby CLI commands are also pre-defined in [starters](https://gatsbyjs.com/docs/starters/) as [run scripts](https://gatsbyjs.com/docs/glossary#run-script).\n\n## CLI Commands\n\nAll the following documentation is available in the tool by running `gatsby --help`.\n\nAvailable commands are:\n\n- [new](#new)\n- [develop](#develop)\n- [build](#build)\n- [serve](#serve)\n- [clean](#clean)\n- [info](#info)\n- [repl](#repl)\n\n### `new`\n\nRuns an interactive shell with a prompt that helps you set up a [CMS](https://gatsbyjs.com/docs/glossary#cms), styling system and plugins if you wish.\n\nTo create a new site with the prompt, execute:\n\n```shell\ngatsby new\n```\n\nYou can also skip the prompt and clone a starter directly from GitHub. For example, to clone a new [gatsby-starter-blog](https://github.com/gatsbyjs/gatsby-starter-blog), execute:\n\n```shell\ngatsby new my-new-blog https://github.com/gatsbyjs/gatsby-starter-blog\n```\n\nThe first argument (e.g. `my-new-blog`) is the name of your site, and the second argument is the GitHub URL of the starter you want to clone.\n\n> Note: The site name should only consist of letters and numbers. If you specify a `.`, `./` or a `<space>` in the name, `gatsby new` will throw an error.\n\n### `develop`\n\nCompiles and serves a development build of your site that reflects your source code changes in the browser in real time. Should be run from the root of your project.\n\n```shell\ngatsby develop\n```\n\nOptions include:\n\n| Option          | Description                                     |\n| --------------- | ----------------------------------------------- |\n| `-H`, `--host`  | Set host. Defaults to `localhost`               |\n| `-p`, `--port`  | Set port. Defaults to `env.PORT` or `8000`      |\n| `-o`, `--open`  | Open the site in your (default) browser for you |\n| `-S`, `--https` | Use HTTPS                                       |\n| `--inspect`     | Opens a port for debugging                      |\n\nTo set up HTTPS, follow the [Local HTTPS guide](https://gatsbyjs.com/docs/local-https/).\n\nTo include a URL you can access from other devices on the same network, execute:\n\n```shell\ngatsby develop -H 0.0.0.0\n```\n\nYou will see this output:\n\n```shell\nYou can now view gatsbyjs.com in the browser.\n⠀\n  Local:            http://0.0.0.0:8000/\n  On Your Network:  http://192.168.0.212:8000/ // highlight-line\n```\n\nYou can use the \"On Your Network\" URL to access your site within your network.\n\n### `build`\n\nCompiles your site for production so it can be deployed. Should be run from the root of your project.\n\n```shell\ngatsby build\n```\n\nOptions include:\n\n| Option                       | Description                                                                                                                                                      |\n| ---------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `--prefix-paths`             | Build site with link paths prefixed (set `pathPrefix` in your config)                                                                                            |\n| `--no-uglify`                | Build site without uglifying JS bundles (for debugging)                                                                                                          |\n| `--profile`                  | Build site with react profiling. See [Profiling Site Performance with React Profiler](https://gatsbyjs.com/docs/profiling-site-performance-with-react-profiler/) |\n| `--open-tracing-config-file` | Tracer configuration file (OpenTracing compatible). See [Performance Tracing](https://gatsbyjs.com/docs/performance-tracing/)                                    |\n| `--graphql-tracing`          | Trace (see above) every graphql resolver, may have performance implications.                                                                                     |\n| `--no-color`, `--no-colors`  | Disables colored terminal output                                                                                                                                 |\n\nIn addition to these build options, there are some optional [build environment variables](https://gatsbyjs.com/docs/how-to/local-development/environment-variables/#build-variables) for more advanced configurations that can adjust how a build runs. For example, setting `CI=true` as an environment variable will tailor output for [dumb terminals](https://en.wikipedia.org/wiki/Computer_terminal#Dumb_terminals).\n\n### `serve`\n\nServes the production build of your site for testing prior to deployment. Should be run from the root of your project.\n\n```shell\ngatsby serve\n```\n\nOptions include:\n\n| Option           | Description                                                                                    |\n| ---------------- | ---------------------------------------------------------------------------------------------- |\n| `-H`, `--host`   | Set host. Defaults to `localhost`                                                              |\n| `-p`, `--port`   | Set port. Defaults to `9000`                                                                   |\n| `-o`, `--open`   | Open the site in your default browser for you                                                  |\n| `--prefix-paths` | Serve site with link paths prefixed (if built with `pathPrefix` in your `gatsby-config` file). |\n\n### `info`\n\nShow helpful environment information which is required in bug reports. Should be run from the root of your project.\n\n```shell\ngatsby info\n```\n\nOptions include:\n\n| Option              | Description                                    |\n| ------------------- | ---------------------------------------------- |\n| `-C`, `--clipboard` | Copy environment information to your clipboard |\n\n### `clean`\n\nDelete the `.cache` and `public` directories. Should be run from the root of your project.\n\n```shell\ngatsby clean\n```\n\nThis is useful as a last resort when your local project seems to have issues or content does not seem to be refreshing. Issues this may fix commonly include:\n\n- Stale data, e.g. this file/resource/etc. isn't appearing\n- GraphQL error, e.g. this GraphQL resource should be present but is not\n- Dependency issues, e.g. invalid version, cryptic errors in console, etc.\n- Plugin issues, e.g. developing a local plugin and changes don't seem to be taking effect\n\n### `repl`\n\nOpen a Node.js REPL (interactive shell) with context of your Gatsby environment. Should be run from the root of your project.\n\n```shell\ngatsby repl\n```\n\nGatsby will prompt you to type in commands and explore. When it shows this: `gatsby >`, you can type in one of these commands to see their values in real time:\n\n- `babelrc`\n- `components`\n- `dataPaths`\n- `getNodes()`\n- `nodes`\n- `pages`\n- `schema`\n- `siteConfig`\n- `staticQueries`\n\nTo exit the REPL:\n\n- Press `Ctrl+C` or `Ctrl+D` twice, or\n- Type `.exit` and press `Enter`\n\nWhen combined with the [GraphQL explorer](https://gatsbyjs.com/docs/how-to/querying-data/running-queries-with-graphiql/), these REPL commands could be very helpful for understanding your Gatsby site's data.\n","publish_time":1503591127897,"_cnpm_publish_time":1503591127897,"dist-tags":{"alpha-9689ff":"4.23.0-alpha-9689ff.25","alpha-a5-peer":"4.23.0-alpha-a5-peer.70","alpha-adapters":"5.10.0-alpha-adapters.165","alpha-cg-tailwind":"5.9.0-alpha-cg-tailwind.23","alpha-job-progress":"4.2.0-alpha-jobs-progress.16","alpha-mdx-v2":"4.18.0-alpha-mdx-v2.68","alpha-ot-global-span":"4.2.0-alpha-ot-global-span.15","alpha-parallel":"3.2.0-alpha-parallel.28","alpha-parallel-query":"3.6.0-alpha-parallel-query.75","alpha-qe-sm":"3.14.0-alpha-qe-sm.46","alpha-react-profiling-env":"5.8.0-alpha-react-profiling-env.8","alpha-remote-fetch":"3.14.0-alpha-remote-fetch.79","alpha-remote-file":"3.10.0-alpha-remote-file.48","alpha-segfault-handler":"4.10.0-alpha-segfault-handler.12","alpha-sl-test-pieh":"4.23.0-alpha-sl-test-pieh.80","alpha-trailing-slash":"4.5.0-alpha-trailing-slash.71","alpha-transformer-json":"4.14.0-alpha-transformer-json.26","alpha-ts-aot":"4.7.0-alpha-ts-aot.33","alpha-ts-jit":"4.6.0-alpha-ts-jit.26","alpha-v5":"5.0.0-alpha-v5.d20221012t101120.57","alt-image-cdn":"5.13.0-alpha-alt-image-cdn.44","autotruncate-long-paths":"2.12.62-autotruncate-long-paths.31","berry-mdx":"2.8.28-berry-mdx.26","beta":"1.2.0-alphasldfjsljfd","canary":"2.11.4-alpha.53","cbp3":"3.0.0-cpb3.20","cli-postinstall":"2.7.41-cli-postinstall.73","cli-react-dom":"2.8.1-cli-react-dom.20","cli-react-from-ink":"2.8.30-cli-react-from-ink.158","cli-ts":"2.12.25-cli-ts.23","cli-ux":"2.11.18-cli-ux.2","clipboardy":"2.5.7-clipboardy.1","coreutils":"3.12.0-coreutils.29","create-gatsby":"2.16.0-create-gatsby.2","dev-ssr-2":"2.12.89-dev-ssr-2.60","drupal-image-404":"4.17.0-alpha-drupal-image-404.12","drupal-next":"3.14.0-drupal-next.94","drupal-proxyurl":"5.0.0-alpha-drupal-proxyurl.11","drupal-self-reference":"4.18.0-alpha-drupal-self-reference.18","error-codes":"2.6.8-error-codes.71","fix-wrong-success-set-status":"2.12.80-fix-wrong-success-set-status.1","functions-next":"3.4.0-functions-next.18","image-cdn":"4.9.0-alpha-image-cdn.39","image-cdn-caching":"4.16.0-alpha-image-cdn-caching.9","image-cdn-configurable":"5.9.0-image-cdn-configurable.4","image-cdn-enc":"4.23.0-alpha-image-cdn-enc.40","image-cdn-jobs-resolve":"4.18.0-alpha-image-cdn-jobs-resolve.32","image-cdn-pathprefix":"4.25.0-alpha-image-cdn-pathprefix.29","image-cdn-telemetry":"4.13.0-alpha-image-cdn-telemetry.29","image-service":"4.8.0-alpha-image-service.26","incbuild-collections":"2.12.88-incbuild-collections.5","ink":"2.5.9-ink.61","ink-compiled":"2.12.112-ink-compiled.24","ink-node6":"2.6.1-ink-node6.16","ink3":"2.12.69-ink3.23","jarmo":"2.7.25-jarmo.4","jsx-transform":"2.12.90-jsx-transform.5","latest":"5.16.0","latest-v2":"2.19.3","latest-v3":"3.15.0","latest-v4":"4.25.0","log-pending-activities":"2.12.80-log-pending-activities.0","luda":"4.11.0-alpha-luda.25","mdxv4-rc":"4.20.0-mdxv4-rc.65","next":"5.17.0-next.1","node-manifest":"3.5.0-alpha-node-manifest.73","otp-test":"2.7.41-otp-test.31","preview-gh-api":"4.23.0-alpha-preview-gh-api.26","preview-gh-api-2":"4.23.0-alpha-preview-gh-api-2.43","preview-gh-api-cli":"4.23.0-alpha-preview-gh-api-cli.43","preview-resiliancy":"3.14.0-preview-resiliancy.52","preview-slices":"4.25.0-alpha-preview-slices.d20221011t181843.56","process-develop":"2.6.13-process-develop.5","prompt-restart":"2.11.3-prompt-restart.96","react19":"5.17.0-react19.1","recipes":"2.11.4-recipes.53","recipes-renderer":"2.12.38-recipes-renderer.75","reporter-npm":"2.6.11-reporter-npm.8","state-machine":"2.10.14-state-machine.77","static-image":"2.12.100-static-image.22","structured-logs":"2.7.1-structured-logs.161","structured-logs-test":"2.7.1-structured-logs-test.128","stuck-diagnostics":"2.12.88-stuck-diagnostics.39","telemetry-test":"3.5.0-telemetry-test.296","telemetry-test2":"2.14.0-telemetry-test2.327","telemetry-testt":"2.12.100-telemetry-testt.461","unifiedroutes":"2.11.10-unifiedroutes.76","unifiedroutes-v2":"2.11.10-unifiedroutes-v2.135","v3rc":"3.0.0-v3rc.2","wordpress-image-err":"4.24.1-alpha-wordpress-image-err.27","wp-image-cdn-auth":"4.15.0-alpha-wp-image-cdn-auth.46"}}