Graphql-engine: [cli] npm package

Created on 12 Aug 2019  路  3Comments  路  Source: hasura/graphql-engine

My project is based on nodejs, and I think adding hasura cli as devDependency would be convenient for colleagues. Then they don't have to install hasura cli on their system, and npm install will only be needed.

I found https://www.npmjs.com/package/hasura. Was this planned but cancled?

community

Most helpful comment

@marionschleifer Good. I think it'd be cool to publish hasura as a npm library by wrapping original hasura cli in it. Node developers would be happy then.

All 3 comments

@jjangga0214 this package was not added by us. I now contacted the author and asked if he would transfer the package to us 馃檪

@marionschleifer Good. I think it'd be cool to publish hasura as a npm library by wrapping original hasura cli in it. Node developers would be happy then.

@simoneb
@patcito
@cos
@marionschleifer

I developed it.

hasura-cli is an npm package that automatically installs Hasura CLI binary by detecting OS. It wraps the binary in isolated manner as a virtue of npm package.

hasura-cli

Now we can just add hasura cli to devDependency.

npm install --save-dev hasura-cli
# or
yarn add --dev hasura-cli

You can visit the repo jjangga0214/hasura-cli for some more detail.

I'd be glad to get feedbacks :)

Was this page helpful?
0 / 5 - 0 ratings