From bbae8a1682000a6d45f93b038ae562e686e5e7df Mon Sep 17 00:00:00 2001 From: Qiao Han Date: Mon, 15 Aug 2022 14:00:14 +0800 Subject: [PATCH] Separate json response blob --- ...22-08-15-launch-week-five-cli-v1-and-admin-api-beta.mdx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/www/_blog/2022-08-15-launch-week-five-cli-v1-and-admin-api-beta.mdx b/apps/www/_blog/2022-08-15-launch-week-five-cli-v1-and-admin-api-beta.mdx index c5771e24532..c9698895e1a 100644 --- a/apps/www/_blog/2022-08-15-launch-week-five-cli-v1-and-admin-api-beta.mdx +++ b/apps/www/_blog/2022-08-15-launch-week-five-cli-v1-and-admin-api-beta.mdx @@ -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",