gcloud eventarc channels create (CHANNEL : --location=LOCATION) [--async] [--crypto-key=CRYPTO_KEY] [--labels=[KEY=VALUE,…]] [--provider=PROVIDER] [GCLOUD_WIDE_FLAG …]
my-channel in location
us-central1, run:
gcloud eventarc channels create my-channel --location=us-central1
To create a new channel my-channel in location
us-central1 with a Cloud KMS CryptoKey, run:
gcloud eventarc channels create my-channel --location=us-central1 --crypto-key=projects/PROJECT_ID/locations/KMS_LOCATION/keyRings/KEYRING/cryptoKeys/KEY
To set the project attribute:
channel on the command line with a fully
specified name;
--project on the command line;
core/project.
CHANNEL
To set the channel attribute:
channel on the command line.
--location=LOCATIONglobal or one of the supported regions.
Alternatively, set the [eventarc/location] property.
To set the location attribute:
channel on the command line with a fully
specified name;
--location on the command line;
eventarc/location.
--async--crypto-key=CRYPTO_KEY--labels=[KEY=VALUE,…]-), underscores (_), lowercase characters, and
numbers. Values must contain only hyphens (-), underscores
(_), lowercase characters, and numbers.
Provider resource - Provider to use for the channel. This represents a Cloud
resource. (NOTE) Some attributes are not given arguments in this group but can
be set in other ways.
To set the project attribute:
--provider on the command line with a fully
specified name;
--project on the command line;
core/project.
location attribute:
--provider on the command line with a fully
specified name;
--location on the command line;
eventarc/location.
--provider=PROVIDERprovider attribute:
--provider on the command line.
--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.
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 2026-05-27 UTC.