For AI agents: the documentation index is at llms.txt. Guide pages have a markdown version at the same path with .md appended, before any query string or fragment.

Swift: List all buckets

Examples

List buckets

let buckets = try await supabase.storage
  .listBuckets()

List buckets with options

let buckets = try await supabase.storage
  .listBuckets(
    options: BucketListOptions(
      limit: 10,
      sortBy: .createdAt,
      order: .descending
    )
  )