UNPKG

1.5 kBMarkdownView Raw
1# graphcool-cli
2
3## Usage
4
5```sh
6 Usage: graphcool [command]
7
8 Serverless GraphQL database for frontend developers
9 Read more at https://www.graph.cool/docs/cli
10
11 Commands:
12 auth Sign up or login
13 create Create a new project
14 eject Eject config from Schema format to YAML
15 export Export database
16 fetch Fetch newest config for project
17 import Import data
18 update Apply config changes to project
19 version Print version
20
21 Run 'graphcool COMMAND --help' for more information on a command.
22
23```
24
25### `create`
26
27```sh
28 Usage: graphcool create [options]
29
30 Create a new project (uses graphcool.schema as template if exists)
31
32 Options:
33 -n, --name <name> Project name
34 -a, --alias <alias> Project alias (https://api.graph.cool/ENDPOINT/ALIAS)
35 -r, --region <region> AWS Region (default: us-west-1)
36 -h, --help Output usage information
37
38```
39
40### `update`
41
42```sh
43 Usage: graphcool update [options]
44
45 Apply config changes to project
46
47 Options:
48 -d, --dry-run Perform a dry-run
49 -c, --config <path> Config file (default: graphcool.schema or graphcool.yaml)
50 -h, --help Output usage information
51
52```
53
54
55### `fetch`
56
57```sh
58 Usage: graphcool fetch
59
60 Fetch newest config for project
61
62 Options:
63 -p, --project-id Project id to fetch (defaults to project from config)
64 -h, --help Output usage information
65
66```
67
68