1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-08 10:35:03 +00:00
gcloud-help/gcloud/alpha/dialogflow/agent/import
2022-03-01 04:29:52 +00:00

63 lines
2.3 KiB
Text

NAME
gcloud alpha dialogflow agent import - import a Dialogflow agent from a zip
file
SYNOPSIS
gcloud alpha dialogflow agent import --source=SOURCE [--async]
[--replace-all] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(ALPHA) Import a Dialogflow agent from a ZIP file and upload it to the
agent of the current project. By default, uploads new intents and entity
types without deleting the existing ones. Intents and entity types with the
same name are replaced with the new versions.
EXAMPLES
To import local file path/to/agent.zip to the agent of the current project:
$ gcloud alpha dialogflow agent import --source="path/to/agent.zip"
To import agent.zip in Google Storage Bucket mybucket to the agent of the
current project:
$ gcloud alpha dialogflow agent import \
--source="gs://mybucket/agent.zip"
To import local file path/to/agent.zip to the agent of the current project
and replace all existing resources in the agent:
$ gcloud alpha dialogflow agent import \
--source="path/to/agent.zip" --replace-all
REQUIRED FLAGS
--source=SOURCE
Path to a file or the URI to a Google Cloud Storage file containing the
agent to import. Note: A URI must start with "gs://".
OPTIONAL FLAGS
--async
Return immediately, without waiting for the operation in progress to
complete.
--replace-all
If true, replace the current agent version with a new one. All the
intents and entity types in the older version will be deleted.
GCLOUD WIDE FLAGS
These flags are available to all commands: --access-token-file, --account,
--billing-project, --configuration, --flags-file, --flatten, --format,
--help, --impersonate-service-account, --log-http, --project, --quiet,
--trace-token, --user-output-enabled, --verbosity.
Run $ gcloud help for details.
API REFERENCE
This command uses the dialogflow/v2 API. The full documentation for this
API can be found at: https://cloud.google.com/dialogflow/
NOTES
This command is currently in alpha and might change without notice. If this
command fails with API permission errors despite specifying the correct
project, you might be trying to access an API with an invitation-only early
access allowlist.