Start, Pause, or Resume Datastream Streams
Start, pause, or resume Datastream streams by display name.CLI Command
Options
Recommended SetupFor security and convenience, set your GCP credentials as environment variables:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Start, pause, or resume Google Cloud Datastream change data capture streams and list them from Paradime Bolt with the paradime run gcp-datastream CLI commands.
paradime run gcp-datastream-trigger
| Flag | Type | Description |
|---|---|---|
--service-account-key-file | Required, TEXT | Path to your GCP service account JSON key file. Can be set via GCP_SERVICE_ACCOUNT_KEY_FILE environment variable. |
--project | Required, TEXT | Your GCP project ID. Can be set via GCP_PROJECT_ID environment variable. |
--location | Required, TEXT | GCP region (e.g. ‘us-central1’). Can be set via GCP_LOCATION environment variable. |
--stream-names | Required, TEXT | Comma-separated Datastream stream display name(s) to manage. |
--action | Optional, CHOICE | Action to perform on the stream(s). Choices: start, pause, resume. Default: start. |
--wait / --no-wait | Optional, Flag | Wait for the state change to complete before returning. Default: --wait. Can be set via GCP_DATASTREAM_TRIGGER_WAIT environment variable. |
--timeout | Optional, INTEGER | Maximum time to wait for completion (in minutes). Only used with --wait. Default: 60. Can be set via GCP_DATASTREAM_TRIGGER_TIMEOUT environment variable. |
--help | Optional, Flag | Show the help message and exit. |
GCP_SERVICE_ACCOUNT_KEY_FILE="/path/to/service-account-key.json"
GCP_PROJECT_ID="your-gcp-project-id"
GCP_LOCATION="us-central1"
# Start a single stream (using environment variables)
paradime run gcp-datastream-trigger \
--stream-names "orders-cdc-stream" \
--action start
# Pause multiple streams (comma-separated)
paradime run gcp-datastream-trigger \
--stream-names "orders-cdc-stream,customers-cdc-stream" \
--action pause
paradime run gcp-datastream-list
| Flag | Type | Description |
|---|---|---|
--service-account-key-file | Required, TEXT | Path to your GCP service account JSON key file. Can be set via GCP_SERVICE_ACCOUNT_KEY_FILE environment variable. |
--project | Required, TEXT | Your GCP project ID. Can be set via GCP_PROJECT_ID environment variable. |
--location | Required, TEXT | GCP region (e.g. ‘us-central1’). Can be set via GCP_LOCATION environment variable. |
--help | Optional, Flag | Show the help message and exit. |
# List all streams (using environment variables)
paradime run gcp-datastream-list
# With explicit credentials
paradime run gcp-datastream-list \
--service-account-key-file "/path/to/service-account-key.json" \
--project "your-gcp-project-id" \
--location "us-central1"
| Environment Variable | Description |
|---|---|
GCP_SERVICE_ACCOUNT_KEY_FILE | Path to your GCP service account JSON key file |
GCP_PROJECT_ID | Your GCP project ID |
GCP_LOCATION | GCP region (e.g. ‘us-central1’) |
GCP_DATASTREAM_TRIGGER_WAIT | Whether to wait for the state change |
GCP_DATASTREAM_TRIGGER_TIMEOUT | Maximum time to wait for completion (minutes) |