hardgcloud

Create a Cloud Scheduler job that publishes to Pub/Sub every Monday at 9am

command

gcloud scheduler jobs create pubsub JOB_NAME --schedule "0 9 * * 1" --topic TOPIC --message-body MESSAGE --location LOCATION

also accepted

gcloud scheduler jobs create pubsubgcloud scheduler jobs create pubsub JOB_NAME --schedule "0 9 * * 1"

Command breakdown

Part of the Google Cloud CLI (gcloud) — Cloud Scheduler category.

gcloudschedulerjobscreatepubsubJOB_NAME--schedule"09**1"--topicTOPIC--message-bodyMESSAGE--locationLOCATION
FlagPurpose
--scheduleBoolean flag
--topicBoolean flag
--message-bodyBoolean flag
--locationBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →