Skip to main content

tigris buckets set

Update settings on an existing bucket such as access level, location, caching, or custom domain.

Alias: s

Usage

tigris buckets set <name> [flags]
t3 b s <name> [flags]

Flags

NameRequiredDefaultDescription
--accessNoBucket access level. Options: public, private
--locationsNoBucket location. Options: global, usa, eur, ams, fra, gru, iad, jnb, lhr, nrt, ord, sin, sjc, syd. Supports comma-separated values for dual region (e.g. ams,fra). See locations docs.
--regionNoDeprecated. Use --locations instead.
--allow-object-aclNoEnable object-level ACL
--disable-directory-listingNoDisable directory listing
--cache-controlNoDefault cache-control header value
--custom-domainNoCustom domain for the bucket
--enable-delete-protectionNoEnable delete protection

Examples

# Make a bucket public
tigris buckets set my-bucket --access public

# Set location restrictions and cache control
tigris buckets set my-bucket --locations iad,fra --cache-control 'max-age=3600'

# Set a custom domain
tigris buckets set my-bucket --custom-domain assets.example.com