Skip to content


Getting Started

If you've used cloud storage before, you'll find Buckets easy to understand. Unlike traditional cloud services, Buckets are built on open, decentralized protocols including the IPFS and Libp2p. You can serve websites, data, and apps from Buckets.

Buckets are packed with useful features, including:

Initialize a Bucket

When working on your local machine, Buckets are mapped to working directories. Once you initialize a Bucket in a directory, anytime you return to the directory, the Textile CLI will automatically detect the Bucket you are interacting with. To start a Bucket in your current working directory, you must first initialize the Bucket.

Read CLI docs for Buckets.


Bucket names are unique to a developer and within an Org. They are not globally unique.**


Be careful creating a bucket in a root directory, because all children directories will linked to that bucket. To move or remove a bucket's link to a directory, edit, move or delete the .textile/config.yml file (it will be a hidden folder in the bucket's directory)

Shared Buckets

You can create Buckets to share with all members of an organization. To do so, simply initialize an Org first and then initialize a Bucket using the --org flag, specifying the name of the Org you want to share the bucket with. For example hub bucket init --org nasa. All members of the Org will be able to push and pull files to and from the shared Bucket. Read more about creating Orgs.


to check which org a bucket is registered with, examine the .textile/config.yml file (it will be a hidden folder in the bucket's directory)

Publishing content

Push new files

View the Bucket push CLI docs.

hub bucket push site/ .

Retrieving content

Pull files

hub bucket init --existing


By using the --existing flag, you can list Buckets already pushed by you or, when using --org, your collaborators.

Explore on the gateway

To inspect your pushed files, exlore on the gateway: hub bucket links then open the first result 'Thread links' in your browser.

The Hub gateway gives you a static URL where you can explore, download, and share your latest Bucket content.

Render on a website

If your Bucket contains web content, the Bucket website endpoint will provide you a static URL that will always render the latest content from your Bucket. See HTTP Domains.

Render on IPFS gateways

Buckets are dynamic folders distributed over IPFS using ThreadDB. Each time you create a new Bucket, you will receive a new IPNS Address that you can use on the IPFS address to fetch the latest Bucket content. The IPNS address will not change, but the content will update each time you push changes to your Bucket. Each time you update your Bucket, you will receive a new IPFS address to fetch that version of your Bucket content.

HTTP Domain

All public Buckets are automatically provided a subdomain on that will reflect the latest changes in to your Bucket. Your Bucket's IPNS address is used as the subdomain, such that your Bucket URL will always be: <ipns-address> This is designed to further enhance the interoperability of protocols using Textile Buckets.

IPNS Address

Each Bucket has a unique IPNS address that will allow you to render or fetch your Bucket on any IPFS peer or gateway that supports IPNS (including and Cloudflare).

Buckets can't change the speed of IPNS propagation through the network, but we recommend you explore and try for yourself. The Hub gateway will always render the latest data right away.

Bucket Automation (CI/CD)

Buckets are an ideal tool for persisting your website, source code, or documentation on IPFS using continuous integration. Tools like Travis CI, CircleCI, and GitHub Actions all make it possible to do very easily.

We have provided a configurable GitHub Action that allows you to:

  • Push or update your Bucket based on pull requests, commits, and merges.
  • Generate IPNS, IPFS, and HTTP addresses for every Bucket creation or update.
  • Create temporary Buckets for staging or review that can be removed automatically when content is merged or pull requests are closed.

Example output from Textile Bucket GitHub Action

Learn more

Bucket Permissions

Developer Buckets

All Buckets you create are scoped to your developer account. You can always find your currently logged in account with hub whoami.

Organization Buckets

Any Buckets you create using the --org flag will also be shared with Org members. Here are the steps to create an Org, create a new Bucket in the Org, and invite a collaborator to the Org:

Create a new Org

hub org create
Choose an Org name: nasa█
> The name of your account on Textile will be nasa
> Your URL will be
Please confirm: y█
> Success! Created new org nasa with URL

You have now created the nasa Org.

Create a new Bucket shared with an Org
mkdir launchpad
cd launchpad
hub bucket init --org nasa

You have now created a new Bucket inside of the launchpad directory and owned by your nasa organization.

Invite a collaborator
hub org invite

The final step is to invite collaborators to your Org. Once they accept the invite, they will be able to interact with Buckets associated with the Org.

App user Buckets

If you are building an app using one of our developer libraries you can use Buckets from inside your apps. Apps generally will create Buckets on behalf of each user, meaning the user should retain control of the Bucket metadata and contents.

Bucket Protocols

Buckets are designed to be interoperable across protocols and services. Here are a few examples.

Buckets and Threads

Buckets are built on ThreadDB. In fact, in their most basic form, Buckets are just a document in a Thread that is updated each time the directory of data is updated. Since Buckets run on Threads, it opens the door to many new integrations that can be built on Buckets!

Buckets and HTTP

Buckets can be rendered over HTTP through either the Hub Gateway, the Bucket subdomains, or on any IPFS gateway supporting IPNS (see below).

Buckets and IPFS

Data in a Bucket is stored as IPLD and pinned on IPFS. You can use the underlying content addresses to pin new Bucket content on additional pinning services such as Pinata or Infura. This can be useful if you want additinal replication of your content on the IPFS network.

Buckets and IPNS

Every Bucket you create has a unique ID associated with it. The Bucket ID is an IPNS address that you can also use to fetch the latest Bucket content from any IPFS peer or view it over IPFS gateways that support the IPNS protocol.

More resources