macOS:
brew install tursodatabase/tap/turso
Linux/WSL:
curl -sSfL https://get.tur.so/install.sh | bash
Verify installation:
turso --version
Always use --output json flag when calling commands programmatically (where supported).
turso auth login
Get auth token:
turso auth token
| Command | Description |
|---|---|
| --------- | ------------- |
turso db list | List all databases |
turso db create | Create a new database |
turso db create | Create database in a specific group |
turso db destroy | Destroy a database |
turso db show | Show database details and URL |
turso db shell | Open interactive SQL shell |
turso db shell | Run a SQL query directly |
turso db inspect | Inspect database size and usage |
turso db tokens create | Create an auth token for a database |
turso db tokens create | Create a non-expiring token |
| Command | Description |
|---|---|
| --------- | ------------- |
turso group list | List all groups |
turso group create | Create a new group |
turso group create | Create group in specific location |
turso group add-location | Add a replica location to a group |
turso group remove-location | Remove a replica location |
turso group destroy | Destroy a group |
| Command | Description |
|---|---|
| --------- | ------------- |
turso org list | List organizations |
turso org switch | Switch to a different organization |
| Command | Description |
|---|---|
| --------- | ------------- |
turso plan show | Show current plan details |
turso plan upgrade | Upgrade your plan |
| Flag | Description |
|---|---|
| ------ | ------------- |
--output json | Output result as JSON |
--no-color | Disable colored output |
共 1 个版本