Comparing version 0.3.2 to 0.3.3
@@ -44,3 +44,3 @@ "use strict"; | ||
].map((f) => generate({ | ||
template: `init/emulator/${f}`, | ||
template: `init/docker/${f}`, | ||
target: `docker/${f}`, | ||
@@ -47,0 +47,0 @@ props: { |
@@ -45,12 +45,13 @@ "use strict"; | ||
]); | ||
const apiKey = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzdXBhYmFzZSIsImlhdCI6MTYwMzk2ODgzNCwiZXhwIjoyNTUwNjUzNjM0LCJhdWQiOiIiLCJzdWIiOiIiLCJSb2xlIjoicG9zdGdyZXMifQ.magCcozTMKNrl76Tj2dsM7XTl_YH0v0ilajzAvIlw3U'; | ||
const anonApiKey = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzdXBhYmFzZSIsImlhdCI6MTYwMzk2ODgzNCwiZXhwIjoyNTUwNjUzNjM0LCJyb2xlIjoiYW5vbiJ9.36fUebxgx1mcBo4s19v0SzqmzunP--hm_hep0uLX0ew'; | ||
const serviceRoleApiKey = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzdXBhYmFzZSIsImlhdCI6MTYwMzk2ODgzNCwiZXhwIjoyNTUwNjUzNjM0LCJyb2xlIjoic2VydmljZV9yb2xlIn0.necIJaiP7X2T2QjGeV-FhpkizcNTX8HjDDBAxpgQTEI'; | ||
const spinner = spin('Initializing project...'); | ||
// Write templates | ||
yield Promise.all([ | ||
'emulator/kong/Dockerfile', | ||
'emulator/kong/kong.yml', | ||
'emulator/postgres/00-initial-schema.sql', | ||
'emulator/postgres/Dockerfile', | ||
'emulator/postgres/auth-schema.sql', | ||
'emulator/docker-compose.yml', | ||
'docker/kong/Dockerfile', | ||
'docker/kong/kong.yml', | ||
'docker/postgres/00-initial-schema.sql', | ||
'docker/postgres/Dockerfile', | ||
'docker/postgres/auth-schema.sql', | ||
'docker/docker-compose.yml', | ||
'README.md', | ||
@@ -63,3 +64,4 @@ ].map((f) => generate({ | ||
dbPort, | ||
apiKey, | ||
anonApiKey, | ||
serviceRoleApiKey, | ||
}, | ||
@@ -69,6 +71,7 @@ }))); | ||
fancy(`Supabase URL: ${highlight(`http://localhost:${kongPort}`)} | ||
Supabase Key: ${highlight(apiKey)} | ||
Supabase Key (anon, public): ${highlight(anonApiKey)} | ||
Supabase Key (service_role, private): ${highlight(anonApiKey)} | ||
Database URL: ${highlight(`postgres://postgres:postgres@localhost:${dbPort}/postgres`)} | ||
Run ${highlight('supabase start')} to start the local emulator. | ||
Run ${highlight('supabase start')} to start local Supabase. | ||
`); | ||
@@ -75,0 +78,0 @@ }), |
@@ -15,3 +15,3 @@ "use strict"; | ||
run: ({ print: { colors: { highlight }, spin, }, system: { run, which }, }) => __awaiter(void 0, void 0, void 0, function* () { | ||
const spinner = spin('Starting local emulator...'); | ||
const spinner = spin('Starting local Supabase...'); | ||
const dockerCompose = which('docker-compose'); | ||
@@ -22,6 +22,6 @@ if (!dockerCompose) { | ||
} | ||
yield run('docker-compose -f .supabase/emulator/docker-compose.yml up -d'); | ||
spinner.succeed('Started local emulator.'); | ||
yield run('docker-compose --file .supabase/docker/docker-compose.yml --project-name supabase up --detach'); | ||
spinner.succeed('Started local Supabase.'); | ||
}), | ||
}; | ||
//# sourceMappingURL=start.js.map |
@@ -15,3 +15,3 @@ "use strict"; | ||
run: ({ print: { colors: { highlight }, spin, }, system: { run, which }, }) => __awaiter(void 0, void 0, void 0, function* () { | ||
const spinner = spin('Stopping local emulator...'); | ||
const spinner = spin('Stopping local Supabase...'); | ||
const dockerCompose = which('docker-compose'); | ||
@@ -22,6 +22,6 @@ if (!dockerCompose) { | ||
} | ||
yield run('docker-compose -f .supabase/emulator/docker-compose.yml down'); | ||
spinner.succeed('Stopped local emulator.'); | ||
yield run('docker-compose --file .supabase/docker/docker-compose.yml down'); | ||
spinner.succeed('Stopped local Supabase.'); | ||
}), | ||
}; | ||
//# sourceMappingURL=stop.js.map |
@@ -22,5 +22,5 @@ "use strict"; | ||
init Initialize project | ||
start Start local emulator | ||
stop Stop local emulator | ||
eject Create a ${highlight('docker')} directory with the Docker setup for the emulator. | ||
start Start local Supabase | ||
stop Stop local Supabase | ||
eject Create a ${highlight('docker')} directory with the Docker setup for Supabase. | ||
See ${highlight('https://supabase.io/docs/guides/self-hosting')} for details. | ||
@@ -27,0 +27,0 @@ |
{ | ||
"name": "supabase", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"description": "Supabase CLI", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/supabase/cli", |
@@ -1,10 +0,31 @@ | ||
# Supabase CLI [WIP] | ||
# Supabase CLI | ||
Developer tools and helpers. | ||
[Supabase](https://supabase.io) is an open source Firebase alternative. We're building the features of Firebase using enterprise-grade open source tools. | ||
This repository contains all the functionality for our CLI. It is still under heavy development. | ||
### Getting started | ||
- [x] Running Supabase locally | ||
- [x] Self-hosting | ||
- [ ] Managing database migrations (in progress) | ||
- [ ] Pushing your local changes to production | ||
- [ ] Manage your Supabase Account | ||
- [ ] Manage your Supabase Projects | ||
- [ ] Generating types directly from your database schema | ||
- [ ] Generating API and validation schemas from your database | ||
Install | ||
## Documentation | ||
For full documentation, visit [supabase.io/docs](https://supabase.io/docs/reference/cli/getting-started) | ||
## Community & Support | ||
- [Community Forum](https://github.com/supabase/supabase/discussions). Best for: help with building, discussion about database best practices. | ||
- [GitHub Issues](https://github.com/supabase/supabase/issues). Best for: bugs and errors you encounter using Supabase. | ||
- [Email Support](https://supabase.io/docs/support#business-support). Best for: problems with your database or infrastructure. | ||
## Getting started | ||
### Install | ||
```sh | ||
@@ -14,8 +35,14 @@ npm install supabase -g | ||
Commands | ||
### Commands: | ||
```sh | ||
supa init | ||
supa dev | ||
supa eject | ||
``` | ||
- [`supabase init`](https://supabase.io/docs/reference/cli/supabase-init): Initialize project | ||
- [`supabase start`](https://supabase.io/docs/reference/cli/supabase-start): Start Supabase locally | ||
- [`supabase stop`](https://supabase.io/docs/reference/cli/supabase-stop): Stop Supabase locally | ||
- [`supabase eject`](https://supabase.io/docs/reference/cli/supabase-eject): Create a docker directory with the Docker setup. | ||
--- | ||
## Sponsors | ||
[![New Sponsor](https://user-images.githubusercontent.com/10214025/90518111-e74bbb00-e198-11ea-8f88-c9e3c1aa4b5b.png)](https://github.com/sponsors/supabase) | ||
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28823
226
48