gcloud alpha storage folders create Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud alpha storage folders create - create folders for hierarchical namespace bucket
- SYNOPSIS
gcloud alpha storage folders createURL[URL…][--additional-headers=HEADER=VALUE][--recursive][GCLOUD_WIDE_FLAG …]
- DESCRIPTION
(ALPHA)Create folders.- EXAMPLES
- The following command creates a folder called
folder/in a bucketnamedmy-bucket:gcloudalphastoragefolderscreategs://my-bucket/folder/The following command creates all folders in the path
A/B/C/Din abucket namedmy-bucket:gcloudalphastoragefolderscreate--recursivegs://my-bucket/folder/A/B/C/D - POSITIONAL ARGUMENTS
URL[URL…]- The URLs of the folders to create.
- FLAGS
--additional-headers=HEADER=VALUE- Includes arbitrary headers in storage API calls. Accepts a comma separated listof key=value pairs, e.g.
header1=value1,header2=value2. Overridesthe defaultstorage/additional_headersproperty value for thiscommand invocation. --recursive- Recursively create all folders in a given path if they do not alraedy exist.
- 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 thiscommand fails with API permission errors despite specifying the correct project,you might be trying to access an API with an invitation-only early accessallowlist. This variant is also available:
gcloudstoragefolderscreate
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-07 UTC.