- Available commands
- Getting started #change
$ npm install -g @hypi/cli
hypi login
Login with user name and password
hypi login -d
Login with organization name space and Authorization token from here https://hypi.app/developer-hub
hypi init
Initialize your app and instance or reference an existing domain .hypi folder will be created with app.yaml, instance.yaml and schema.graphql files
hypi sync reactjs
will sync your local schema and get the full schema, then genearte graphql reactjs schema file
-
Inside yoir ReactJs project, run
hypi login
Afetr login, user config folder will be placed in~/.config/hypi/config.json
-
Run
hypi init
to initialize your app or refernece an existing domain .hypi folder will be created withapp.yaml
,instance.yaml
andschema.graphql
-
Write your schema inside
schema.graphql
-
Write your queries and mutations inside
/src/graphql
and then runhypi sync reactjs
to generate the Reactjs schema The full generated schema will be inside .hypi folder/.hypi/generated-schema.graphql
-
The genearted graphql ReactJs schema will be inside
/src/generated/graphql.ts