1 | import * as chalk from 'chalk'
|
2 |
|
3 | export const usageRoot = ` Usage: graphcool [command]
|
4 |
|
5 | ${chalk.bold('Serverless GraphQL database for frontend developers')}
|
6 | Read more at https://www.graph.cool/docs/cli
|
7 |
|
8 | Commands:
|
9 | auth Sign up or login
|
10 | create Create a new project
|
11 | eject Eject config from Schema format to YAML
|
12 | export Export database
|
13 | fetch Fetch newest config for project
|
14 | import Import data
|
15 | update Apply config changes to project
|
16 | version Print version
|
17 |
|
18 | Run 'graphcool COMMAND --help' for more information on a command.
|
19 | `
|
20 |
|
21 | export const usageAuth = ` Usage: graphcool auth [options]
|
22 |
|
23 | Sign up or login
|
24 |
|
25 | Options:
|
26 | -t, --token <token> System token
|
27 | -h, --help Output usage information
|
28 | `
|
29 |
|
30 | export const usageCreate = ` Usage: graphcool create [options] [schema]
|
31 |
|
32 | Create a new project (uses graphcool.schema as template if exists)
|
33 |
|
34 | The [schema] argument is optional but can point to any kind of .schema file or URL.
|
35 |
|
36 | Options:
|
37 | -n, --name <name> Project name
|
38 | -a, --alias <alias> Project alias (https://api.graph.cool/ENDPOINT/ALIAS)
|
39 | -r, --region <region> AWS Region (default: us-west-1)
|
40 | -h, --help Output usage information
|
41 | `
|
42 |
|
43 | export const usageFetch = ` Usage: graphcool fetch
|
44 |
|
45 | Fetch newest config for project
|
46 |
|
47 | Options:
|
48 | -p, --project-id Project id to fetch (defaults to project from config)
|
49 | -h, --help Output usage information
|
50 | `
|