graphql-cli / graphql-cli-voyager

GraphQL Voyager plugin for graphql-cli
MIT License
21 stars 3 forks source link

Project name must be specified for multiproject config #17

Open sorenbs opened 6 years ago

sorenbs commented 6 years ago

I am asked to specify project name, but it is not clear how to do so

graphql voyager
✖ 
Project name must be specified for multiproject config. Valid project names: app, database

~/c/g/cloud master
❯ graphql voyager database
✖ 
Project name must be specified for multiproject config. Valid project names: app, database

~/c/g/cloud master
❯ graphql voyager --name database
graphql voyager [--port]

Open GraphQL voyager in your browser

Options:
  --dotenv       Path to .env file                                      [string]
  --port, -p     Project name                                           [string]
  -h, --help     Show help                                             [boolean]
  -v, --version  Show version number                                   [boolean]

Unknown argument: name
kbrandwijk commented 6 years ago

Normally, that would be with the -p/--project option. The issue here is (probably) that the voyager command overwrites the -p alias for port. You should be able to use --project.