tursodatabase / tursodatabase/libsql-client-ts

feat: CLI to create turso db and set values in your local .env file

Open
#336 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
576
Forks
69
PR merge metrics
No merged PRs in 30d

Description

https://github.com/OpenSourceAGI/StarterDOCS/tree/master/packages/create-cloud-db

https://www.npmjs.com/package/create-cloud-db

create-cloud-db is a small CLI that creates a Turso database and manages the TURSO_DATABASE_URL and TURSO_AUTH_TOKEN values in your local .env file.

It is designed for quick local setup so you can be ready to connect from Node, frameworks, or serverless environments with minimal manual configuration.

Installation
You must first login to turso with:

bun i -g turso
turso auth login

or

bun x turso auth login
Then run:

will ask for name

npx create-cloud-db

npx create-cloud-db [myapp-db]
Or install globally:

npm install -g create-cloud-db
create-cloud-db myapp-db
What it does
When you run the command, the CLI:

Ensures you are logged into Turso via turso auth login.
Creates a Turso database if it does not already exist.
Generates a database URL and an auth token via the Turso CLI.
Overwrites (not appends) the TURSO_DATABASE_URL and TURSO_AUTH_TOKEN entries in your local .env file.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue points to packages/create-cloud-db and the create-cloud-db npm package; start by reading that package and its documented CLI flow. Clarify how it should fit into libsql-client-ts before changing anything. Done means the requested CLI behavior and local .env updates are implemented and verified against the documented Turso commands.

Written by the indexing model from the issue text.

Assessment

Tech stack
bun, typescript
Domain
cli, databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.