diff --git a/docs/docs/gatsby-cli.md b/docs/docs/gatsby-cli.md index d9ea1dc..f3bcdbf 100644 --- a/docs/docs/gatsby-cli.md +++ b/docs/docs/gatsby-cli.md @@ -3,17 +3,17 @@ title: Commands (Gatsby CLI) tableOfContentsDepth: 2 --- -The Gatsby command line tool (CLI) is the main entry point for getting up and running with a Gatsby application and for using functionality including like running a development server and building out your Gatsby application for deployment. +एक Gatsby एप्लिकेशन को सुरु करने और चलने के लिए और डेवलपमेंट सर्वर चलाना और गैट्सबी एप्लीकेशन डिप्लॉयमेंट के लिए बनाना जैसे फंक्शनैलिटीज का इस्तेमाल करने के लिए Gatsby कमांड लाइन टूल (सीएलआई) एक मुख्य प्रवेश बिंदु है। -_We provide similar documentation available with the gatsby-cli [README](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-cli/README.md), and our [cheat sheet](/docs/cheat-sheet/) has all the top CLI commands ready to print out._ +_हम [रीडमी](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-cli/README.md) में gatsby-सीएलआई के जैसा डॉक्यूमेंटेशन देते हैं और हमारी [चीट शीट](/docs/cheat-sheet/) में सारी टॉप कमांड्स रहती है जो प्रिंट आउट के लिए तैयार है।_ -## How to use gatsby-cli +## gatsby-cli का उपयोग कैसे करें -The Gatsby CLI (`gatsby-cli`) is packaged as an executable that can be used globally. The Gatsby CLI is available via [npm](https://www.npmjs.com/) and should be installed globally by running `npm install -g gatsby-cli` to use it locally. +Gatsby सीएलआई (`gatsby-cli`) को एक्ज़ीक्यूटेबल के रूप में पैक किया जाता है जिसका ग्लोबली इस्तेमाल किया जा सकता है। Gatsby सीएलआई [npm](https://www.npmjs.com/) के माध्यम से उपलब्ध है और इसे स्थानीय स्तर पर उपयोग करने के लिए `npm install -g gatsby-cli` चलाकर ग्लोबली इनस्टॉल किया जाना चाहिए। -Run `gatsby --help` for full help. +पूरी मदद के लिए `gatsby --help` चलाएँ। -You can also use the `package.json` script variant of these commands, typically exposed _for you_ with most [starters](/docs/starters/). For example, if you want to make the [`gatsby develop`](#develop) command available in your application, open up `package.json` and add a script like so: +आप इन कमांड्स के `package.json` स्क्रिप्ट वैरिएंट्स का भी उपयोग कर सकते हैं, आमतौर पर ये _आपके लिए_ ज़्यादातर [starters](/docs/starters/) डॉक्स के साथ एक्सपोज्ड रहता है। उदाहरण के लिए, यदि आप अपने एप्लीकेशन में [`gatsby develop`](#develop) कमांड उपलब्ध कराना चाहते हैं, तो` package.json` खोलें और एक स्क्रिप्ट डालें: ```json:title=package.json { @@ -23,7 +23,7 @@ You can also use the `package.json` script variant of these commands, typically } ``` -## API commands +## API कमांड्स ### `new` @@ -31,30 +31,30 @@ You can also use the `package.json` script variant of these commands, typically gatsby new [ []] ``` -#### Arguments +#### तर्क -| Argument | Description | +| तर्क | विवरण | | ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| site-name | Your Gatsby site name, which is also used to create a project directory. | -| starter-url | A Gatsby starter URL or local file path. Defaults to [gatsby-starter-default](https://github.com/gatsbyjs/gatsby-starter-default); see the [Gatsby starters](/docs/gatsby-starters/) docs for more information. | +site-name | आपके Gatsby साइट का नाम, जिसका उपयोग प्रोजेक्ट डायरेक्टरी बनाने के लिए भी किया जाता है। | +| starter-url | एक Gatsby स्टार्टर URL या लोकल फाइल पाथ। डिफ़ॉल्ट रूप से [Gatsby-starter-default](https://github.com/gatsbyjs/gatsby-starter-default) और अधिक जानकारी के लिए [Gatsby starters](/docs/gatsby-starters/) डॉक्स को देखें। | -> Note: The `site-name` should only consist of letters and numbers. If you specify a `.`, `./` or a `` in the name, `gatsby new` will throw an error. +> ध्यान दें: The `site-name` केवल अक्षरों और संख्याओं से मिलकर बना होना चाहिए। यदि आप नाम में एक `.`, `./` या `` निर्दिष्ट करते हैं, तो `gatsby new` एरर दिखायेगा। -#### Examples +#### उदाहरण -- Create a Gatsby site named `my-awesome-site` using the default starter: +डिफॉल्ट स्टार्टर का उपयोग करके `my-awesome-site` नाम से एक Gatsby साइट बनाएँ: ```shell gatsby new my-awesome-site ``` -- Create a Gatsby site named `my-awesome-blog-site`, using [gatsby-starter-blog](https://www.gatsbyjs.org/starters/gatsbyjs/gatsby-starter-blog/): +- [Gatsby स्टार्टर ब्लॉग](https://www.gatsbyjs.org/starters/gatsbyjs/gatsby-starter-blog/) का उपयोग करके, `my-awesome-blog-site` नामक एक Gatsby साइट बनाएँ: ```shell gatsby new my-awesome-blog-site https://github.com/gatsbyjs/gatsby-starter-blog ``` -- If you leave out both of the arguments, the CLI will run an interactive shell asking for these inputs: + यदि आप दोनों आर्ग्युमेंट्स को छोड़ देते हैं, तो सीएलआई इन इनपुट्स को मांगने लिए एक इंटरैक्टिव शेल चलाएगा: ```shell gatsby new @@ -66,121 +66,121 @@ gatsby new (Use a different starter) ``` -See the [Gatsby starters docs](https://www.gatsbyjs.org/docs/gatsby-starters/) for more details. +अधिक विवरण के लिए [Gatsby स्टार्टर डॉक्स](https://www.gatsbyjs.org/docs/gatsby-starters/) देखें। ### `develop` -Once you've installed a Gatsby site, go to the root directory of your project and start the development server: +एक बार जब आप एक Gatsby साइट इनस्टॉल कर लेते हैं, तो अपनी प्रॉजेक्ट की रूट फोल्डर मे जाएँ और डेवेलपमेंट सर्वर शुरू करें: `gatsby develop` -#### Options +#### ओप्शंस -| Option | Description | +| ओप्शंस | विवरण | | :-------------: | ----------------------------------------------- | -| `-H`, `--host` | Set host. Defaults to localhost | -| `-p`, `--port` | Set port. Defaults to 8000 | -| `-o`, `--open` | Open the site in your (default) browser for you | -| `-S`, `--https` | Use HTTPS | +| `-H`, `--host` | होस्ट सेट करें। इसकी डिफ़ॉल्ट वैल्यू localhost है | +| `-p`, `--port` | पोर्ट सेट करें। इसकी डिफ़ॉल्ट वैल्यू 8000 है | +| `-o`, `--open` | आपके लिए अपने (डिफ़ॉल्ट) ब्राउज़र में साइट खोलता है | +| `-S`, `--https` | HTTPS का उपयोग करें | -Follow the [Local HTTPS guide](/docs/local-https/) -to find out how you can set up an HTTPS development server using Gatsby. -#### Preview changes on other devices +Gatsby का उपयोग करके आप HTTPS डेवलपमेंट सर्वर कैसे सेट कर सकते हैं, यह जानने के लिए [लोकल HTTPS गाइड](/docs/local-https/) का उपयोग करें। -You can use the Gatsby develop command with the host option to access your dev environment on other devices on the same network, run: +#### अन्य उपकरणों पर प्रीव्यू परिवर्तन + +आप एक ही नेटवर्क पर अन्य उपकरणों पर अपने dev एन्वाइरन्मेंट की जानकारी के लिए होस्ट ओप्शंस के साथ Gatsby develop कमांड का उपयोग कर सकते हैं, निचे दी गयी कमांड चलाएं: ```shell -gatsby develop -H 0.0.0.0 +Gatsby develop -H 0.0.0.0 ``` -Then the terminal will log information as usual, but will additionally include a URL that you can navigate to from a client on the same network to see how the site renders. +तब टर्मिनल सामान्य रूप से जानकारी लॉग करेगा, लेकिन इसके अतिरिक्त एक URL भी शामिल होगी जिसे आप एक ही नेटवर्क पर किसी और क्लाइंट से नेविगेट करके देख सकते है की साइट कैसे रेंडर हो रही है। ``` -You can now view gatsbyjs.org in the browser. +अब आप ब्राउज़र में gatsbyjs.org देख सकते हैं। ⠀ - Local: http://0.0.0.0:8000/ - On Your Network: http://192.168.0.212:8000/ // highlight-line + लोकल: http://0.0.0.0:8000/ + अपने नेटवर्क पर: http://192.168.0.212:8000/ // हाइलाइट-लाइन ``` -**Note**: you can't visit 0.0.0.0:8000 on Windows (but things will work using either localhost:8000 or the "On Your Network" URL on Windows) +**ध्यान दें**: आप Windows पर 0.0.0.0:8000 पर नहीं जा सकते हैं (लेकिन Windows पर localhost:8000 या "आपके नेटवर्क की" URL से सब कुछ चलेगा) ### `build` -At the root of a Gatsby site, compile your application and make it ready for deployment: +Gatsby साइट की रूट डाइरेक्टरी में एप्लीकेशन कंपाइल करे और डेप्लाय्मेंट की त्यारी करे: `gatsby build` -#### Options +#### ओप्शंस -| Option | Description | +| ओप्शंस | विवरण | | :--------------------------: | --------------------------------------------------------------------------------------------------------- | -| `--prefix-paths` | Build site with link paths prefixed (set pathPrefix in your config) | -| `--no-uglify` | Build site without uglifying JS bundles (for debugging) | -| `--open-tracing-config-file` | Tracer configuration file (OpenTracing compatible). See [Performance Tracing](/docs/performance-tracing/) | -| `--no-color`, `--no-colors` | Disables colored terminal output | +| `--prefix-paths` | लिंक प्रीफिक्सड पाथस के साथ साइट बनाएं (pathPrefix को अपनी कॉन्फिग में डालें) | +| `--no-uglify` | JS bundles को अगलीफाई किये बिना साइट बनाएं (डिबगिंग के लिए) | +| `--open-tracing-config-file` | ट्रेसर कॉन्फ़िगरेशन फ़ाइल (OpenTracing कम्पेटिबल)। [प्रदर्शन अनुरेखण](/docs/performance-tracing/) देखें| +| `--no-color`, `--no-colors` | टर्मिनल के कलर्ड आउटपुट को डिसएबल करता है | -In addition to these build options, there are some optional [build environment variables](/docs/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). +इन बिल्ड ओप्शंस के अलावा, अधिक अड्वान्स कॉन्फ़िगरेशन के लिए कुछ ऑप्शनल [बिल्ड एन्वाइरन्मेंट वेरियबल्स](/docs/environment-variables/#build-variables) हैं जो एडजस्ट कर सकते हैं की बिल्ड कैसे रन हो। उदाहरण के लिए, एन्वाइरन्मेंट वेरियबल के रूप में `CI = true` को सेट करने से वो [डंब टर्मिनल्स] (https://en.wikipedia.org/wiki/Computer_terminal#Dumb_terminals) के लिए स्ट्रक्चर्ड आउटपुट बनाएगा। ### `serve` -At the root of a Gatsby site, serve the production build of your site for testing: +अपनी साइट को टेस्ट करने के लिए, प्रोडक्शन बिल्ड को एक Gatsby साइट के रुट में सर्व करें:: `gatsby serve` -#### Options +#### ओप्शंस -| Option | Description | +| ओप्शंस | विवरण | | :--------------: | ---------------------------------------------------------------------------------------- | -| `-H`, `--host` | Set host. Defaults to localhost | -| `-p`, `--port` | Set port. Defaults to 9000 | -| `-o`, `--open` | Open the site in your (default) browser for you | -| `--prefix-paths` | Serve site with link paths prefixed (if built with pathPrefix in your gatsby-config.js). | +| `-H`, `--host` | होस्ट सेट करें। इसकी डिफ़ॉल्ट वैल्यू localhost है | +| `-p`, `--port` | पोर्ट सेट करें। इसकी डिफ़ॉल्ट वैल्यू 9000 है | +| `-o`, `--open` | आपके लिए अपने (डिफ़ॉल्ट) ब्राउज़र में साइट खोलता है | +| `--prefix-paths` | लिंक प्रीफिक्सड पाथस के साथ साइट को सर्व करें (अगर आपकी gatsby-config में pathPrefix के साथ साइट बनी है) | ### `info` -At the root of a Gatsby site, get helpful environment information which will be required when reporting a bug: +एक Gatsby साइट की रुट में, एन्वाइरन्मेंट की उपयोगी जानकारी प्राप्त करें जो बग की रिपोर्ट करते समय आवश्यक होगी: `gatsby info` -#### Options +#### ओप्शंस -| Option | Description | +| ओप्शंस | विवरण | | :-----------------: | ------------------------------------------------------- | -| `-C`, `--clipboard` | Automagically copy environment information to clipboard | +| `-C`, `--clipboard` | क्लिपबोर्ड पर एन्वाइरन्मेंट की जानकारी को ऑटोमैजिकली रूप से कॉपी करें | ### `clean` -At the root of a Gatsby site, wipe out the cache (`.cache` folder) and public directories: +एक Gatsby साइट के रुट में से cache (.cache फोल्डर) और पब्लिक डायरेक्ट्रीज को पूरी तरह से मिटा दें: `gatsby clean` -This 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: +यह अंतिम उपाय के रूप में उपयोगी है जब आपके लोकल प्रोजेक्ट में इश्यू हो या कॉंटेंट रिफ्रेश न हो। इससे जो इश्यूज़ ठीक हो सकते हैं उनमें से कुछ हैं: -- Stale data, e.g. this file/resource/etc. isn't appearing -- GraphQL error, e.g. this GraphQL resource should be present but is not -- Dependency issues, e.g. invalid version, cryptic errors in console, etc. -- Plugin issues, e.g. developing a local plugin and changes don't seem to be taking effect +- स्टेल डेटा, उदाहरण के लिए यह file/resource/etc. दिखाई नहीं दे रहा है। +- GraphQL एरर, उदाहरण के लिए यह GraphQL रीसोर्स मौजूद होना चाहिए लेकिन ये मौजूद नहीं है। +- डिपेंडेन्सी इश्यूस, उदाहरण के लिए इनवैलिड वर्शन, कंसोल में गुप्त एरर आदि। +- प्लगिन इश्यूस, उदाहरण के लिए एक लोकल प्लगइन डेवेलप करना और उसके कुछ भी बदलाव प्रॉजेक्ट मे दिखाई ना देना। ### `plugin` -Run commands pertaining to gatsby plugins. +Gatsby plugin से संबंधित कमांड चलाएँ। #### `docs` `gatsby plugin docs` -Directs you to documentation about using and creating plugins. +प्लगइन का उपयोग करने और बनाने के बारे में आपको दस्तावेज़ों को निर्देशित करता है। ### Repl -Get a Node.js REPL (interactive shell) with context of your Gatsby environment: +अपने Gatsby एन्वाइरन्मेंट के संदर्भ में एक Node.js REPL (इंटरेक्टिव शेल) प्राप्त करें: `gatsby repl` -Gatsby will prompt you to type in commands and explore. When it shows this: `gatsby >` +Gatsby आपको कमांड्स टाइप करने और एक्सप्लोर करने के लिए प्रोमपट करेगा। जब वो यह दिखाता है: `gatsby >` -You can type in a command, such as one of these: +एक कमांड में टाइप कर सकते हैं, जैसे कि इनमें से एक: `babelrc` @@ -200,17 +200,17 @@ You can type in a command, such as one of these: `staticQueries` -When combined with the [GraphQL explorer](/docs/introducing-graphiql/), these REPL commands could be very helpful for understanding your Gatsby site's data. +[GraphQL explorer](/docs/introducing-graphiql/) के साथ उपयोग करने पर, ये REPL कमांड्स आपके Gatsby साइट के डेटा को समझने के लिए बहुत सहायक हो सकते हैं। -For more information, check out the [Gatsby REPL documentation](/docs/gatsby-repl/). +अधिक जानकारी के लिए, [Gatsby REPL डॉक्युमेंटेशन](/docs/gatsby-repl/) देखें। -### Disabling colored output +### कलर आउटपुट को डिसेबल करना -In addition to the explicit `--no-color` option, the CLI respects the presence of the `NO_COLOR` environment variable (see [no-color.org](https://no-color.org/)). +सीएलआई ओप्शंस `--no-color` के अलावा एन्वाइरन्मेंट वेरियबल `NO_COLOR` की उपस्थिति का सम्मान करता है ([no-color.org](https://no-color.org/) देखें।) -## How to change your default package manager for your next project? +## अपने अगले प्रोजेक्ट के लिए अपने डिफ़ॉल्ट पैकेज मैनेजर को कैसे बदलें? -When you use `gatsby new` for the first time to create a new project, you are asked to choose your default package manager between yarn and npm. +जब आप पहली बार एक नया प्रोजेक्ट बनाने के लिए `gatsby new` का उपयोग करते हैं, तो आपको yarn और npm के बीच अपने डिफ़ॉल्ट पैकेज मैनेजर को चुनने के लिए कहा जाता है। ```shell Which package manager would you like to use ? › - Use arrow-keys. Return to submit. @@ -218,12 +218,12 @@ Which package manager would you like to use ? › - Use arrow-keys. Return to su npm ``` -Once you’ve made your choice, the CLI won’t ask for your preference again for any subsequent project. +एक बार जब आप अपनी पसंद बना लेते हैं, तो सीएलआई किसी भी बाद के प्रोजेक्ट के लिए आपकी प्राथमिकता के लिए नहीं पूछेगा। -If you want to change this for your next project you have to edit the config file created automatically by the CLI. -This file is available on your system at: `~/.config/gatsby/config.json` +यदि आप इसे अपने अगले प्रोजेक्ट के लिए बदलना चाहते हैं, तो आपको सीएलआई द्वारा स्वचालित रूप से बनाई गई कॉन्फ़िग फ़ाइल को एडिट करना होगा। +यह फ़ाइल आपके सिस्टम पर उपलब्ध है: `~/.config/gatsby/config.json` -In it you’re going to see something like this. +इसमें आपको कुछ इस तरह से दिखने वाला है। ```json:title=config.json { @@ -233,4 +233,4 @@ In it you’re going to see something like this. } ``` -Edit your `packageManager` value, save and you’re good to go for your next project using `gatsby new`. +अपने `packageManager` की वैल्यू को एडिट करें, सेव करें और `gatsby new` को इस्तेमाल करके आप अपना अगला प्रोजेक्ट बनाने के लिए तैयार हैं।