gactions सीएलआई (Dialogflow)
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
gactions
कमांड-लाइन इंटरफ़ेस है. इसका इस्तेमाल
Actions प्रोजेक्ट.
सिस्टम आर्किटेक्चर
सही डाउनलोड चुनने के लिए, आपको अपने सिस्टम का आर्किटेक्चर ढूंढना होगा.
Mac OS X और Linux डिवाइसों पर, टर्मिनल कमांड का इस्तेमाल करके अपने कंप्यूटर का सीपीयू आर्किटेक्चर देखा जा सकता है
uname -a
.
Windows 10 डिवाइसों पर, सीपीयू का कॉन्फ़िगरेशन ढूंढने के लिए यह तरीका अपनाएं:
Settings खोलें
सिस्टम पर क्लिक करें
परिचय पर क्लिक करें
डाउनलोड किए गए वीडियो
अपने ऑपरेटिंग सिस्टम के लिए, gactions
को डाउनलोड किया जा सकता है. इसकी जानकारी नीचे दी गई है.
ओएस |
डाउनलोड किए गए वीडियो |
Windows |
|
Mac |
|
Linux |
|
ज़रूरी शर्तें
- ज़रूरी अनुमतियां सेट करके, डाउनलोड की गई फ़ाइल को एक्ज़ीक्यूट करने लायक बनाएं.
- Mac और Linux पर, बाइनरी को एक्ज़ीक्यूट करने लायक बनाने के लिए
chmod +x gactions
चलाएं.
- Windows पर, आपके पास एडमिन के अधिकार होने चाहिए.
gactions
डाउनलोड की जगह, आपके PATH
एनवायरमेंट वैरिएबल में होनी चाहिए.
इस्तेमाल किए जा सकने वाले आर्ग्युमेंट
नीचे दी गई टेबल में, gactions
के लिए इस्तेमाल किए जा सकने वाले आर्ग्युमेंट के बारे में बताया गया है:
आर्ग्यूमेंट |
ब्यौरा |
help , h |
इस टूल के लिए सहायता टेक्स्ट देता है. उदाहरण के लिए:
gactions help
किसी खास तर्क से जुड़ा सहायता टेक्स्ट देखने के लिए, इस सिंटैक्स का इस्तेमाल करें:
gactions help argument
उदाहरण के लिए:
gactions help test
|
get |
दिए गए प्रोजेक्ट का कॉन्टेंट पाएं (कार्रवाइयां + मेटाडेटा). इस सिंटैक्स का इस्तेमाल करें:
gactions get --project PROJECT_ID
|
init |
मौजूदा डायरेक्ट्री में इस सिंटैक्स के साथ डिफ़ॉल्ट action.json फ़ाइल बनाता है:
gactions init
अगर पहले से कोई action.json फ़ाइल मौजूद है, तो आप
--force आर्ग्युमेंट, जैसा कि नीचे दिया गया है:
gactions init --force
|
list |
आपके Actions प्रोजेक्ट के ज़्यादा से ज़्यादा 10 हाल ही के वर्शन की सूची बनाता है: समीक्षा में है,
नीचे दिए गए सिंटैक्स के साथ प्रोडक्शन, मंज़ूरी वगैरह:
gactions list --project PROJECT_ID
|
test |
इनके साथ टेस्ट करने के लिए, किसी ऐक्शन पैकेज को Assistant प्लैटफ़ॉर्म पर भेजता है
सिंटैक्स:
gactions test --action_package PACKAGE_NAME --project PROJECT_ID
उदाहरण के लिए:
gactions test --action_package mypackage.json --project my-project-1234567
आपके पास सैंडबॉक्स एनवायरमेंट में टेस्टिंग को बंद करने का विकल्प भी है
--disable_sandbox फ़्लैग के साथ.
--preview_mins फ़्लैग का इस्तेमाल नहीं किया जा सकता.
|
update |
दिए गए प्रोजेक्ट के लिए, कार्रवाई पैकेज को इस सिंटैक्स के साथ अपडेट करता है:
gactions update --action_package PACKAGE_NAME --project PROJECT_ID
उदाहरण के लिए:
gactions update --action_package action.json --project my-project-1234567
update आर्ग्युमेंट का इस्तेमाल करने के लिए, आपको ऐक्शन का प्रोजेक्ट आईडी इस्तेमाल करना होगा. आपको ये चीज़ें मिल सकती हैं
यह अपना प्रोजेक्ट आईडी है. इसे देखने के लिए सेटिंग गियर settings पर क्लिक करें
Actions on Google प्रोजेक्ट के बाद प्रोजेक्ट सेटिंग.
अगर आपका Actions प्रोजेक्ट कई भाषाओं में काम करता है, तो
ऐक्शन पैकेज का दस्तावेज़.
|
selfupdate |
हर कमांड के चलने से पहले, गेक्शन अपने-आप अपडेट की जांच करते हैं, लेकिन आप जब चाहें
selfupdate के साथ
gactions selfupdate
|
ज़्यादा शब्दों में जानकारी देने वाला आउटपुट देखें
प्रोसेस करने के दौरान, आउटपुट के बारे में ज़्यादा जानकारी देखने के लिए, --verbose
फ़्लैग जोड़ें. उदाहरण के लिए:
gactions --verbose test --action_package action.json --project my-project-1234567
डिफ़ॉल्ट Action.json का उदाहरण
gactions init
को अपनी प्रोजेक्ट डायरेक्ट्री में चलाने पर, डिफ़ॉल्ट वैल्यू जनरेट होती है
उस डायरेक्ट्री में action.json
फ़ाइल है:
{
"actions": [
{
"description": "Default Welcome Intent",
"name": "MAIN",
"fulfillment": {
"conversationName": "<INSERT YOUR CONVERSATION NAME HERE>"
},
"intent": {
"name": "actions.intent.MAIN",
"trigger": {
"queryPatterns": [
"talk to <INSERT YOUR NAME HERE>"
]
}
}
}
],
"conversations": {
"<INSERT YOUR CONVERSATION NAME HERE>": {
"name": "<INSERT YOUR CONVERSATION NAME HERE>",
"url": "<INSERT YOUR FULLFILLMENT URL HERE>"
}
},
"locale": "<INSERT YOUR LANGUAGE HERE>"
}
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया."],[[["\u003cp\u003e\u003ccode\u003egactions\u003c/code\u003e is a command-line interface used to test and manage Actions projects, providing functionalities like updating, testing, and retrieving project data.\u003c/p\u003e\n"],["\u003cp\u003eDownloads for \u003ccode\u003egactions\u003c/code\u003e are available for Windows, Mac, and Linux operating systems, with options for different system architectures like x86_64, i386, and arm.\u003c/p\u003e\n"],["\u003cp\u003eBefore using \u003ccode\u003egactions\u003c/code\u003e, ensure it is executable and its location is added to your system's \u003ccode\u003ePATH\u003c/code\u003e environment variable.\u003c/p\u003e\n"],["\u003cp\u003eKey functionalities include \u003ccode\u003einit\u003c/code\u003e to create an \u003ccode\u003eaction.json\u003c/code\u003e file, \u003ccode\u003etest\u003c/code\u003e to deploy for testing, \u003ccode\u003eupdate\u003c/code\u003e to push updates, and \u003ccode\u003eget\u003c/code\u003e to retrieve project content.\u003c/p\u003e\n"],["\u003cp\u003eFor detailed information about \u003ccode\u003egactions\u003c/code\u003e usage and available arguments, use the \u003ccode\u003ehelp\u003c/code\u003e command or consult the provided documentation.\u003c/p\u003e\n"]]],[],null,["# gactions CLI (Dialogflow)\n\n`gactions` is the command line interface that you use to test and update your\nActions project.\n\nSystem architecture\n-------------------\n\nTo select the proper download, you'll need to find your system architecture.\n\n- On Mac OS X and Linux devices, you can find your computer's CPU architecture using the terminal command\n `uname -a`.\n\n- On Windows 10 devices, take the following steps to find the CPU architecture:\n\n 1. Open **Settings**\n\n 2. Click **System**\n\n 3. Click **About**\n\nDownloads\n---------\n\nYou can download `gactions` for your operating system (below).\n\n| OS | Downloads |\n|---------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Windows | - [x86_64](https://dl.google.com/gactions/updates/bin/windows/amd64/gactions.exe/gactions.exe) - [i386](https://dl.google.com/gactions/updates/bin/windows/386/gactions.exe/gactions.exe) |\n| Mac | - [x86_64](https://dl.google.com/gactions/updates/bin/darwin/amd64/gactions/gactions) - [i386](https://dl.google.com/gactions/updates/bin/darwin/386/gactions/gactions) |\n| Linux | - [x86_64](https://dl.google.com/gactions/updates/bin/linux/amd64/gactions/gactions) - [i386](https://dl.google.com/gactions/updates/bin/linux/386/gactions/gactions) - [arm](https://dl.google.com/gactions/updates/bin/linux/arm/gactions) |\n\nRequirements\n------------\n\n- Make the downloaded file executable by setting the appropriate permissions.\n - On Mac and Linux, run `chmod +x gactions` to make the binary executable.\n - On Windows, you must have Administrator rights.\n- The `gactions` download location must be in your `PATH` environment variable.\n\nSupported arguments\n-------------------\n\nThe following table describes the supported arguments for `gactions`:\n\n| Argument | Description |\n|--------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `help`, `h` | Outputs the help text for this tool. For example: ``` gactions help ``` To view the help text for a specific argument, use the following syntax: ``` gactions help argument ``` For example: ``` gactions help test ``` |\n| `get` | Get the content of the given project (Actions + metadata). Use the following syntax: ``` gactions get --project PROJECT_ID ``` |\n| `init` | Creates a default `action.json` file in the current directory with the following syntax: ``` gactions init ``` If there is already an existing `action.json` file, you can overwrite it by adding the `--force` argument, as the following example shows: ``` gactions init --force ``` |\n| `list` | Lists up to 10 recent versions of your Actions project: in review, production, approved, etc, with the following syntax: ``` gactions list --project PROJECT_ID ``` |\n| `test` | Pushes an action package to the Assistant Platform for testing with the following syntax: ``` gactions test --action_package PACKAGE_NAME --project PROJECT_ID ``` For example: ``` gactions test --action_package mypackage.json --project my-project-1234567 ``` You can optionally disable testing in the sandbox environment with the `--disable_sandbox` flag. `--preview_mins` flag is deprecated. |\n| `update` | Updates the Action package for the given project with the following syntax: ``` gactions update --action_package PACKAGE_NAME --project PROJECT_ID ``` For example: ``` gactions update --action_package action.json --project my-project-1234567 ``` To use the `update` argument, you must use your Action's Project ID. You can get your project ID by clicking the settings gear *settings* in your Actions on Google project followed by **Project Settings**. If your Actions project supports multiple languages, see the [Action package documentation.](/assistant/df-asdk/localization/action-packages) |\n| `selfupdate` | gactions automatically checks for updates before each command runs, but you can force that check with `selfupdate` ``` gactions selfupdate ``` |\n\nView verbose output\n-------------------\n\nTo view more detailed output during processing, add the `--verbose` flag. For example: \n\n```\ngactions --verbose test --action_package action.json --project my-project-1234567\n```\n\nDefault action.json example\n---------------------------\n\nWhen you run `gactions init` in your project directory, you generate a default\n`action.json` file in that directory: \n\n```text\n{\n \"actions\": [\n {\n \"description\": \"Default Welcome Intent\",\n \"name\": \"MAIN\",\n \"fulfillment\": {\n \"conversationName\": \"\u003cINSERT YOUR CONVERSATION NAME HERE\u003e\"\n },\n \"intent\": {\n \"name\": \"actions.intent.MAIN\",\n \"trigger\": {\n \"queryPatterns\": [\n \"talk to \u003cINSERT YOUR NAME HERE\u003e\"\n ]\n }\n }\n }\n ],\n \"conversations\": {\n \"\u003cINSERT YOUR CONVERSATION NAME HERE\u003e\": {\n \"name\": \"\u003cINSERT YOUR CONVERSATION NAME HERE\u003e\",\n \"url\": \"\u003cINSERT YOUR FULLFILLMENT URL HERE\u003e\"\n }\n },\n \"locale\": \"\u003cINSERT YOUR LANGUAGE HERE\u003e\"\n}\n```"]]