Skip to main content

tigris mk

Create a bucket (bare name) or a folder inside a bucket (bucket/folder/ with trailing slash).

Alias: create

Usage

tigris mk <path> [flags]
t3 create <path> [flags]

Paths support the optional t3:// (or tigris://) prefix (e.g. t3://my-bucket/path or just my-bucket/path). A trailing slash creates a folder inside the bucket.

Flags

Flags only apply when creating a bucket (not folders).

NameRequiredDefaultDescription
--access, -aNoprivateAccess level. Options: public, private
--publicNoShorthand for --access public
--enable-snapshots, -sNofalseEnable snapshots for the bucket
--default-tier, -tNoSTANDARDDefault storage tier. Options: STANDARD, STANDARD_IA, GLACIER, GLACIER_IR
--locations, -lNoglobalBucket 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.
--consistency, -cNoDeprecated. Use --locations instead.
--region, -rNoDeprecated. Use --locations instead.

Examples

# Create a bucket
tigris mk my-bucket

# Create a public bucket in a specific region
tigris mk my-bucket --access public --locations iad

# Create a folder in a bucket
tigris mk my-bucket/images/

# Using t3:// prefix
tigris mk t3://my-bucket