HEX
Server: Apache/2.4.65 (Ubuntu)
System: Linux ielts-store-v2 6.8.0-1036-gcp #38~22.04.1-Ubuntu SMP Thu Aug 14 01:19:18 UTC 2025 x86_64
User: root (0)
PHP: 7.2.34-54+ubuntu20.04.1+deb.sury.org+1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: //snap/google-cloud-cli/396/help/man/man1/gcloud_pubsub_snapshots_create.1
.TH "GCLOUD_PUBSUB_SNAPSHOTS_CREATE" 1



.SH "NAME"
.HP
gcloud pubsub snapshots create \- creates one or more Cloud Pub/Sub snapshots



.SH "SYNOPSIS"
.HP
\f5gcloud pubsub snapshots create\fR \fISNAPSHOT\fR [\fISNAPSHOT\fR\ ...] \fB\-\-subscription\fR=\fISUBSCRIPTION\fR [\fB\-\-labels\fR=[\fIKEY\fR=\fIVALUE\fR,...]] [\fB\-\-subscription\-project\fR=\fISUBSCRIPTION_PROJECT\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]



.SH "DESCRIPTION"

Creates one or more Cloud Pub/Sub snapshots.



.SH "POSITIONAL ARGUMENTS"

.RS 2m
.TP 2m
\fISNAPSHOT\fR [\fISNAPSHOT\fR ...]

One or more snapshot names to create.


.RE
.sp

.SH "REQUIRED FLAGS"

.RS 2m
.TP 2m
\fB\-\-subscription\fR=\fISUBSCRIPTION\fR

The subscription whose backlog the snapshot retains. Specifically, the created
snapshot is guaranteed to retain a) The existing backlog on the subscription,
i.e., the set of messages in the subscription that are unacknowledged upon the
successful completion of the create snapshot request, b) Any messages published
to the subscription's topic following the successful creation of the snapshot.


.RE
.sp

.SH "OPTIONAL FLAGS"

.RS 2m
.TP 2m
\fB\-\-labels\fR=[\fIKEY\fR=\fIVALUE\fR,...]

List of label KEY=VALUE pairs to add.

Keys must start with a lowercase character and contain only hyphens (\f5\-\fR),
underscores (\f5_\fR), lowercase characters, and numbers. Values must contain
only hyphens (\f5\-\fR), underscores (\f5_\fR), lowercase characters, and
numbers.

.TP 2m
\fB\-\-subscription\-project\fR=\fISUBSCRIPTION_PROJECT\fR

The name of the project the provided subscription belongs to. If not set, it
defaults to the currently selected cloud project.


.RE
.sp

.SH "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 \fB$ gcloud help\fR for details.



.SH "NOTES"

These variants are also available:

.RS 2m
$ gcloud alpha pubsub snapshots create
.RE

.RS 2m
$ gcloud beta pubsub snapshots create
.RE