- INFORMATION
-
gcloud alpha storage tailis not available in universe domainuniverse. - NAME
-
- gcloud alpha storage tail - outputs the last parts (the tail) of an object to stdout
- SYNOPSIS
-
-
gcloud alpha storage tailURL[--additional-headers=HEADER=VALUE] [--bytes=BYTES; default="1000"] [--follow] [--decryption-keys=[DECRYPTION_KEY,…]] [GCLOUD_WIDE_FLAG …]
-
- DESCRIPTION
-
(ALPHA)The tail command outputs the last B bytes of an object to stdout. It can also be used to monitor real time appends to an appendable object in the RAPID storage. - EXAMPLES
-
The following command outputs the last 1000 bytes of an object:
gcloud alpha storage tail gs://my-bucket/objectThe following command outputs the last 100 bytes of an object:
gcloud alpha storage tail gs://my-bucket/object --bytes=100The following command continuously streams new data as it is appended to the appendable object:
gcloud alpha storage tail gs://my-bucket/appendable-object --follow - POSITIONAL ARGUMENTS
-
URL- The URL of the object to tail.
- FLAGS
-
--additional-headers=HEADER=VALUE-
Includes arbitrary headers in storage API calls. Accepts a comma separated list
of key=value pairs, e.g.
header1=value1,header2=value2. Overrides the defaultstorage/additional_headersproperty value for this command invocation. --bytes=BYTES; default="1000"- Output the last BYTES bytes of the object, or use +BYTES to output starting with byte BYTES of the object (capped at object size). Default is 1000.
--follow- Output the last B bytes of the appendable object and continuously streams new bytes appended to the appendable object.
- ENCRYPTION FLAGS
-
--decryption-keys=[DECRYPTION_KEY,…]- A comma-separated list of customer-supplied encryption keys (RFC 4648 section 4 base64-encoded AES256 strings) that will be used to decrypt Cloud Storage objects. Data encrypted with a customer-managed encryption key (CMEK) is decrypted automatically, so CMEKs do not need to be listed here.
- 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
$ gcloud helpfor details. - NOTES
- This command is currently in alpha and might change without notice. If this command fails with API permission errors despite specifying the correct project, you might be trying to access an API with an invitation-only early access allowlist.
gcloud alpha storage tail
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-10-13 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-10-13 UTC."],[],[]]