Separate json response blob

This commit is contained in:
Qiao Han committed 2022-08-15 14:00:14 +08:00
1 parent e6b0910d8b
commit bbae8a1682
1 file changed
+5 -2
@@ -107,15 +107,18 @@ Of course, the types aren’t very useful on its own, you need some way to consu
The CLI is the first consumer of our new admin API. Over the next few weeks, we’ll be adding all the endpoints needed to programmatically add, remove, and update your Supabase projects. This is ideal for CI/CD workflows and spinning up test environments.
Here’s an example of how you can deploy a new project from the command line, you can generate your access tokens from [Supabase dashboard](https://app.supabase.com/account/tokens).
Here’s an example of how you can create a new project from the command line, you can generate your access tokens from [Supabase dashboard](https://app.supabase.com/account/tokens).
```bash
curl 'https://api.supabase.com/v1/projects' \
-H 'Authorization: Bearer <[your-access-token](https://app.supabase.com/account/tokens)>' \
-H "Content-Type: application/json" \
-d '{"name": "my-project", "organization_id": "cool-green-pqdr0qc", "region": "us-east-1", "plan": "free", "db_pass": "********"}'
```
# Response JSON:
The response JSON should have the same fields as the example below:
```json
{
"id": "abcdefghijklmnopqrst",
"organization_id": "cool-green-pqdr0qc",