- NAME
-
- gcloud workflows deploy - create or update a workflow
- SYNOPSIS
-
-
gcloud workflows deploy
(WORKFLOW
:--location
=LOCATION
) [--async
] [--call-log-level
=CALL_LOG_LEVEL
; default="none"] [--description
=DESCRIPTION
] [--labels
=[KEY
=VALUE
,…]] [--service-account
=SERVICE_ACCOUNT
] [--source
=SOURCE
] [GCLOUD_WIDE_FLAG …
]
-
- DESCRIPTION
- Create or update a workflow.
- EXAMPLES
-
To deploy a workflow with source code myWorkflow.yaml on Workflows:
gcloud workflows deploy my-workflow --source=myWorkflow.yaml
You may also skip waiting for the operation to finish:
gcloud workflows deploy my-workflow --source=myWorkflow.yaml --async
To specify a service account as the workflow identity:
gcloud workflows deploy my-workflow --source=myWorkflow.yaml --service-account=my-account@my-project.iam.gserviceaccount.com
- POSITIONAL ARGUMENTS
-
-
Workflow resource - Name of the workflow to deploy. The arguments in this group
can be used to specify the attributes of this resource. (NOTE) Some attributes
are not given arguments in this group but can be set in other ways.
To set the
project
attribute:-
provide the argument
workflow
on the command line with a fully specified name; -
provide the argument
--project
on the command line; -
set the property
core/project
.
This must be specified.
WORKFLOW
-
ID of the workflow or fully qualified identifier for the workflow.
To set the
workflow
attribute:-
provide the argument
workflow
on the command line.
This positional argument must be specified if any of the other arguments in this group are specified.
-
provide the argument
--location
=LOCATION
-
Cloud location for the workflow. Alternatively, set the property
[workflows/location].
To set the
location
attribute:-
provide the argument
workflow
on the command line with a fully specified name; -
provide the argument
--location
on the command line; -
set the property
workflows/location
.
-
provide the argument
-
provide the argument
-
Workflow resource - Name of the workflow to deploy. The arguments in this group
can be used to specify the attributes of this resource. (NOTE) Some attributes
are not given arguments in this group but can be set in other ways.
- FLAGS
-
--async
- Return immediately, without waiting for the operation in progress to complete.
--call-log-level
=CALL_LOG_LEVEL
; default="none"-
Level of call logging to apply by default for the workflow.
CALL_LOG_LEVEL
must be one of:log-all-calls
- Log all calls to subworkflows or library functions and their results.
log-errors-only
- Log when a call is stopped due to an exception.
log-none
- Perform no call logging.
none
- No logging level specified.
--description
=DESCRIPTION
- The description of the workflow to deploy.
--labels
=[KEY
=VALUE
,…]-
List of label KEY=VALUE pairs to add.
Keys must start with a lowercase character and contain only hyphens (
-
), underscores (_
), lowercase characters, and numbers. Values must contain only hyphens (-
), underscores (_
), lowercase characters, and numbers. --service-account
=SERVICE_ACCOUNT
- The service account that should be used as the workflow identity. "projects/PROJECT_ID/serviceAccounts/" prefix may be skipped from the full resource name, in that case "projects/-/serviceAccounts/" is prepended to the service account ID.
--source
=SOURCE
- Location of a workflow source code to deploy. Required on first deployment. Location needs to be defined as a path to a local file with the source code.
- 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. - NOTES
-
This variant is also available:
gcloud beta workflows deploy
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-02-06 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{
"last_modified": "Last updated 2024-02-06 UTC.",
"state": ""
}