- NAME
-
- gcloud pubsub schemas - manage Pub/Sub schemas
- SYNOPSIS
-
-
gcloud pubsub schemasCOMMAND[GCLOUD_WIDE_FLAG …]
-
- DESCRIPTION
- The gcloud pubsub schemas group lets you create and manage Pub/Sub schemas. These schemas can be attached to topics to enable validation of published messages. Commands to validate schemas and messages against schemas are also available.
- GCLOUD WIDE FLAGS
- These flags are available to all commands:
--help.Run
$ gcloud helpfor details. - COMMANDS
-
is one of the following:COMMAND-
commit - Commit a Pub/Sub schema revision.
-
create - Create a Pub/Sub schema.
-
delete - Delete a Pub/Sub schema.
-
delete-revision - Delete a Pub/Sub schema revision.
-
describe - Show details of a Pub/Sub schema.
-
list - List Pub/Sub schemas.
-
list-revisions - List revisions of a Pub/Sub schema.
-
rollback - Roll back a Pub/Sub schema to a specified revision.
- Validate a message against a Pub/Sub schema.
-
validate-schema - Validate a Pub/Sub schema.
-
- NOTES
- These variants are also available:
gcloud alpha pubsub schemasgcloud beta pubsub schemas
gcloud pubsub schemas
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.

