Skip to content

hub threads create command #553

@v1rtl

Description

@v1rtl

Would be cool to have a command to create new database threads instead of running the code manually.

import {Client, Identity, ThreadID, UserAuth} from '@textile/hub'

async function createDB (client: Client) {
  const thread: ThreadID = await client.newDB()
  return thread
}

the syntax would be this:

hub threads create <bucket_name>

> Success!
> New thread has been deployed on https://hub.textile.io/thread/<IPFS link>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions