hypi v0.0.1
hypi
hypi command line interface
Install
$ npm install /full/path/to/hypi/cli
steps 1. inside yoir flutter project, run hypi login afetr login , the user config which hold user token and domain is in ~/.config/hypi/config.json 2. after login, you can do hypi init to initialize your app and instance or refernece an existing domain .hypi folder will be created with app.yaml, instance.yaml and schema.graphql 3. write your schema inside schema.graphql 4. make sure that following dependecies exists inside your pubspec.yaml in yoru flutter project
dependencies: artemis: ">=6.0.0 <7.0.0" json_annotation: ^ 3.1.0 equatable: ^ 1.2.5 meta: ">=1.0.0 <2.0.0" gql: ">=0.12.3 <1.0.0"
dev_dependencies: artemis: ">=6.0.0 <7.0.0" build_runner: ^ 1.10.4 json_serializable: ^ 3.5.0
- run hypi sync to generate schema dart files
Usage
$ npm install -g hypi
$ hypi COMMAND
running command...
$ hypi (-v|--version|version)
hypi/1.0.0 linux-x64 node-v14.16.0
$ hypi --help [COMMAND]
USAGE
$ hypi COMMAND
...
Commands
hypi commands
list all the commands
USAGE
$ hypi commands
OPTIONS
-h, --help show CLI help
-j, --json display unfiltered api data in json format
-x, --extended show extra columns
--columns=columns only show provided columns (comma-separated)
--csv output is csv format [alias: --output=csv]
--filter=filter filter property by partial string matching, ex: name=foo
--hidden show hidden commands
--no-header hide table header from output
--no-truncate do not truncate output to fit screen
--output=csv|json|yaml output in a more machine friendly format
--sort=sort property to sort by (prepend '-' for descending)
See code: @oclif/plugin-commands
hypi conf [KEY] [VALUE]
manage configuration
USAGE
$ hypi conf [KEY] [VALUE]
ARGUMENTS
KEY key of the config
VALUE value of the config
OPTIONS
-d, --cwd=cwd config file location
-d, --delete delete?
-h, --help show CLI help
-k, --key=key key of the config
-n, --name=name config file name
-p, --project=project project name
-v, --value=value value of the config
See code: conf-cli
hypi help [COMMAND]
display help for hypi
USAGE
$ hypi help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help
hypi update [CHANNEL]
update the hypi CLI
USAGE
$ hypi update [CHANNEL]
See code: @oclif/plugin-update