Stay organized with collections Save and categorize content based on your preferences.
gcloud storage cat
URL
[URL
…] [--additional-headers
=HEADER
=VALUE
] [--display-url
, -d
] [--range
=RANGE
, -r
RANGE
] [--decryption-keys
=[DECRYPTION_KEY
,…]] [GCLOUD_WIDE_FLAG …
]
gcloud storage cp url… -
(The final '-' causes gcloud to stream the output to stdout.)
gcloud storage cat gs://bucket/*.txt
The following command outputs a short header describing file.txt, along with its contents:
gcloud storage cat -d gs://my-bucket/file.txt
The following command outputs bytes 256-939 of file.txt:
gcloud storage cat -r 256-939 gs://my-bucket/file.txt
The following command outputs the last 5 bytes of file.txt:
gcloud storage cat -r -5 gs://my-bucket/file.txt
URL
[URL
…]
header1=value1,header2=value2
. Overrides the default storage/additional_headers
property value for this command invocation.
--display-url
, -d
--range
=RANGE
, -r
RANGE
x-y
(e.g., -r 256-5939
), x-
(e.g., -r 256-
), -y
(e.g., -r -5
)
When offsets start at 0, x-y means to return bytes x through y (inclusive), x- means to return bytes x through the end of the object, and -y changes the role of y. If -y is present, then it returns the last y bytes of the object.
If the bytes are out of range of the object, then nothing is printed
--decryption-keys
=[DECRYPTION_KEY
,…]
--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.
gcloud alpha storage cat
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 2025-05-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-07 UTC."],[],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.5