{"_id":"hasura-cli","_rev":"259-b4e9e5244d12677505aebc420d773d91","name":"hasura-cli","dist-tags":{"latest":"2.38.0","beta":"2.38.0-beta.1","alpha":"2.0.0-alpha.11"},"versions":{"1.0.0-alpha01":{"name":"hasura-cli","version":"1.0.0-alpha01","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"265b6b824f642b54f1fe4e110ee2f89881098dda","_id":"hasura-cli@1.0.0-alpha01","_nodeVersion":"10.15.3","_npmVersion":"6.11.3","dist":{"integrity":"sha512-ThMwrJuzl1/WIbkHf5EXzmQHu/4rVU+mU4MlAtvBjwPZICgc3f+BwwZTWyP260T5YcixZyDKD0d2I6/sCs35lA==","shasum":"a1a339b8aa81aee2b9c1f38a57e7240319c37024","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-alpha01.tgz","fileCount":10,"unpackedSize":21067,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkFEhCRA9TVsSAnZWagAAyyoP/1WWcxGg1ao1m6roQW5I\nxW7zXZJlRUjv7npkL4IL6Wxfu2twnJhUd8Q0LCPTS7aR75OmEdMm3y151Jpi\n70K71neSq+uQqan2Lmigs7kMn4wk61y4zWTdCB+jtfidn/rYxHpZhH0m0mHT\nWaLVMCafqUze7vDDLs3ZTG8CdpiGRBF5qWlkdrUNUUo86YljFTujC2tPm7hO\nWP6isTwd97XbRZGvBab9w3sIgcV9xqesui0sb5QvIlqNUy28+zVLX6pl/BKW\n8QAvD45JRps3wqoOcZl1k+QBSrAPKTxHUcx/8Qd0LowPHHIk0leGTOMO5T1p\nzBmp81ro8aNdRi71d4K9mLwNCq2cNEnciD1FEAoyj9nKohZccBimpqIxljl2\nZj1inAOw/FmlzAFFpErIYmNCJq4LdhLpuG97ciJP9W9PR2xp6xKVs2XUdNWO\nUgHujXav91AP9ML21gCWuXPGY8g6RBDjR8hkNqI24j/FLcbjsKQH5athtVux\nfJgA1a+hbWZUYh6aKaW2ZOkKYfOskHQRXKh99jl84lvVGiHcHow42mG/OrKq\nBos5+ref+aNyj+405oRwse37MSUyhYm9LPCjWrdvn41YfRQ0KG+ogAD8Kjpr\nzQS9ezjPo+Xh1wKkndaCZSFUIit0AefP4B2fjb9ZgSYTLZQ5Mlkn9ttGMBKi\nS6rJ\r\n=3YAw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD4kAj7RBsYRLX1OgkTgCUNsgS+aS78RULcK+ZdVIVS7wIgWZ5eZpH9TJ5idCFoHz/Aeqt5sYoiu2Mt43dAb2dLZl0="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-alpha01_1569739040935_0.1720719099188377"},"_hasShrinkwrap":false},"1.0.0-alpha02":{"name":"hasura-cli","version":"1.0.0-alpha02","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"fc258ed9c4e073435170482474c4adeaf77b9285","_id":"hasura-cli@1.0.0-alpha02","_nodeVersion":"10.15.3","_npmVersion":"6.11.3","dist":{"integrity":"sha512-RChUCTSW3jBjSqKeNswdwUvo8pIw5L1OhiYORcw8pffSuGl0eTvCvp1pzTblV7dfk6aphkxb+UeZG0ZUN3gtFQ==","shasum":"679f2b295dbe5eaccab74d9775890ff1f0bd2a97","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-alpha02.tgz","fileCount":10,"unpackedSize":20970,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkFNtCRA9TVsSAnZWagAA2NoP/RkgZK5SDHMEUdWUnPyH\nJ6f/dgGf9nMy7KP/BWa+3hn1RDX+eSdqDCZiN4trfa7Ty/Mu9yC86pp95B8g\nK1zqxwGdhfd/HOIq81fwIOqvZ4ywm7Ey1FU4BqwgmQ1rhKRGVxU2C5lwBPb8\nRsVH28XBqzXNWBzWobhe7csdD0Mr/6YYTGYQ1iN3QWV9O8N6ZTsMP6LGRGxk\nxgY1NfHIZbJALSelpJZ2z3eAvrDW4NOSMB3cU+I0sYSWdOCZLDaEsRQRgqXj\nDVLVEEYiN6mG7yCEgqbrQvXsf9F+uRdehyPNEYUnqFK6JRYb1RoQLvbTROjE\nnEGcOne7Je9SL2Uz7Yx1zgL6w36FR+fC41/V+PFjuRYyiR8yS/u7JCiEyUXP\nUOQ5NKwOlwO+JUPfbFuDbrOh+Ky3L7jkWNZfjx+/tyv0De9k104CYqJsPw6E\nRnvlBCsWscELI7/QUi3uMNerFAK7OfdTqCpy3pi70Vi7Y64yvXY+HrTXmexB\nFOGl1Jw6v4pIzu/QOjWCgbUP6RTnPbK3mYCNGDZBwzNON4nCqLeJtW0ZF+w2\nw5OYA37+3HFfKtbrVAY8+O3VzcoPVQLUFsA6gBsPL++gLluKPGgf1P8Sxi8b\nmJDuphesG+/8nJ8s+LA2aA83zT6agBoj7EnwRcl1Z1AzcVhKNRrVayRavrUM\n/94p\r\n=vXBn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD53nu6WjvX4bmOOUrCZcv32auyQ+aXprQmwMKyclPzewIgUSboZvEoI+tk3jKaQ1QQLz45z0LrOl5oUdnZfVtSk9s="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-alpha02_1569739629160_0.7340581624124638"},"_hasShrinkwrap":false},"1.0.0-alpha03":{"name":"hasura-cli","version":"1.0.0-alpha03","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"54cb5fbe08d8ad985ee367a37ca2c7503ec0521c","_id":"hasura-cli@1.0.0-alpha03","_nodeVersion":"10.15.3","_npmVersion":"6.11.3","dist":{"integrity":"sha512-Pc4j4Hs/9Z7d9JkR2v3ODALwt9Th7htKfZGbLQ4yRD9Ok09co7P9uk7cakEhxOdiiCwVcrVX708bMF8mMuSHFg==","shasum":"55d9aebec15f17639084e3e98fa3d6b1dd06496c","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-alpha03.tgz","fileCount":10,"unpackedSize":20970,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkGgWCRA9TVsSAnZWagAArcYP/0G9mhGaG3UeRE0JrowG\nIQhKaDX0rDmKWrSx0Neu9xGOiaD2FXPiv3S+L9MXHMu6uCz+ivOQd1qVPlyQ\nZZTKxfgih4ZuHaKb+qepmqmLiiPYkcgjKGc4hDhNVmvLHHRSKPae8H+EEydr\nP/FA/urJA41Y8fqOaLInE84wFRtmQ/5fKSNwB/hGpCgcSPplOhgs0nUWAqGH\n7X8cS3MFrF2wcqrSVGNhMtZ1SsLSssehCaSOZd2umxiHD8GbBfxoMCiGa0TW\nVWCFGw2JcEhH+Q6aBorBRB8OARN+FinOJOwHSojvDo6CBU6HVM0xsWeKtPS2\nqQuZOR2/iQfKI3GrNamaOPqozT7zxpShvU5cTzgzotIxLXaX/Rk4aQDyf+a9\nWBI6y7yHdS+OC4c0cOJHSFIrs9TjUlPwaQqHozVEB7XSmh8ngA/gmoBL7O3X\nVZCcN8Q5vELAK/ZbLrxoxNU6+ow677H1S1PYP6hWyqwbS3JLKGw9SjGqXtGi\n3CZTroHjrIyAJvEOyfwoQ7DF69xV13sV6SavmUksvSClqzCBFTvDUBbOWG11\ns2Qi1cSKzoHFFgCdNo0/Z8cpDh/Ji6WGrAU9/pvBseik5ixi9E1BeC1n8W0Z\nGHybHZnSHH6cWenNYIDhBe/2oUN2pHB68wkyqukrVaRN2M9xDKeoy0ngzVhq\njrZi\r\n=6qEB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICtfyGywhTMpKySMlYSp89gtUZTSLMU+4Q19AAvS2R/eAiEA2J06pTNwxQZK0pafl8qQVbeC0EDTk/9Zda5Ikk7wIPk="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-alpha03_1569744917901_0.5761897475901558"},"_hasShrinkwrap":false},"1.0.0-alpha04":{"name":"hasura-cli","version":"1.0.0-alpha04","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"5eba6a14f33fdc465212f56cacef3d7b500873d6","_id":"hasura-cli@1.0.0-alpha04","_nodeVersion":"10.15.3","_npmVersion":"6.11.3","dist":{"integrity":"sha512-5h5pc+1FmAdj7vBeGtPQ74KpmEidxleeLTVR6r6+qHdpG4DdzX363LdlYYAXc6f1zFm8rHdvglK7SO7vPDG24Q==","shasum":"80c43eaf6f0a6dfdbee8648a4ecd158e52f1634d","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-alpha04.tgz","fileCount":10,"unpackedSize":21017,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkHM4CRA9TVsSAnZWagAAzv4P/jivLFzRMG5T/81veRIz\n9khJsAn7XHzmR8Kk4spkdSn6EpS+TzOrZxfIxEjN0tMquGipeMdvAA+eQ7LJ\nijos7yd132sKNcW3kRhlB4v6eD5mKYscCKtkkiE99h9QksF3LdxXBi4y6iRD\nLSTrcbz6WLW3L6MDnfVG3z21jv1iZOzaVrDAptI5pv4xAKrX54V4FocB7PjT\nfiQrZluDsaLIVQd9wkjOHDNsV8hW1CVy5na70qJdgK4bPnSXNP1qOKqAHmYH\na0Ky90YYRh2Y7PAYbtJDjVbJ6Y8K+fMiNFOfDkKddyP1cyspXkB+CFOPnaWk\n9PJAhyslB8OZzodw/zLDz/xN07WjzTO8d6fB8nCjAyqQX0ZD2pwdlqDCNg1Q\nA4SC+zarkJdnmW3oetzLoZcXzgNZcQxczOr7nAOGJNMncWO9nRXlEeWD/gwK\nogGfU8HlbzzlZ9hnoRxig3dhDBkVjIGahkxm3fF65+C1QHk4I/1meAcD6SBt\n+HY4Y619lfX7Dla6Qk9ZMVMQq0QzvJPq8ck77d0EMnLRK3GkBLZzSs77mAH3\n+tcZuTR1slGESLXJ0QPY8cjiJ/ZyYrzbPCzI5DzxprxyTtc/VeBzHrWxpR0P\nSZKBSrmPMwvMts5fWGVvAz3mExldFzpK2HkC7ovac43G+muGZVIZTjTcyocX\nBwZj\r\n=VwX/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA10bVfG+01NcrAPBABQ1frayrNu0WHAejsbkFj8aUuCAiBTVPnHHgQjsBGzANwo8sXMmOEin1SHV4BgR9HeJv6WwQ=="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-alpha04_1569747768309_0.8904347536318769"},"_hasShrinkwrap":false},"1.0.0-alpha05":{"name":"hasura-cli","version":"1.0.0-alpha05","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"638612a23cd79c66079eb7310b0b407732931515","_id":"hasura-cli@1.0.0-alpha05","_nodeVersion":"10.15.3","_npmVersion":"6.11.3","dist":{"integrity":"sha512-kmUW0rtBXJI01QYUVjo20KrOGKVJTnZdXrMOUN3YvXFFhP10B9M3cn5rNraHgBCtHxQ6l7N2VC8MVT8GjAooxQ==","shasum":"40e4fd69a87300d6f5292fb847d53e5f64732015","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-alpha05.tgz","fileCount":10,"unpackedSize":21063,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkJIVCRA9TVsSAnZWagAAaWEP/2MDOy9biYeUKeV+rrnE\nn4tGO5hoxT4EOzK/z3xNprMQlBcIE652N4di1GoM60t07G3uKhlaIpj5NWSv\nh+IcF0TiVb4lE+cgrPqn4U0djFjgRbPR9Xmk02DWFQy0uf1GtISlJjMQc3Tv\nS9QEB/zjDcutPWHL81wjdWEeMTIuJP8RLITMEyK1zp9QZKElBAjOU30GkpWL\nmasn74d76Hi4W8hy1WSREQCUDkaURoLV5u9nG3In2ayLEygyhsVVQ7vlo7Qk\n9PVgu48RcESVB56x5oVg7JVNrLb1/xaQ/0avsrkfyqXbdg4oGOonHZYrKm6Q\ndTGqFGC8fd/mvYljSvswDQjcrOhWQDxM3c0XF4tSmKPCknmDgSZT+xgwpRQN\nx12fVh0S6VdrjyglKkcG15SpKuM2d7vM9y2g/67s8B79ZxBlmq0XRpvlX5mO\nrlRf8rgn4eV16qdTFov0HK9d4FfJBZdaAkAVCzJAra7qo3FVdD4GLuk4Xy89\n1dViFb4/1ewgzOZ0gcH4yFxOv/rN3bgfj8hrPgWmdhBjFycPQxELnpV7GS6l\nIbbtOfMVrcWa2obqAyiIEbIgwGUwiycM2YFJPeHaRGjzZgNgw54HvvKtY+tn\nlmedU9sMmRW6SSXhN8SxGsrKLaHLV1I9n4Mz8vPceLISCjEE9rjEMP7AKPw2\n2oQk\r\n=c3ru\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC9gULKQkhq6obTuTLOcCyKJ31Cqe2lxao/qtvsrp3PgQIhAJXV1412UP361r+dt+nzRGWHV8CfTCThyDsUPlkV14Dj"}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-alpha05_1569755668593_0.3519052763006669"},"_hasShrinkwrap":false},"1.0.0-alpha06":{"name":"hasura-cli","version":"1.0.0-alpha06","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"784dabe9ae99047f5c3e29a6da5ad7d239055d3f","_id":"hasura-cli@1.0.0-alpha06","_nodeVersion":"10.15.3","_npmVersion":"6.11.3","dist":{"integrity":"sha512-iozKrsRWmTpitb7vt6dqqJOLReK1ibUUGeqxlbn7ipyVn8vQdEPLJHtL2geN71o+fAW/gGgZiTCiUXm0lwvHEA==","shasum":"6073d63e223ef70a0d04782a57963d4454e0117e","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-alpha06.tgz","fileCount":10,"unpackedSize":21063,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkJVACRA9TVsSAnZWagAADcoP/jzvWwNulXv2zOGg1geG\n3s2oeg7YBApI0e7SGDDTTrZOlih1ZHb8ghTcT7e8rinFLafkYX6VfwPmicvy\n8YMPGKGBINww/uu794dR9xEJLWd8mLb/z+bJag9uljYqq6bcugiEY9GiBXXM\neQAl3JPjG6dY7Q+wjCkhy3dTTQSGghXHgFFc9+hUenA0tNoUre5Wl8xsBqe3\nvqbC//q2lZGlDlpR/nlucJCAl8Kq3BkJ8TPTnYqlqe3zLSianggZco7JXKXL\ne/xmW4qooha88a5VASfbwgnxJ2JNVfFpIhFCpit+NF/s3lCBiF6I5N7jJOZu\n3KnQ4kEPy07UdRaLbzw4+yz/vo7iN8P32AI60I9kYwXJJYJCXaV9jE9df1CV\nRdzg6Ha3hsfUtYfdclvuZUCR9JfE+Fo22Uib5IQLikUvaKBJYmo0SgzTQWzO\nY2xDsjcKUvnHjTHdOYQ99sp2TyHb4UTaf5Dhy1bnwvI6PTgW8lvPUok3lZ9p\nPKOXnPAlWL1ZeeDgDaGmFp/oeTKd3leq+t6wz4FSipBGAvpsQnxhnit+ZIdQ\nzYWPrUS7OBx2Gs6TOXx9tziYnWDE6GQxNIHX3hnRXWoi5c1scAkzK9jn1pXm\nYg8Yg7o4ytdBBn3ub1Mgvt1NFu8vQp/S04tUemgB9by2h6bz5e0VhkjiUqbp\nR6+K\r\n=8J+O\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDU8JVh1of9DL5ldHvcIuXKJVHa+TmR5h8qGZuOF4HSogIhALwuyH+XCy9lTbtcf6+kpiZwyYcMpRy2v+Lzdrauhvzg"}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-alpha06_1569756480181_0.6794464798522122"},"_hasShrinkwrap":false},"1.0.0-alpha07":{"name":"hasura-cli","version":"1.0.0-alpha07","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"a74479e5c9a21b6cb6da6a058899c89069b2f63a","_id":"hasura-cli@1.0.0-alpha07","_nodeVersion":"10.15.3","_npmVersion":"6.11.3","dist":{"integrity":"sha512-RiBSWeT4Uw9cR0C+NXnrkrLD/62CZve+kEo9wV5LLfzG2clxl04g/WX9xT5rDCiskabVDa1pEQwvvxspjpOeNg==","shasum":"e223002674ead0fcf81c8f1cfa2d91827693c592","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-alpha07.tgz","fileCount":10,"unpackedSize":21063,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkJeOCRA9TVsSAnZWagAAlF8QAIEfmp0WSe9bhPgwTXNi\nLr9T8XX1MuDXp6xtnwRVSElqGciYoEDXRtKP3eTiLgGAwMHkAYKiP1ThQSQk\nB8VhIAXoBBhe/Mu1yvGSPpySW5kD2ICvRUGngXEvrni/lispuLxNizSvlJE9\nZDOnrxt34b1mRrYe59ZX4SrRr7Kjq3rPNErofy3GnuUc6lmPt4yywE94FPw5\nKXakhbrpCvDWB7XhhuO9sb9vS89memg64InlOlQY2/eams9Wbm8scOPzQf/F\nHBz90N1aMXMqxG3O0OyDX9BS8piyClvhccRYTjgb9aTFAOFtlJHg/VQXAjoY\nDhjIumh1B1elJfbMAiuTn2Q5TLRIMj5PywDdGoCVLXO09AA0ai2gaNjq0IbO\nJyKwSnc1p3dCLQchz/qLLvYuMiTxPuOnMRPvgRHMZzd6d0P/Ai3hAVAa4N99\ngDJkESXp4SOxexG2GDbl0gsthV86ookoMVlz+hZ/W3JUhfy0kz2Oh7fC3Zdu\nPZt33M5II3GJfa/rI+HOvyviMfMAcHC2cR9jhYXRHjyEyKzpy8Yuy41BiJbq\nebjomx4CCwp3gXjfumHRKhRIwJod6Gi0zZuuE9JJq579q9QngeHZ0gEY9b8d\n3woETCEblEZC1RWjRNKKpyBo/OnqnmI3Anb3ejQ10ICtFnBcfLTu/F929AAT\n/2hs\r\n=TtAm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEc26PqQJ2/uVddBIJBJfDwzHD61eoMTdXfz4iMhxYZbAiEAgwU12ptxm7YYTM93ExObz5oYCgtgw7BdNBh6TUfOS4o="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-alpha07_1569757069771_0.10947516730948736"},"_hasShrinkwrap":false},"1.0.0-alpha08":{"name":"hasura-cli","version":"1.0.0-alpha08","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"8b7cf9da2538ec075860c40d303439385bd7ceb3","_id":"hasura-cli@1.0.0-alpha08","_nodeVersion":"10.15.3","_npmVersion":"6.11.3","dist":{"integrity":"sha512-3a6VqcHBJgZF7V84N1u+9J2M7hxfOKBBsf5104zCSc3DZG+KyL3+7RmH2snLS0UNvJZjQy3pxi3d4QddguHEpg==","shasum":"40b90fbdec69acf058acac0ff46503e47be5bdd5","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-alpha08.tgz","fileCount":10,"unpackedSize":21063,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkJj1CRA9TVsSAnZWagAA2acQAJ6K58zduWDZwIaGM+Zt\nxvgNUJYg1w4WFWd89UNBNkLId+zsV3jqqtxMavGLEMGAhepOd9J27nM0jNG5\nHEC+V9hCh90B5xynLi3wVaSIw4y4N45FezbkxZw249+eLzK43uhIhDIacwoL\njBbaHLgEGYzrtNAEGHlxGclBlF1CeKW3SSCj0wwsin05CsBGsUyErBNkJ355\ndPZxljMgF4bmm6yl06Kfv3Tsy8AzU2bxaOHDfwoRi6H6rnr2KyvJst5Piql2\ndP/d+E+9Hl6DB6s5tCeq4ywNw0iY3XAMrqI74SQwGYRlICsszpR7Fza4zAip\nIajh8BwNs+wdo6L7baBAMboL/VQ3WN+JGyk77wO/HarA29rAUQL9vIMwzKyP\nyK0pYoaMsZKn4/KZ/tz5rsT42B2kElBJV08kaXM3CPOFGjESneGj+KfSq3Bc\nL5Jmedo4NlWfXz7betK4auOB926JdL6iLltjgP42GC7/a+u+G7XN/+eMBKfU\ncG9TSFmbEx3IvAUnvvGhKKeZjkCgGi2D3RswthoeWWqdJHIWlIDOUJ47wM7S\nVT6mKNq16A71n/W4xFgb9voyICmaTRYbw8Hyedzue7zajNizIzutnhXnXbKZ\ne6sDvuea7mVs+JToJxYjhSlIV6pNq90w7FoMfkaw1/uL+Q71bKtCUQHjsH6u\npbuo\r\n=QqUQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBjI9OTSEcTzzLQcdLN6T5McNjxCRgAyqkMTze/OaMbaAiEAgI7XNDyTcpNNwS+yK7sEFZU5AZsz5D9VYA/9dc8HNBk="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-alpha08_1569757429379_0.8177821538018799"},"_hasShrinkwrap":false},"1.0.0-alpha09":{"name":"hasura-cli","version":"1.0.0-alpha09","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"d6f53125e2c1f2861edce4db7b35fd3d42a310c1","_id":"hasura-cli@1.0.0-alpha09","_nodeVersion":"10.15.3","_npmVersion":"6.11.3","dist":{"integrity":"sha512-+BU9tKDc7kAwAhrIVRGrIV7LTMZ9n3sNPy1Y+r/Uis8hL1HOH4ChjRnWp7IxVKOARGlgCxkiUCIGJbdRhO0neA==","shasum":"2322e43796e216f8c18ffc8641572fbe5f5bdde6","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-alpha09.tgz","fileCount":10,"unpackedSize":21063,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkJn7CRA9TVsSAnZWagAAJGYP/2Ns7bIafZWmkUii6EsX\nPEaDCvWk5A6GxW1gbZ5BghxzvbQprnPG55IDJ5EsMpXakdPf2J9tXwBbU6nM\nZzUSs8mxE4J8NfsQhpV65af+u/wL+G7jwj1imGIJEAGD0Ndg3l2CDtIwARnN\nt0VVFMe1Js/gWMffgMK+uW5hU0JVr44VNA5BIW5/x5DaryCFZglGEZK6kvr5\nupL4hQlWwApRqMrSrhnVQ/luEurtdM8e3Id3jXJVGmdCBBBrc+jK08hLMyd0\n3/9FsFDMHNLV+Yq0cuJOcEtuVaQdrR2BNj7QNRlN+GI9qfUGD9DVulxfb6DY\nLCeUaOyI/Jxe/IMs3qFIouCL+lGIhSITf2S9N/4BK9x2k9Pay+C7ECqX2HfK\nC+eVr2qor2uTEoBUcSN70wNQ//WTqBATIX9aulAmY+FM5KlM8R9bmkFY0pcJ\nDuvp4Huw+kzU1WXx0Y8U8w/ZHIbq9BdlAXUbixixmKurj9+arMTTmmKyt6D+\nokWycnhTMSfWiZaFxlh0Lr2GE33lmNW92+YenmZG3FpLzkkGK/r62e/0Z8EZ\n+Hr5zpA5uPvWXKZhvlAOiZYfJuT9u95JMCdWOCNQSZrB9Q2pd9UOKa3YfYfN\nMRmqJzPfgNUt+bKERIoL2/OE2XNJWaVXLS/zOu1mRb758Xf+p6GsFDc462t9\n/KaS\r\n=Bmzb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAvANDU1bc6ENGEkW36O0KLjEOKB+ROtiSUSIffIzdEUAiAC0qSdGUwJKB/MHJx2WByS4REa32Rm9FH41tkyiJ1qIQ=="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-alpha09_1569757690340_0.4674957030133511"},"_hasShrinkwrap":false},"1.0.0-alpha10":{"name":"hasura-cli","version":"1.0.0-alpha10","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"44d76ed9fcada7126cb636fb50644312b2e79b5b","_id":"hasura-cli@1.0.0-alpha10","_nodeVersion":"10.15.3","_npmVersion":"6.11.3","dist":{"integrity":"sha512-9nfxagBVPDM0BKg1ASvChyVLo3g4t+KO265UPutQHF0vEpkDievNqn0hfEOj+sRljHEWY+Sei1wBZEYQKUmN5Q==","shasum":"d0481df895848ee63f750cfe1494b7b9e93820b5","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-alpha10.tgz","fileCount":10,"unpackedSize":21063,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkJ6jCRA9TVsSAnZWagAAiKAP/RthQpqd6xPZRSCYHlga\nAfKC7GwDnLjayVSnMBHSbT4kRoXrIV1DFCAAJQidvu/xo+83HB7hzeo2VKaR\nGa77939UcO+6EtuHi4Z2OZ5GBwdNSpKJFLvuHU0ZIbbPUK9DeEPvo6EZkB1f\nt1PFxrtUKP7mPLzqVJkYBrA8p7c5H3otnw/Pee01rv2PMv6bXsWMrYLq9KOi\nfl7yxdiqgEPEUW2Y5P8PB0aHkvLXxThMf7S7GrZGWVCfROqbpvU1QgGM2WCa\nnyprgJ+apZ1ME4WwqoKFx2NcE7Vl+1SeGHkKLytDRAWwVtctTS2HEiahVe/a\nxfywM5QcfQgdAlyogKyxUFCNisqxozm/5vxseLTsKvpaOmgZwKOgmIiFW68T\nfw5egVA5KJqPeNcwX/Enkk3sKfLuilTKTDBVo23JcYWTwv5FiaY+p34gzgyg\nR7giEwunsbLdvTO4Q81Ih4R1hiVMJ6ngDOWjlFfcV+/bYy71oeVFD2tbHeGV\n7QfU9Ew+T2YiKhagsQtLYi2aXxBvhf+UD0UIjbr+ZNptwH48U8w85JHCHdyo\nlgvG/jsEhZg0bUBokaiDQg7N1OcPhiCno7W0oevZ1i4TB8y8pubR/0NXeFs2\nPVwHtqZpjQVV5x9dWali4TQZGpOmaaIhfBbq2VtL+kAKzYRkj9CKQd2AwV/H\nOwhH\r\n=0LS+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZQq67kTs+sNnu+bXRO1ZaQuC/Nn9d5Ug7VHS2aLBx5AIgEHaBfch2shs00le9EnlNamcnqJcgwZWOXvIkzOrxio0="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-alpha10_1569758882580_0.9750827585353039"},"_hasShrinkwrap":false},"1.0.0-alpha11":{"name":"hasura-cli","version":"1.0.0-alpha11","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"3e78607ff8dfaa406220cd0f745c01b20587a77f","_id":"hasura-cli@1.0.0-alpha11","_nodeVersion":"12.11.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-KnMQtgqr4McRtKU7zRxPj81+ETchTVsYxLxgXMNbVh435+8oHe+uQk1lWTghp3rOJxdkdym9kjutRZpBs4yAqg==","shasum":"68888a5150d1070b62a5aa4debc1ee161c1567e2","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-alpha11.tgz","fileCount":10,"unpackedSize":21063,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkKBZCRA9TVsSAnZWagAAS+kP/2cVMNX5PwuTgk3seukV\nWiamIDu31wFhaoWRDfLIV5lDyiWZ43KyYSY/0xfhhbC3M7imR0aiOHcZkUDt\nhWK1a6RFnUC1ADJ14ptx1UFYNpnsS3df9GzdLYvo5U8e0eY2oGmlteg+uJii\n009qYvvpwT1AyKyAd+LD0Rc+x40g0jT7aPSvGdiQLhLPqJCC7XfQbGLlksJm\n4XYiDRRfScWSLwfJTKNKeU1Hyh0Isz9Ln6UIm9A7D5A6srGAdHSN0Fx/Kt34\nBMjdCn8E27OkRX3/va3MhgT99FKRFF3HGrAsdfpWTkDNmdt6Z8oTZqE7MS+j\nMbDh2igGlw61Th+t/8LCWhh4WzeiGdqkys6esO7W7ez6eQK8Gyul284Mnrsx\naA9fSsvVd451M6zo+YQ/PtZeYPz1mZsus/m0mQQiaQ5yGKGnqricAI9BSSzy\nSHZHs91eannrKmcyu7sCyqiKTcEZxKpMhDDrraUeWDyWjYGOOJm9HpQF+1Se\nC5DxrbXCIbTNs383tQkxQmhHl2sh8OetLfeOdKJ2s90I7SLJajGW3/MO/W62\nOGk64OKk+l4ZopttLoVrT/usDLHyPSCeaRL+IrUmJ4ni+Ta/km1OyDFTftah\nUHGuVMlsTiTxNXaNf4zWB7nEuV0CCi0FL5KYpOaIHXXA15uXqbg5lKzLRZ8P\n5+NS\r\n=tKKg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF/vLjH0eN1CzkCCffeSIbkqdaCbFbzpeD/ASsvke5vHAiEA6XfVng+B9R95zTmSotP5U/GItWNGohOg1hxvc96qZcE="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-alpha11_1569759320384_0.17213088604771998"},"_hasShrinkwrap":false},"1.0.0-alpha12":{"name":"hasura-cli","version":"1.0.0-alpha12","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"45fe3122134e96cec670a0894cc7bcd04d0916de","_id":"hasura-cli@1.0.0-alpha12","_nodeVersion":"12.11.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-HInchT+7UGF7K7ZEpkjyGERxg+cTJegqJyUgxmwzkMI6HBg3x177RnUokQxwAqfkuOgtsuMwhqUOOjbPEumPKg==","shasum":"8350559e78a33730e4b455d86a1526aae552ea5e","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-alpha12.tgz","fileCount":10,"unpackedSize":21063,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkK07CRA9TVsSAnZWagAAgIcP/3mfJ60uKTr7fi2HXDyv\nY29NyFhUPUYeDvw2whI4I7ZhQTulgghKfC5beSf02+4EUoSZveA8TUMXIK3C\nBfQi2VKUZFb243ZOOt8vlM62cMLmpJZWDKhby8dp/LEeI+uISzV1pDTobRhn\nExutaQQ7+ZjZMokMop5APHP2KLCI1Kk9BU/0KiJzWeq62Fge9xYQAMm3EZDJ\naI+0NI3Hfl0bwn0hBfrdytOwsHfvy3Thz5oBDcSGgqtjxKh4+R2kxXRWa+Aa\nZHGwY8DYiD0Y/vUcOj6eAsAfrHjDtWP9uyvCaaBMaJAA6ov7JCZ9LU+cBHXB\nu5DZSRzVCq3Fru4/6GGDaRjCQN6in47CCCEtcZjnr+d2lxwkmHvjEyqS7HTI\nGrPEHurWUiaeGVGsPSgz2A0PgdhdMZQeXiiANscjCv4DguHJ9Pp494VCpK45\nILYxZ7g3+svJNRuuNqf9eWbn+5J5yaY7wer7bIbj8fnCja3qiegYaPBnp0gu\ngaMAtoOffpHitvaC6r3ac539ZbBYySw2kiQGOtjjCEmC3n4yDGLGFpMsE2N4\nFsnoS3+AdcAXGIdrOevp0N8v6NH+xnVo1zlPbgO0G7zKRgWNRGRrNdiWRB1p\nLe03PBqY9hwwMi5ARLUDhqT4rAVi765pwLzm7oqDj0KGCGHpZwT0lDRcN2El\nFTSb\r\n=m6x0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD30zqTmssMy6TCOtybp3pmB1pAawSqI7Uy16hGS0vC7wIgSEjn9wbsOeWduH4WiC79Szjv3dQXYSz/cFOhOs/US2U="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-alpha12_1569762618879_0.3232644012312804"},"_hasShrinkwrap":false},"1.0.0-alpha14":{"name":"hasura-cli","version":"1.0.0-alpha14","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"a22fc3d9a52673c0c25d28e36af04e9d0ca7662f","_id":"hasura-cli@1.0.0-alpha14","_nodeVersion":"12.11.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-/9BKRVue/72Gi5v9CNk8xH+ahOemDsiwn/0o+gFvjMEQtiv7fzOKuj/ELfwycdBl63dSaA5odzS4uYobRdvQow==","shasum":"ff5fa6699310092a36774a45570e3db1b74e1e05","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-alpha14.tgz","fileCount":10,"unpackedSize":21063,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkK1RCRA9TVsSAnZWagAA0isP/iBAAKkGFrVMSY/B9iO7\nULMfC3gN/HTFrrJKg0ZsCoyvZFoQZpUHDasOlRO+OZSO19jioR4xf2YIqheA\n4ktfQ7bLL7yNXEYjvNja50OwyXCaA7V1eRXdCfTkWZCGoA4Xol6rV6cpxgZj\n14swRtfrc9J5cw7YoFHM/+XzZZDPhnb/S831q2dj/1a+HvyzT7oW91Mw4emQ\nf4onADpmsL49c94VJ8O9HYIbCyI4p/8WujBVQYua2yB3kYzCQepMYiCyeDUG\n+K5MfNc6uVooudorBFkF/Q0LSD8tnLDHMNNEKOZT/9hWTYKJ8m4RbtepKc2h\nMrlGe1WHQEmqwn2pzJordWD215JMsnvSAEylls5u4X74rzbdpiGqNIQYbluH\nImzi0ANQ7RINRZa/CP7eGk07KHh/H/NXNQTU6BG7Xz2uTSWX0CoCArdWw7ye\nK5PsGuOvrBALcZY3l/3evpzUHqrRYgPWpY9/MuqzvWf2Jlr7DMhA/JLm80uo\nAkSwyIWnx67c3uxoKdgSvbYrTUudvDD5nFNIc1Nx2puge0rV6zEOs6YSG2/d\n1CMQj+v7VhQmaqhrLPdf3Nl7n7nX2dGmAmt4Xd5fvT3yiVVGZaoZxdfkpXLO\noERjZvRcO7HKgxHM+5sj/aTPPamINJYrJqzwwTJwlVXnuyX4+SdDQEUHODKO\nen/T\r\n=IPTS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFQlqAJY/EkWL7CX5nTDQdctLAMxcCcTarDut2Z+vvT+AiAjH1GECkW1C9TEe/c7vq0Ej3F5XEZ7t7EDeBC+F7+kiw=="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-alpha14_1569762640414_0.620554352962229"},"_hasShrinkwrap":false},"1.0.0-alpha13":{"name":"hasura-cli","version":"1.0.0-alpha13","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"44a50d52c21d479b4c9031f290ab45f25843d894","_id":"hasura-cli@1.0.0-alpha13","_nodeVersion":"12.11.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-eRE5eNJZxzQxN2g8rGq9fUZGSYIOdkoftTjDiJasurPCI565fDFnHJRdBqsNJwgVvmmSP4cXUEezXd5HPhnv0A==","shasum":"9165c89e11fc900179352dbadaa78af87a8a169e","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-alpha13.tgz","fileCount":10,"unpackedSize":21063,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkK2MCRA9TVsSAnZWagAAyjgP/24NKQ6gYYk31/6Z/HP/\n47NnpGCvdgrObn+rkzh/V7qv1Q938sRQWYeFViYDKoUo+dfPL39dMuw8qxDO\nRMqikgKlYnuC0Uiwkp0ILFD+dOo7pCbJ6xVP7mHGOm4RaxFIe4Nv53AkyUoV\nO+jdP9wBXGK2e/12RYqQe0AQu7ogJgyKcCGSTRc4nDgHr+Y5re2iSZoy+LSb\nCP7P7kippSmuQymGiqrPKrR4INvqeOTTKXv6a8hrFKLNBsdtCJ7bSDXe+E2E\naRY1o5OC/LNy7UqIsMFnNB9t5j5N4JYty32vUcuStx/RlbZIcFkrRY6m5WV0\nUSsk/bzY0aIC3m7fBvHf7wu7WUkRTmfk2VYc+diE9/N78lpGjRJRx498bfcq\nhXVkhYMKFGUhaLEZzK4dwiwKVLX052yKH1MEnbwcdSsQ5w/ZOUR/wpwHd90P\nrELl8QhxrydY4jhJVFRVsEkfsPqf7tlyhKi3lfyplkMDamo8gISXd6SB4LHm\nExE2pzK4tz/yGk5jDapT4jbpH0Ur8LuheLNwwd1hjny/n24UZDtYA01YvAAT\nN0yQc+xATud2pm0NImc+C5hNv0Uifc2Pp6JxOAcDJVNrpDoAxRXRuOzQgjdd\nJ9slFQ/K2vKJKiitF2jUcMn9oAaLy1RClVmTXwQCrBpbdlJauEYnSsqzdeGV\nMPWB\r\n=hgKD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDlo+e/nQabR3FV6pz/5WkRzVA2Ra0SKsuz/DR5lzoFbwIhAMR0o/z17qLbneESVxPmlNuTQiKFFl0AcxPZsOtQLkID"}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-alpha13_1569762699554_0.28121037524231385"},"_hasShrinkwrap":false},"1.0.0-alpha15":{"name":"hasura-cli","version":"1.0.0-alpha15","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"60413f38c14233fe4fd6c8ba6dba1779fd7be7ee","_id":"hasura-cli@1.0.0-alpha15","_nodeVersion":"12.11.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-aqvOL2P0CTqhamtWGg6S00ngEaGp3QkGhOznYcmLAZeeeTIJA5peYBn7je1f1vXrMWhld0bFtG2tNHsaunHtlw==","shasum":"b974140e7add8a15680c2d8a4df9e1fc50f4ea8a","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-alpha15.tgz","fileCount":10,"unpackedSize":21063,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkK5lCRA9TVsSAnZWagAAmIIP/icYFpc71X6LZLT641RF\nXfPzWv4MO6uCfF73tDgVZhcJUsIvOTtIkAwXdbFZFDr/L1klmJwUy3NJ/9Ef\nOEzPRFS8C5VV5wmHP2AhLzyUcWvrHSsHgGYZLybgKeiqS5+xriwpn41tZifn\nOUkAsOgzHMrk62O7orVcXVG1D4naAXacpXPpHmXMDtfBGyczuHp/qSUpXphq\nsNTtAx4kOUDpn1p0uvP3PpucdrALSAkBtdxRk/Vu8AFAkIWc7XaYsineOWm5\nNLLPeikuDYyVEXt0eulngSoiZOqROnoeXjAvd7SlTVt3OuYjwmX7jCF5/4mP\nFm32lEhZ7L9lYlo4wUzoSqVLR1U3UXErb7tDb75UHCS05f8gNz7QmBzGbB/w\nqH1tQ4G+PI/RtYt9taxirck0jIp6/zVhIgZhCmK0o3wBcv/H+lwArMbCyB6h\nrQBXoNqjxHuCxdj62/kTFITdkhNqkB3/psYD1tgvH0n1++ui3MpcU7kTLR4c\nk5j2ibnG3/sK2WyFRDqD8sVI4K/2wyK0WyKcJiCglfZgXZTVXqDdDc5x376B\nl5b7wFdSreWPN0iVIo7X+WPKVbWm0zJu3ZuwlgLGVwWwZoYnhjt1bHmAyUiZ\n9xWD6aUNO8X47lAv+oazvdx0py36Yvk+gqpUNiGm65jlt84mNUIJGPmiypc7\nWYu2\r\n=BXh9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAsCgQToTUBwHhQc/Duz73mO6hvnIpYNX9bi0qfXcd/dAiEAvVjTdarQPDtrOObGMmhKfAly0Jus5I0KEDWIzpDG0G0="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-alpha15_1569762915952_0.2101665712904297"},"_hasShrinkwrap":false},"1.0.0-alpha16":{"name":"hasura-cli","version":"1.0.0-alpha16","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"aa45c3c1b2802c949f2cc312650315c51b4bbd52","_id":"hasura-cli@1.0.0-alpha16","_nodeVersion":"12.11.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-DM1f/7W8IzpW63Ne29ZZogZqimTW/oPMpoL4Q/e/nxWgFRHqkqe1hSb6rcXfAhg4znZw1w8D9qONP8VXrhMa4w==","shasum":"c1a7e8e9d5477eebdcc86da001fcd1c921506546","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-alpha16.tgz","fileCount":10,"unpackedSize":21063,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkK5qCRA9TVsSAnZWagAAbrAP/0TPMD71hDNryWl/R0WX\nHWtECxYdUcSJVxLUb7hKP/i/P30CJJ/AvIUGl2QcQ7EMTHpIVA2luFTGP7VX\nBRF+gkdNkfn5USKrkTSSlHIDZ+K6BzWvi3E+YMKAr0211SxwRkwj935JzNdf\nc4BNWn7FzgeOSbTtmuAr1NgAzB0glHjRU/yNl2sG6y71ng48U1qpI0AvW46d\n2TzfWH3mqjNIm+7LJ/hd5b/UAIlMyL1WiPPZFBvX7HAZyjV5eTzgNwENKlxn\nCW6BDw8hviMPCjNHxb7007khmDqOSOaJa90+M8kVWGPde+3CXI+ssJlpUmGY\ndMZwGYYCOsbE+Y2D7QZsZ6ErZiJJTZAfUjwpM7vPnPhyfYRqP55iw3K3x+PF\nDP7h14aS0zPNKHLLHaXUKW4Nl24iNCh/4GiHF6X5lsTSUVnZR2V9LjQuDDEw\nAszp0FHLR6ian/qYq+A3b8kSkxI6+CCCKXVlL7skKJo9hl4OdVXMmQB/KJ2p\nPF09fiZ7goUF4J/r8V+z2ar2bOMUjy5HBLp3XtQr8JTovSbR8Cg66zna2TwN\nJYWw2ml9TKqCkOVWrJV13pemvpoydeClCMH+xmj9NjcMFAjYFIX0m7WWeWi0\nh15HIufRNHzbcm9MkYZ8AtaIsznNaSABSQDQ70zzpFaH5XKcxYi2fhvF0bRp\nlyPw\r\n=tQzY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGyFEtKZ8/F3eqSMvTbSWy46wRzG88ZwScSHT09Q5LIlAiEAmIV4jaYxgHM/i3N85vv6D0y/YkYp66RUi8isvEpYDOc="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-alpha16_1569762921993_0.7604909979402559"},"_hasShrinkwrap":false},"1.0.0-alpha22":{"name":"hasura-cli","version":"1.0.0-alpha22","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"15a2271043d3b968277de70049425c565a1fbae4","_id":"hasura-cli@1.0.0-alpha22","_nodeVersion":"12.11.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-iZbKGGJhWkVeo/UT/ddrUNrLkB9tlDFehJr51soDi+1D1cwYZfPlCwkoRvvV5g28jTcJ7tyUg6+0BP/l9tv+Vw==","shasum":"6c087a820867a04bc99d25b91e0108aee1e716c9","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-alpha22.tgz","fileCount":10,"unpackedSize":21063,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkLFOCRA9TVsSAnZWagAAA1IQAJMDquwxUndQ3r9iKvRn\nTC/Z5bTbZ3biKRvtMlr/uOSMyWeyES5MGnYgrO+lKK4SMTzktkvu2AicMq9l\nPCuhQRIKULw5AYVrc8sACs8bWp8BnMjiA6n9I86tV8V0v57HtbEin6elV/Jp\nBle7N2dr463P5nA/0G6eUj5UzmM3KUiG6gQQeCsiReLAYHm9pzQlaJvdvL0a\ndOt5t8yuIbJ2UTtLeoI+2b1SjCOAALzhUbeMWIG7fO+UDzeoyNeUaTGFF7Ro\ntU3KkxfqTsyk6U4xVwPUtInBZGC1XIC+z9mGbv0EyC99l6pcKv7LV3XR4pRj\nM0Zq2QqLAoIwiMwKw3iW0pZ1cDGEvedpwI3qiqnH8ia9g5A3tg1ROicv/Rwz\nocYyRb7W7iizHNhEnaQ1eifkKKGGOFNqYJPK1dlqJoNTdr1yIsPOYPgmPNB/\nv60qGzW1WLetiNSjiM2cRjjyTtwDVMZwjVZZJIAMkWUZjfy40EWxV5XxvM/b\nmlY2A4pLlghNwJw47utIeJBIsiWlqvdtp7MoQXrpILM90A8O1RTtE4885LNk\nhiEzuIDpOPo7gYD/jAc0A0R4hID3tBgqpm1XMgEhCPAbPPS4X3xEgCy7eFsD\nEqjP7tWAXGWevsu6O+E8vZNrxZusa9saQlySBXzSqezXYv2jifQOT4P5UOCq\nY7Lt\r\n=+d5V\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHIznZTaJKxBX809Y7XvuDa3s6B6gNnV0lV1aHgbF26fAiEA5ygDS+xYOuIf9b6acrZVfI58/EoCvLudslAUboikzfM="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-alpha22_1569763661850_0.9095897944222928"},"_hasShrinkwrap":false},"1.0.0-alpha17":{"name":"hasura-cli","version":"1.0.0-alpha17","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"83dba9b3fafe2294e5f77b8df8f930bb520a373a","_id":"hasura-cli@1.0.0-alpha17","_nodeVersion":"12.11.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-HBE3ZcvXllr6yY2iO/ikLO/GsKAh1WmBUseCOSyk/lLzB5I/Ue7Z93C3CsR4FiaoaJdYQc4NvaxZjt80WIQJHg==","shasum":"d0c5f8e54b5bc47ba3f94317024e2377e12d2556","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-alpha17.tgz","fileCount":10,"unpackedSize":21063,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkLFeCRA9TVsSAnZWagAAGVMP/0+RBnbXcngqkMy9ucsD\nP1z2siSUjrNhIYkXo/xxsU6UsW/bKGvyp6Nr53RplRKoHEOiMxQ9FBONQ6mt\nxX6EZFRCUHx00hLx9rvLvc3GjnkWZEtGY3p/l6UyXYV8ajO70vs0goBY2WXh\ngEfJuiQwXY5et5Uiz/7uyKMqpfxg+gUgUpl5bYki2VAjdFl4wHNA9mKHA8FO\nLQXf0ioOWgoweDuZFT7zuNldCZ5jkGMrfFRIOml07gi6T/9cHHDLhSB31IjV\ncDL6GW06i3yDeD2fEsSI0BZy1M4jWwhwyeBsl9NlRogQ5E+dWhRNV5zRB1Xb\nME6q0YnWuR0iTkwnWnV+ZQHprpLRhiYnULoA3KeLOVeWoW0sjSdsV6IwOOjf\n6Olw9LJgZH82uk4Cq447DsWr1/s59XWXY7+0znYgwlDE9CtPQxV0g+ocX2RS\nIFEmJLlpQyplYh1N8j9WjiSzzMrS0AIOTNmvAuuUjeHDqA1OPtwF5Pt3ddcR\nOwNiyWJQ33YuLneP/CwAqmTP8GgJHsr88V6u9Ruy0ujkEwvh6vFn9FtZgAeh\n1sgqCSeAzVEPcnC78kW9RAoda/CUlqBqptsM5/JW9isrpj6B/aztMpSUSHRp\neqVdwQhB7AZquQzQRXFLvByUyuOKaMwBRzLtssnK3xTPtuOd5l7nA9cMVjIY\nvBEi\r\n=Tftm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE+SM11poq5gFdh3uxxP0FkmlwuJP6DTherE4VZq6cZrAiBIhey6ZSMkJkt2pKG+aeo5FXjZabaXwXN5iR29TAxrrQ=="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-alpha17_1569763677525_0.9475555289688677"},"_hasShrinkwrap":false},"1.0.0-alpha18":{"name":"hasura-cli","version":"1.0.0-alpha18","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"76875500e553f90a65029d97d7be315fa94a2da1","_id":"hasura-cli@1.0.0-alpha18","_nodeVersion":"12.11.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-sRH2hZHyV9GbvhQJq6R9GsTujMHK9jND1yIoPiE00f7N1Q+PrZHVI/3fUYfnW81mv5SESMdeEGtQy86A99LfSw==","shasum":"2ff56d8201f15f3304a7c717ebc54545d198b2b5","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-alpha18.tgz","fileCount":10,"unpackedSize":21063,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkLFwCRA9TVsSAnZWagAAo1sP/2AjwMSqMUFdbxHNa8Oj\nTHV1qyjwHHpzYpzef+7QGLsA8ckW4+Q37qvcLehzH2OgtpXS1qOAUlgtA3Pa\nxOnqMES8jsUL2uK+8XiNX5K7plRN9mMAldElKvv3wit36oaP2Z9Ok/w2l0W5\nn/5wTRL8Q9C31O4lhZBLKaCYgCFvSFzLGi+n9Kvnvbu4VjmOyi756+gTzERZ\nhCjdaymafLw/yWThDGqPmSB1k0M/2Z1Bf9DwSpbRF9FrSZKg5aQAHkUzl3JR\nE+V8PdQ5t79HKQpFyNo89aeif5CXxhSm7XUMd7MvrBxQ+u2yJmiAmZRbQgNq\nSt256GjTedK5vkJ9M294UHlWrLsnuQkL2OZfzNgwmmZ2CT2GP1spJ2gnniwq\nEGXRp4+n9/LxREC8q7tOX7rtX4ByRH6Sp4Qf0/tO9DnoALEN+RD5hODbDuPv\nPkN5Ek9YrXw+ZhccrzxgPinQEqCL7fQZxQCZW9L+cWxU5cI+6ZxfwP4fu9sR\ncWvWQ4glPcnG+rOxN5Yd9R/DxA6h2ZuCwKuPDDfWsqVpgZEj5Lve+8Yusb8P\npacLRtpc18Pswz2RiGbUhXDXRAZpxMzgslEaHxsowByjnhTKqsPpMZhhgut4\n//Rpwxb7xXs/QrxLeuelaFRZn4TVCKpPpTkGYKFwV0WgEIuqrYS/DtPfM8Fq\n2F0h\r\n=Kvk2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCE5nTjlB5VYt9HG1l4n+KAyRnz0gMQ29pmO1LNe5ur8wIhANBGFi8uWmn4s4rA4EogwBkzQn3Yc84CyqhQQCYqC/MZ"}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-alpha18_1569763695489_0.3547138920750188"},"_hasShrinkwrap":false},"1.0.0-alpha20":{"name":"hasura-cli","version":"1.0.0-alpha20","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"45b2019ad098e5477e23b5a079bc3bcebd54036e","_id":"hasura-cli@1.0.0-alpha20","_nodeVersion":"12.11.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-wUZWUhkQPn1KOr9NtKKvn+wesFOK60xGOsmh7e2q0uFQQRXM1Kb8WJKp5GdoXyxTldePTBec8JoZ4ZAp7z4tpA==","shasum":"19c6ca4da160fafe6b25164189ce8cf4e9ad8682","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-alpha20.tgz","fileCount":10,"unpackedSize":21063,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkLGICRA9TVsSAnZWagAAJo8P/0uYZyohfapdQl2UgJKq\nlDF59QpiSZLv01Kig0V1vWJFW0a1kbxIWjeTBBONuGtr5qcKjXcXnf7jOHnC\nYab8tL8xJRKeI+TPziBjvR0BZrQ16vWAu7oMU5Qu2n0KuZmBD7dm1OBd9RsP\n377GkUARx5260a4elzuoy04Gpjw0VL8FObUjmM/vffcyLFCf5vAYZFtSjuem\n0cy7S+3VWaTfFNWtHJ8jOeygoK0SjGRYsvBVMxrL8hK7Yjd27+hTAv5GKn4H\nvxK1ekW/CJsYxFM04A0nmLvPKqvnisK85JYNukevMPKNPopHIo7jWJt9ACFK\nCP3lyCwE9Vrlnc9Reyd3vsIpj0FG45RQCsuxE4uZMi1ZvJHUCZ3YsolXKBV/\nvWtwtIj9XoKezg8bZkLT/kqhn6NBB6viYCyh5GdCJWfDO1ZTM/gWChymBCCe\nw5JiZm2+LvWYI1UXuiBZc5HV4Re+XpLZ9Ye3+Y9GixChSPqkIgkkafUn7SMt\neqGP9epBm1ka+oClAxpsfc89qoXZkE8HdQLUaAoJoeEyVEk68ex/iA7yY7CH\nYiHiU4iPqgeVsT07yLoSeS8EeQ2iiBzQbMpKiYg9qBtM0ktJVfzliw19/p+6\nIcW3FtI51CeTm7bA6sI49B5C2Ud7KPxXsHOvD7GXDmoC2R4dkpnDOuivfUmT\n+uFL\r\n=m6b5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCusl+q71Oy/wS/PPsM5+XPbbu1mdWQBMCjppJiEsp4HwIgG79Wc4igccnsNdg1uRVSuYZ/T+TCl+IMAtI21Sf5jGg="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-alpha20_1569763719330_0.01213631453157804"},"_hasShrinkwrap":false},"1.0.0-alpha19":{"name":"hasura-cli","version":"1.0.0-alpha19","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"470a7bdd840fff4830356b947a75f117c1d8495f","_id":"hasura-cli@1.0.0-alpha19","_nodeVersion":"12.11.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-l8MAkSUJ1gkdfrTe6R1qvVfJsOVchFrZk3nynacBKv0Tv6pYGVHP68TJt9SwQVsVE+NLjr/Y/IQ1pma9wytZWg==","shasum":"663a4cc3b649cd0c5a95b433987e930d0f44518c","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-alpha19.tgz","fileCount":10,"unpackedSize":21063,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkLGXCRA9TVsSAnZWagAAu0YP/jfUc9ztxFNQbavb2z36\nYbZr16oCfqn/lU0ZpFGjffynN1i0vKCQuiIUBbbTZAhiIN/Zb0ndn+BGgPp/\nNp9sfkbNPvCFVc70nE25z+Lrmigu6jnaU2AGjmueKnT0jvePuxeXC4mNXd6w\nQS0Gg4cB5cbnqQp4X2z6uUxJzh1sew4o+s94RJQgVVcSg1tQxIVl2UhHs+1/\nQ2opQidcrooAnU6KpD2UL06Ypn8ESXH1+ij8WBlxekkGDHuVdUxgqkdFJA4e\n4smUW+hXrmSEsNbeAAnDXQEWv7EydRpPDtjlc9idLALtjgCsp4tgNg2DNnxM\nHKBvlMSe/CBdObMlPHYam8qlfzF9q/ODUu5GzUjpJKYPhWUBv6wWVz09rsqA\nBvIGqJp87WS9qXCaw33EXpniA/Yp+3pxNKwNjCRR3yuJP4YGUqgBzdPGkmVy\nkQ1JEyqollgmGTiaF7Yw9YvyhjCRAwZqytccU/dwituEvYh7OShQUZRinC0A\nBqGxGIPNH+cwguNRNg1ABtpth+dAw9288a/ZLUOV273oVfh8+EZOFNBeoBhQ\nNzXO+QT10hEmwayF4UQgsrqfNO4USFtg2jKmXH/AV5OeqoJwqw4IPIuTDJzs\nG4uRzYphuLcPBA4iYwUY84n7aR7bLDje/N83dL8MT5ru4ptjCaWFxWwonpLI\nKdev\r\n=BLfE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC2Fc8x7C6ibRCkhaP3JDMmPzK7NQdJjwYzlbhD2YMgegIhAJlungNyF5RZH4DiwVKkYXMvupf6DJO67cn3VUvk+5iX"}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-alpha19_1569763734741_0.4654924442877537"},"_hasShrinkwrap":false},"1.0.0-alpha23":{"name":"hasura-cli","version":"1.0.0-alpha23","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"9ece89c3c712722fc1dcf271abd63e922499a7f0","_id":"hasura-cli@1.0.0-alpha23","_nodeVersion":"12.11.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-rGDBi+0zBu3hNhbgct6YeRuOYhnLR+ufG4WYZeeO5Tb5GAm8bS2pSLSzrHZB8PUq1MAZFSwZ2AOhkI6vIYEwJA==","shasum":"0979cd631335740bdef2ff77a51daaac88713957","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-alpha23.tgz","fileCount":10,"unpackedSize":21063,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkLG7CRA9TVsSAnZWagAAEgcP/iG8e0jKkaDEZ1oGHWqV\n6gU2MVdzpu4Ys2dN0U5/MNgWKnpBlPpQ/W5eMIvlsBJlw6+FLUbJQkO5g3oN\n3YD3/+fExcVPmEY0r6cT8hVs2hkjvqiu1LRykXP+O/FGtWzygscYd3fg1cbq\nn/QclHJr5mp+OMgtrE3iRrRjKacgI/GP14L7xN9zTRmbWcd5ExvQ+unpmwNI\nuddSuNE0DA1KojakCz6RMTXntL27kNAIVSQbVYNqbVcSk6wR3o9BBHHF8Xpa\ntdDoHShKU1LeHDraeaQoU9DQzkl125wl9hIa1H2wD3SwdOTpmgkvmDffoqoY\nYsYhiIhi8VZcFaED+bR/A4MUoiDWsDcxZkgar/1tDB+/qs3MfFBDzU7N+0Ug\n79gv2iAacITBmMNO3viIF9PWthLw6K98cHQaWYTteG6jKezYYdVXA39pLE1N\n6thXuoKRHDozwp0xJN/FCIwNMTlMg20WSHvoJ/BG78VEdWhVOgBW9FzAxQJl\nJSuHErTfDVahdJTDhwBpCkpw6Bv3lG6/jlnXyHMTT9zgohPAgww1zPV6ucIj\nokP8a8evUIyQMu+sApkpUP3Goxfq5vCDKqJgpRGZIPZxIkNF12ZC4EyhmV5p\nGsGXR1/n+W02o9JhH7E02oFcXC+OYsfiHWG8VD7skSh9QsP8LotBMTyb2f76\nX7e0\r\n=s0Pb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDMoykfRZKZrFeaJed+FtcAISt3XdKnACxOTjK0JCnCZAiEAvn0VOyjV6ourHaOF4iGExvM3Gcf6vEEMKUC0PgXg+Fk="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-alpha23_1569763770887_0.4921771231605645"},"_hasShrinkwrap":false},"1.0.0-alpha21":{"name":"hasura-cli","version":"1.0.0-alpha21","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"e99cc363e064a69c284fc813e9c4dbe9a09e1add","_id":"hasura-cli@1.0.0-alpha21","_nodeVersion":"12.11.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-1aWJulpR0AZ6li9HvVO/PuknprNbi0RhgTP9dvjDL9B2rNuA5EOqP6vEM086QQ71zBCZBTw3co2q5BOtd8eTPg==","shasum":"b09174cfeb20f61ae770b88eabf69adc95a93979","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-alpha21.tgz","fileCount":10,"unpackedSize":21063,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkLIrCRA9TVsSAnZWagAAUm8P+wb43ydN0Ub9uX+Tyz47\nl5h+vxRQUAiuC12KOj0ka7w/8oGsYt134qRkymCKqWt7XbkeE8cGgO2md8BL\n4jAYNdIF0oNpZYHwNYrJcwFGo8rIM8g+gHYq9FsgP+EPZt/LwpYaTmLeUMGH\nxhYsDFSXmpLlKUSzYq5NGxxmDio9RDg0s636ug8G6zYaOlsk3di225j9fGvy\nxLySFNaL48QTKCFZDufo3JUWrK9JPPzCYJothWpP7cqTvXqgI4zt9/0BgXju\n+Udz5N+YHPrM2a/MoxoIhqXl/cJWbPHF13ZuIovN4niJVzMaviMdUE3POJ+A\n/DGYx+Xohdhxkm5u0K11uumZtwAjFVDqFMwjxhSfjmIV1b8Mep6MpfFwfgvc\ne6bm9HCAAiibqnFM0zvmkwvIR6585G0I7lSwKC4qnIjqDIyWTSXtchSOq9P2\nstz6AxmcumvJiIwJfjMh0UuY8ibL5YCbUO2/lAmoAuc1CIkTPJCtsx5VQ2MM\nkSkxGR2CQFkVU7aIC2RRf75pr6faa1ivT8UMQePDbGTv3Ea+4atrFetqGjCe\nbL6VvNRp8v1Zw5BH9TDG+Ji1726Lvi+Pz7x4ucVntiCr5FkUMfN8tHfNomDO\nWIHL3FsdWSvhTpQhpw2jRY9Xnyl+z/pazvEaPF/j5IFETNfsqsHiINIJnNOm\nuqTI\r\n=FZnP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD7+SoPeH14Hp1gDXdrK91Mu5fhohxTgg3mEHqcI/kIXgIgHt+j6rOtj2gMsbBN+WqUB7GEWJ3qWjkqfUjoO3qt4nU="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-alpha21_1569763882717_0.6326835771595662"},"_hasShrinkwrap":false},"1.0.0-alpha24":{"name":"hasura-cli","version":"1.0.0-alpha24","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"84e4ba765fe6a413027d4adb6cc752610e60290d","_id":"hasura-cli@1.0.0-alpha24","_nodeVersion":"12.11.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-/buy3AVXIMbcfkNMYXEFXibBQ7ro0ADmftQuYWFkCyjJAU3/VCGfFR2LASzewXKQ/PSl+PNZE7RDyEKcug4Yuw==","shasum":"531d984db409fae98d1c8ad061d43b7a47fda7d2","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-alpha24.tgz","fileCount":10,"unpackedSize":21063,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkVQOCRA9TVsSAnZWagAA1uoP/jZGaQY9noxX7a4fWk2r\nMZ1cno5FJ2rRNUHAUpWmWXNbw0C5u62QOnnrxA40ud3T1WjMNGhBxepUqmJ7\nHPiNICQ0JSuwkSvp02vR/A/aa+BJqY4CIAj4rUpuGCoGHVHQEahYhwDwz88K\njiDcjqSPTYrMEvJ63gBfqgh7XWgRVVmv23TQOQproNbL0QdQBOXQM8jT6yev\nU0GL7n31Ae9EmNkPiqqM9r3k3XJsyX783CWeftL+uJhng/fnXWPU6OrdFACS\nuEBTDLW12L8hZ3LFMlRULaEv1Dl6IjBe6lbykN+ofo2uXkT0I/UingckZqJt\nnG+hMjzDHoNdTzxH1q/hdiyuhodZI6+mzZohjEskxRbaCGozg+CEBw0cOY4D\nyh27K/VEaGsOfo4i17JXgPFohJwjPuswFvs1RUbOEVVuBAcwrqXss9EWwqRV\nrZMgBDC5PgzTs7SR8sl3huZadwigw4cxHUhhDGevYAqvJpNdVNAKEG9WB1kf\nzooB6yegvLK1VDgLYY12DWMALHSBkIMm80+8Tl5V3PfVBfynaclufjfUmM0N\nA6zIRj/VwF72MTAbyE/ww6uJYolwrYRGv5DnSqtH2lLj9A0TGzEdI44yFkjn\nv6wBFoRuczDZmrAugA3hEGw2B+iHkR99OopRY8o1s72ZzBhcx22ZevKRplUu\nHzSD\r\n=5zQG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDs1G4PqahQOiCKFQ0wPvM3lJ+3y92b9I9ayO74JtrFqQIgQdWdoWKLHgUTnm5fWuynHpoV7HjQzsZuQ77mXurkuQk="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-alpha24_1569805325479_0.5931094069003662"},"_hasShrinkwrap":false},"1.0.0-alpha25":{"name":"hasura-cli","version":"1.0.0-alpha25","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"d3a060c2598494c7230a0dc80ccb706bb5f175e9","_id":"hasura-cli@1.0.0-alpha25","_nodeVersion":"12.11.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-/LdoW0+CkGg1zK5wte9AkeEFtPZvpevKN9WcPPJS63TmcjlL0/S1PFubg0G3Xmk2nQlm6v42SfZy/cy3e1+36g==","shasum":"08a74ba84fbfa4054774a041c6ab0231677a053e","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-alpha25.tgz","fileCount":10,"unpackedSize":21063,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkVgWCRA9TVsSAnZWagAAuskP/28qfCmw73Gbetc+NxdC\nF9uQzyenBwVa3KekxQ+x805e2q++9OrtPNVvMuSPcAO75PdnOn1MKH0Gyy7+\nGVwnKmzs6rd4nPgsrq0dl//jihkm+YupgI8U6ik5MhRqqi4MCATLfJJsjme6\nvacIe3gehcA6Ag5R75qZVbyBEPRa0HHzlO2CGA7dc4JTIxfB1Xh3CI5BdF9h\nzJQTwNrXRnqDEdkso7nI0gfIT8YKFhJ1TwN/52D2T4w6sq6F9nxErtlIjnPe\npXmnIdxhosDVqmQ2suLWY7Wao23wQDPJlwDMXjBBng3GY3uMGj4ajieN3qtH\nGauZzpP7cjznF4U71/QJPjN+2EGZKZtyXgt3LRiWwVk0UUlCFZBUMSHvbYAC\nVqww4CAqFISFUZdQeyUHLlzkauIhSybWgjLL3u/dO+19V1IU4dz3O1BzUkeJ\nAj49P8MmSxnmV5Et4WFc7Li85N9QLSomu3DgCfFoYWC/h3LOnp79kRLjEpqh\n41ezsRZFnPF2oCnY1u3bkel0T8ljgzBpq8vZzc7uAa9OacOE+I8Hh/pqiW7F\nnygJ7+rF55RM/t/CMjo9a2foZ3gutjg/cFLw1LlZlsTEC47wdC8sAu8RYgkC\njjg/FYfYjzd+LI3QhvBjbJRz1vPT0Azs7jGbQpizrpod+UDuq/leE6urU3iZ\nPPSq\r\n=HoZQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDVY+uYIWeg+SAvsVlgV1oXtfTW7R11+cFFIgTd9peiqQIhAMirg2FdO/DfedW68GfwsVHqH2aYWDZzjy2VHPhjyJQV"}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-alpha25_1569806358124_0.6243600238040703"},"_hasShrinkwrap":false},"1.0.0-alpha26":{"name":"hasura-cli","version":"1.0.0-alpha26","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"9ca64ab115376d4679afa6aeac75def55aada7a8","_id":"hasura-cli@1.0.0-alpha26","_nodeVersion":"12.11.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-Xkv5DdCT03lbkNGaJ2ngcKvd+6LCZF377q3nnoguoTIGy6vrLwq3yIB1YNwgRYZXgW00HuvISd0vBLorxqAbog==","shasum":"31e12404963c2321846aa99b6edb39b2f3c4935e","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-alpha26.tgz","fileCount":10,"unpackedSize":21063,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkV18CRA9TVsSAnZWagAAE5wP/1XT/Hq6WO9jYLTd6rz9\nTiW8js5Ey9EEGQZ7KzxsrZxMReoRoUARw/NTeR2QAK9dywr2D+uH3je72R8Z\nQCc0TYpphk/Ri5yesl56kz8I/0390ZOCEGpLKmzy5pgTODBlMh7hw2YRZRf+\nOugR+60NqpKXrrlS6rSa/NISeMdtREGLNyjmQx4MFlsVPoEJULVj6Gen49R1\nTA4UmSnJz98/SHC0fuYtFp3QznDIRARN3P1moDoFJY9G3QQXBUWUp1DlvaO4\nAYu0+Uqm6fSAgBymrHJ3sbqateCtHv6acf32A35wDr1pLJmaWgP5oDMypOL1\nWYtYg7iywn1DytdFuvSFgqe0kTuDigsFh69q84Ve4pn8MrApkIwUuIN2j0dX\n7lD0gBzj6E2E7m6I2DYTt24qRoOu0hdkEjXCQ/tHLpr6Hdg9GtRm+Po9tXWi\nP6hECjhYWemJH9zSj+7zHDUp+CcsS7yTsLiQbCHrqLGREV9z+TqQLoZMxFGH\nC800fEvNQ3empuin5B35WURxpCAoiFlDE4kJB27uTJ7t7B8yALxflML+j8Au\nAj4T9X49CrqHBzqMWSh3yRXkssfG/kXCgaA0VuYFb/Wt3lbUBz6I5Aywx+Ds\n7lCOVmskluWWXoo2PZ6MXPRml9DCdL5wRGRLqAkA8hUsAvqIRhgsCaH+1DCc\n+V12\r\n=t8Gh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICgw9uG9HVPO/gUOOA5Xpia++7xegdvSCOvhOUAzY5V/AiAPhbBu2doWKI8QCnwk69DKXXvyLbwYbS7ulFm0/ynybQ=="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-alpha26_1569807739413_0.8295016037576355"},"_hasShrinkwrap":false},"1.0.0-alpha27":{"name":"hasura-cli","version":"1.0.0-alpha27","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"65d0995416d3a3e57375ef5bd17cd4ade8078b7d","_id":"hasura-cli@1.0.0-alpha27","_nodeVersion":"12.11.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-5rrGIv3gy9XB5FhWBOcLUC65pLNgYHZuQWXRKzvDFb/hVB6oZ+NSgepXOw7mOBPn53T6VZ9VsPxyLO5qe8mtYw==","shasum":"f528182fa5404e2ea705342d46096f699cd7447d","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-alpha27.tgz","fileCount":10,"unpackedSize":21063,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkWR3CRA9TVsSAnZWagAANMQP/iYJeWyLh9tLoUEchu/q\na/aZU7sxo82zEU5jAQCZGVfFy33JO+hFQO2sdz2HvIjuVcgFolwRiB7sUDmV\nXSdyZS9C/FMZnnn9baef0cbX8eWXUpbk0qUElsdKmS+FShNs6ab9i/C6tBAB\nWHFXK4WBiR3HCfXw0OH10Uj5lQf8dXmLNP4bGGSzbppU9UBKpfYRe1H8nVeI\noBJNnIdD9Zdik96jMmgikMRNnmwc8dmUBUZbinsMgstvWfdBdbP2Ap3XH4by\na8ZqjZJiHOYPAwYDvVUN/wi/W6tljATQLpzXWF0LRenBSOm4osJz8kr5cIOf\n1sWd3TWHZK8XoexUQ7530DK4teeER8PUDddov92JdxbWeyP0F0sFIsmABrFV\nXwF71UBAJsJzDS78Pl2tfCk2SY7y7cDrWYDrynK7TT4fd234CRVh4cg1TKw6\nPf4iccykIBzr3G2ir3WfH4vEqjL2vZgr1sWquB7qCGiGU39STNWZDG4WCQ2Y\n5xroKnguh7YUl5/j1KunxD34KvNcr5sY3w8Fhdtz0k/9nG9flywZ6Bf831vu\nDv+0OkrS51Qw4zTjTMgttuc5vgYVF2uZ+zL+a5GAjsToXVlvnKqKU7KRezcg\nU3Xho6VGohpJexWPQiJH5ZQNWc3sZStKDZreYuZoOEPG1WOHL42/6ltOl1n7\njv61\r\n=JPmQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIENdMQ+gx3zUf0/CaywvM5OxYc51U+8exDA51KmK+rfHAiEAjdNO1D/wuwaymdiiOv9Ozz1UvYmeSZfWrVkZy9B8wUI="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-alpha27_1569809526800_0.2394809922101817"},"_hasShrinkwrap":false},"1.0.0-alpha28":{"name":"hasura-cli","version":"1.0.0-alpha28","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"28bc5f82261948da5d142dd3c69a092b52116a68","_id":"hasura-cli@1.0.0-alpha28","_nodeVersion":"12.11.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-JJ0YumoCs7shqB1KEFnkchM9nklz2ee3PFyiv0E242ve94clGeyYnG08dlGM3Yu4yY6V4b6WUy1tjt5K+xTvmA==","shasum":"e3959c368ec55931f6afd88d1c923efa3248148f","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-alpha28.tgz","fileCount":10,"unpackedSize":21063,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkWo8CRA9TVsSAnZWagAA6q4QAJNSBGggmHVOatja8zyN\niHbNMN64Icz7wP5CLvldfypgt7dpiDhJBwQ8y+GC+yUqcVwRPLO8xtymSZMn\nT0phoBxHEP+Rd5xVV0+REf7ZHMS+ZypaecnK2pJa7oHaWfzy1NFgTA+lTRH4\nunyT50G3injWKKsSyX2y65j/6lWOlk7y8f0q5gQ1IaVRv1HUjE1saXEwdHgl\nY3lN/XDvoPUCuxSj0dFjc8b5diP3j2mZE5JYEWNH8ij18VgqYxEE9BKIrz+j\nv9x3M5Mj2X3QaiJy3UKjlGSJC8H282+r2euEUAfjnK8SdBcg+ZyifzsOk/ZZ\nRGOzigTpH0W5Z9O7P3oWTm2GV8+QheDVMyp714ZA3eU/ysgmft6AklWhaaZV\ng65i3NlbrXE0cwXmL2ZkWlMoEENKr+36oCwLOGmjQ02T8HYIB0C3BYzYKT5i\njivjcgTEmK051fT9E2r9HrQRYaGKO9TyqrQ9ct0AGATpWoRxcrYBjE+wTP6n\nlQsBBYvZ7DUP9x9Ld9PG0DumboHbcIF+GxswlIA2qgvD5XTjUl9REU0fiXq+\nlw6mrWtNy+vZ7VP15q4F9NyPkhMxUoK/aFPawknjm+RlYKcSrNVqr0McTvXh\nsqLOB57C5nastR6NjrjMNr6hqHTXvl/bWJJtm4NoRkFlaKVZvILZlShpTyKx\nbcPM\r\n=U0lY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEjJtrUimIzupPq/atkLCrGjW+DbZ1JtmnR3GH8eZXdXAiEAqCV1OPxfrK8vsHEfKZ9FA9PTYDH/iIaVCraUEphPdxQ="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-alpha28_1569811004347_0.030526194968982567"},"_hasShrinkwrap":false},"1.0.0-alpha29":{"name":"hasura-cli","version":"1.0.0-alpha29","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"633ddc8c277a40d6f60eb15ff4081fc898c443e7","_id":"hasura-cli@1.0.0-alpha29","_nodeVersion":"12.11.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-TbosDZxtsRgiz4tqRBLzLnwtMf4Gl3P+tH0mjEo+iIhWCftAugHD6DTkBDONCFEJHeKUk2nvypiGgXdm12oE2w==","shasum":"72c8ac64384f4fc158cb6d6421dda07a43beaffe","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-alpha29.tgz","fileCount":10,"unpackedSize":21063,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkWvwCRA9TVsSAnZWagAAONAP/iCpsz65ubU0W8p3YroC\n+Jgnpb/KMbrqgy3hP5zFO2JfNtHSGTFId16iPJJq8CPWbpgwy1H0BlGsq11I\noNWrlxOqQiew21GR3ftxu7bi0QvkRd9TjAbFH6PFLCsIbfXKZgQZO/u9IBLk\nUUjmeczY8NRNifLjfZ1Ehevx2xR+rGGhITfkz/Lqf2Ba+XAEEWTRddbV2mBq\nRk7bw/P6bkyGg07AdXma6q+McQKJJvtIUASSpNNRzwBaxBOj6hdSeuJSK/mW\n2PhI5lgGHyHhBHaq7szwbQ6sYZM8m6LBUq9Nln8p/ThCKMLMquzWsI0K6sKM\n87nAmTUXVq11x8kc8C+l/txREA7FedyQoSnCBkYoRT2rR5hsY3zYOw5rJrmq\nld+e5J527EtOyLx5sqISSQcK5kou0qjWwVmshpiuO+jnL9JpMC38hcBn2y3v\n6BSbxLmpMf/QNnQsSgnoVIvHN3DIPPYP4kOqMgYho2JsXLtc4Le7RPA6W1mM\nihMP+x+K5r0Ry9H4oTh/d6Ft2X9qTxjRzMyKzId1jkAndZvpPhr01vLY1oxu\nO38t5emPJdrvbpU+LFo8XKl0JKYFbRvsyfhsvgHeJPl3yPnV+x0PPd06xJBw\nt7kWIJqQJ9ltE33yJyZpMVHvlwDtDT5TNK83/CCXaa8qzFpID5UQ/ezFiaqH\npdPc\r\n=ngdK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIES66IZcQ9KUmQp5+5hRfHBAQ3dcjPaeuLqQxJhwMpdfAiAZa3jqQEJx2/WLfZrENULTL8r23ERc1KiEl4zJS8ZCQA=="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-alpha29_1569811439314_0.48304711905631037"},"_hasShrinkwrap":false},"1.0.0-alpha30":{"name":"hasura-cli","version":"1.0.0-alpha30","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"12948fd51f8ff29b52cc92f5e8b9f49c62915d70","_id":"hasura-cli@1.0.0-alpha30","_nodeVersion":"10.15.3","_npmVersion":"6.11.3","dist":{"integrity":"sha512-SrzIdIZdSJwwya5aGe6SykDBUbmM9W5rf9M78OIRCJ9Q6uZGb3jdN07ToidRNejpzztRgDPT7F0iBA5X5hg3DQ==","shasum":"a38a7853304443e6a6578362a62a7c9f6d5bff9e","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-alpha30.tgz","fileCount":10,"unpackedSize":21190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkXrLCRA9TVsSAnZWagAAjYEP/RxVuPFJ2pJmzNjuUWyI\nJoZMRneS8+aaI94jBLsngX63KACMfWxM62Nx2J1pOmILhz2etP+5ICS8W8zJ\nqh7Ra50l2UT3aPqNn+YZ60KUhydfS9SCXNAuf30ucR0L35qKsEqEh2+khnyt\nmpyN5Nr6ag+BuDPQhGWoW6D7R7hT1ur6h575LSbnVJLLsIypN7nRE/E24G+X\nL0NDddDMNg+Y7l1bFXt0RMMHefP6jlVPO0//A5k8S7h4T8WH51WtvqlD+NgI\nToIRMXQONtIVPsLXH7i+OgElieFHy5gjHoAv9vTTtjHmhwAPKJjv2MQCeukd\nP1RxXtBRomDPyrvX6d9K00BhX0pTkKD4Ojat+/QR2IllRNvPiC6x9L+Vda+x\nqD9K7IWvaEzJ/zAYv/VnDf1DKPgSvwwutA9uskc1ZLtzoolVcM4+JJUCn0kW\nLW+Z7cRXj4zCFyTlaVq4ylodZ0BcCJLqFmNbKF3pivWspqtk6csbSc6rms8q\nzsDXz/ao9oqwlGbAyh6xaG+LN0Aoyz4TGyNJ+8cjHA71i7OJUZWPXoeam5ni\ng1EYR1GnbiAeZ9625eB5h3gmsMCe1PfLSBI1npyGyP321hVTyOi7NQVoLT/A\nxDYznuG6j88iPhLDGXWA+zPGI5Djht5M50BbN1MQPdSTXFxjoj2jPZ/PpDnb\nbhMI\r\n=i2Nn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFYDRbSVpKJNQOEckmJtk3b+wZYce5BtxLrsDJt5BHVTAiEAuinnr2cQMIsDa95tXzkgKGHDSKFfJYfXm5c/cxHV+Ck="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-alpha30_1569815242666_0.7790055462887342"},"_hasShrinkwrap":false},"1.0.0-alpha31":{"name":"hasura-cli","version":"1.0.0-alpha31","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"12ef89b3814128a35dcf6628c59763cbb950311c","_id":"hasura-cli@1.0.0-alpha31","_nodeVersion":"10.15.3","_npmVersion":"6.11.3","dist":{"integrity":"sha512-zmPFzFPtZDtEJYAHCB+wydUNYpOPC9VLy45tsCU5+qCsRxhP8EYlCwvchrEDG9nPUMzTTxgxA7gdctpwLYlfSA==","shasum":"5f67ff677cf512223d14878b2b98579ba6c98f95","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-alpha31.tgz","fileCount":10,"unpackedSize":21190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkX6vCRA9TVsSAnZWagAAS6MP/jSlBglzuIvStuLY0pYE\ni6b809dRCK7TAOcR3U5i0BmwWlzgswNtgOgLj8ZID3uuCSP3zUkJwdf8S1xq\neeucOY8NXRPyji/g1KbiISbvJZPE2t3+c2ChLIZjQY+nF+fSGLE0GA/7YcsP\nyXv7DqB/1mVzyrnqKgAn5tlMoq8wpHTsoLodDycmQM7BAxzGOM3XyZ7swFgO\nNIXMcjkrkIQFX1rc4ChmV95gogxsYqOcXgaUy2u4eWHPnFdLpA0WFEd0ugvV\nzMvq+yuus/n2SjUGaB8kBJuS2anQqBR7TQQFQil871Z4qG0ijwAxWfE1fG94\nVW3ma3L5g3h8sh5YNqZkXdqGP+B/IbmmnDggKw+JumzlMQdtMAhu9KeaXvPF\neAWQo2OXfECuPRjJAGPuXZRHL3Cc29IoQgHdEo8O3M5pjLB69kN8szTi1ztO\nbr6C5cexJMhdHEWMA+i0iMvN9OsHJx11IIugIgdBCOaiEHsRvDjDi/TZdtGR\n5Yrl3KHYw3OmFU1K5S+31OHzm7lv+Tis6BiVlSpNsIhXEB2PV0ZGv0iyFz9S\n5E53Yqv/yDafiJdvuEp+kQl55ndwhqM6SQ1hVOt+t2XVxsOxNvPeYcgpj/TK\nX5iy2ewWF4j+5LYtPfIV4hfzrwUDFsNQ8LL5asjg2t6rJTjh1OZuvn1vjYpM\nodef\r\n=GMJh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCK8MHNKSHBW4BqPdYlx8O4W8MWIgk/agbjT7wg13L7AQIhAMYZJNmt2qA51DiWGWYo2kxkQdJrnm0MT5npeXtftBge"}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-alpha31_1569816238643_0.41997061201992314"},"_hasShrinkwrap":false},"1.0.0-alpha32":{"name":"hasura-cli","version":"1.0.0-alpha32","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"18c926b243b3eaefdea9c61ae3cd06995b00a847","_id":"hasura-cli@1.0.0-alpha32","_nodeVersion":"12.11.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-IygWYfDFH+RUpGTIuZ8hLRFgIPtd0DQNjyVvSVOulZTcuW7dtU6Eyr3TZ0FSpNgFUuOvWEtvZGiRifsrCqhYPQ==","shasum":"60fb1249056930e41bb3ea9dbeb258d25024d21e","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-alpha32.tgz","fileCount":10,"unpackedSize":21190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkYBYCRA9TVsSAnZWagAAAC4P/0mlsJCaZMkq+AANxdYj\nF0vtTB7ijMHQm3XlHqutTkcSsfuzRSAxE6otwOHa3oSbLOZMuPGlaFVaWC8W\nkznp9SEhoj+DUm/lxE3YZUcJkSMS7V/lp0j5alTm/Y+UKZs+pbtQexwMeJfE\nOXGtzfbtG83nXc+Wxzj6sO0NKHh2OGZtst5H83WMefoGfd7orW952TbE8Rj9\nkRIvLw8lBWbALCBPqn8jRJzO266ZdfOVL6xusjqR0KeqTqLrbm2cTRXxhgfQ\nQONA0HYYU3lKKefFJrGmWU8isVHN1L5iIcFrs3ogWPuAnKXT2hkGCaAJUCM4\nbSrCtPiggk/nnmTC50Ofu9Pf9tSRCOWolVISlwbjBKNXzFSe7VgVHxaKxG0V\nztbW9Ojq6bxHPDejN+IoZlr4DKbw0l3q1+RsA8cHOHcXxPZsQPtyTOmyV2mu\nSwVhm2wHMooXmvf8ziwgxvzDYdmuYpQ4QbvC93RPJU07vkXi3BwKbyuWdoH0\nISS6odCTZBUlLF7rNA+N1kqn37/TcfnvmLbCDb+XA7kvycyy4X6qHPXh6xMb\nXoxWHZJlG60Co3lWmhhrxKEUAnLKiyaSkkpKs8nNUh7xtEjd6wW/0NGidu3D\ncjnlrljg3U0E4wi5pueASuPBkULKc4lYiLq1WePL6gXpDhtRPk/J6hqOoKzW\n+nXq\r\n=V8C7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDSlVE93SsxfgzxlcN0FN1TxdKWj00HogOSJO71V8/5uwIhAKY16qlNcXiOgVLUhqDr5/BGetBdnWtMQX0Vc2kqLDtH"}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-alpha32_1569816663584_0.5486990582726148"},"_hasShrinkwrap":false},"1.0.0-alpha33":{"name":"hasura-cli","version":"1.0.0-alpha33","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"f4ebb850c58a5e01577af7f6f3e539016bc752ed","_id":"hasura-cli@1.0.0-alpha33","_nodeVersion":"12.11.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-MORugZW4o5ZkuEeVtZymLBXGsVnWq5TpXKIjbg90LxBh0Zm58oelES9ZRh/+lr+nHiI5VYWYpFnF6LvQxxBCdw==","shasum":"5749447a4507e5eb571dbc269e2677cc2031fff4","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-alpha33.tgz","fileCount":10,"unpackedSize":21190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkYHxCRA9TVsSAnZWagAARq4P/02KQ9IArqxjy/zplu2A\nULPgtRw9IMXt1/guX6J1sASt7OEWXuQ7EVgclPJm5xtZRR8en+5gQtNwWwuu\nPUv0T9pqQavm6glKDamMAGnXPRIynNMVHfEYw5laNLKZmoJbwJjeByPQruHh\ntFZXDQo0KzC2+w5d7TbxBs6j3wgmhE/pxmcmBQU4gnzhzZnA0iUptkDuIg7g\n+7N3rcwvIstHH9ER23VxbFjSnNGEypGswe+4a4ExTLf6V/DuQnr6qnYCfFlj\nE8IXrarY0bfWE4dHdop5BryNw1WZanqn38cvLxX3U1CinSt/g8uFA7AOuva3\nUP+ggHaHc36OuRG38LIv+gSKnY231jVUknsGvUoK0fUQBeeTTrvi1Li9FYDy\ncZvPvsQ1vSvHzCg+WdJRoxJVBiY/lWygENSP+nR7PdLOitozsB+LSNEVIKYM\nsRyWy4hkZBk9n4GYSiDNn7y9ojxlZIChKBRhgKXK46PFSrIuLRlRHoUmZR1i\nmL6tvgqgn+nZqsbirsGqqjebSkT7sXkaAa8n1gXFA6SbkQp4dq1ccdA0Muel\nFyDxWpXurYnzou7x9dYqR7JKoVwyPFsejeedTWxNhzjB98QaOwLWUx2+uk4m\nX82R4YJaCccQFTZIqbVkeBbpSJTqCV11HyedkeQTcOnLd/rTLVmG1sOPlSA/\niopO\r\n=kcxa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGSeNIam9j9flk7YAHUfsGPh9OAp70b0CMiklDjxKEITAiEA2bMa5DfwDkG4aFaNlmrM13u/UG/EFnsQbpbsg0pVv+w="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-alpha33_1569817072419_0.04268038968086496"},"_hasShrinkwrap":false},"1.0.0-alpha34":{"name":"hasura-cli","version":"1.0.0-alpha34","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"ca3e39b7da26a9e89d9d8741f0a43c04549f1243","_id":"hasura-cli@1.0.0-alpha34","_nodeVersion":"12.11.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-DiiROF3vA9dgmdBqWQ55d6EPufkxWcK+JVFUPB4/ZO7Eg0Kx18aG+8gW1DdhLJ1+HSTxCza3nzwHXsnw4zNwwg==","shasum":"205f3379b2f9ac5da6e3afe4e818e61aefa0184d","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-alpha34.tgz","fileCount":10,"unpackedSize":21190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkYROCRA9TVsSAnZWagAAo/4P/21p4ujJfH12eDxuYbEp\n5TBFCdFS5RSaxnMKwJsOSq+Q3sURg3Uwk8hyU5mLluHtoQJT8HqVQjBJH10L\nvDwm/BjyJK6w0Ckbdi/KjEd0vZ83aeT/rl6qdDyfyvmbZHdJi3HQM8WmgYdz\ngLM/dQSdpAYoh1I4H4e+St8URZlo9PNOgxQ+xqjx6b9WbsIgOlCXPsdHrMy5\nUagX6CQszrEMq+AEZ/H+nqmNRabMJF854EfDlpuD85j1uVUEti7mUwaM2NcW\nXudEpCKgfKDEnt2glhyHz4WOFNXTzrUj28ylYibJL96z2oCNL8gerwUXGcci\n3QivMlpEHcJRtzTuiJT2ZS+Jw963eyfXjRlccDkfr043IP8t91NQVZU747Ir\nmg54I+hOrtdZ9m93zBQac/BYYAXPWvNfpRaibqv89bNtF/3MG+KA7N4YxjlF\nxlDz0a1pstgd0CCOviluTlocflT0tdw2SLlI+aHgypSPho97H/G65u1NZ2pM\nxxKGn6qleiKPi2+wZB+s1Wha14BQLeT5N3Gqf+d76BIfpY13L77Zuc8lS0/u\nf5A+4rPRa8cssYWn3ayXs5WgjVfbfzRJEEwUeHmvJKH8Ottg9nr7B+KAktu8\nICfPsbK+zZ0lZDbhIDdgGrCYXX8u7JuSRPs1eaDYN46xwWinMTjLl4DJF2Y1\n7kOB\r\n=Hww1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBgtuXgi+c9/hrfeSrAug5XMMbR2hmIwk98216+qJhx4AiA8ub1RjUQtZ4YWVU+o2xbQ1VsC0oFhTahmlGeq3uxjMw=="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-alpha34_1569817677679_0.24781972751408565"},"_hasShrinkwrap":false},"1.0.0-alpha35":{"name":"hasura-cli","version":"1.0.0-alpha35","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"1dbdf9c7c67c14d2e48bb4a7d1a9602a0b87c4f8","_id":"hasura-cli@1.0.0-alpha35","_nodeVersion":"12.11.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-F4IlHxzPjSqYPRwLtA5vzScumaQFQKvshSe3/1r9a7BCgLcmcMQqUljtEJAOWyYrj5zcBdGjTIgfwHfLzF02rQ==","shasum":"751e60726594d545a31c87dacf5df2860f38550d","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-alpha35.tgz","fileCount":10,"unpackedSize":21190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkZP9CRA9TVsSAnZWagAAl7QP/2C+Xfl91UKAAKYU4j3L\nHfnCKdM8o7HnUsOQ3+N3rwxDVnWIiPx9CQWOBS8roK2rZGi/vdq5/nDOzufG\nwmdJErHXoN9imiSENVkpbOdjSimzCSIevLvm33BWByJ89jOwLkVbGHhiQYcs\nAVox2ahacBqyaRWEqVpZW9XSDETzkF1UcVEUmLFzo4HKKNCQtjmvBWth5oUt\nNR2hBCP6f0Af2tdm2vJuCm2dxMazTmOLQVPPHT7m9D6VZaqKNcxsQS4UszS4\nlVx2nLNer0VE+QYsHMZKfPABPjLW/8McAvjy5dCnTFdiR5Mhtoe2i61EdLld\nxk6/0wBR+DQOqUVVLVDLrWY3l3225oahnhRbkOUlgA3oH7bd5SSRCE+lYfLY\nxy2CQI3PPlDvSjAB9++i4/Vvjl5dRrR+7AVqTj70Qj9YR4jLCbz4i+VWvZVY\nZe195Of9Pjp6KmRMGlJg98dE2vsChjdfQJfQC+/9goupenXEWp+hGoJyxN2N\nMTvjAyCIajbMDcvbsoWNDjRrLwrj0nPcxlBAWXdZAYu09K3A9yJPh9KuJCzA\nBQvj5jx7D0bNLNHBMaqx2xJUCDNC434GEx+10xVzMDzTHqYHitZ5xdI0Boe1\n/tGJNxUWJbbBJM7i7VmQ2coUeE9mtylHPIw+sCNNWwe3LV/qZm6ycxwE9jsC\ni8uY\r\n=MsHV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDONSRqJZuKJJFmsv8XLJXeRHUwNIeEKCmTCV0p7LY+hQIhAPItnCkvledPEOg2eLEYiJiV+MSaPB47URS8baQMwFGL"}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-alpha35_1569821692578_0.024893982884744537"},"_hasShrinkwrap":false},"1.0.0-alpha36":{"name":"hasura-cli","version":"1.0.0-alpha36","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"4b5cba4599a90bb5a5e427e217a2409b3b797f38","_id":"hasura-cli@1.0.0-alpha36","_nodeVersion":"12.11.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-xn238SPeJpL8ZFknA+x4ZydRwUsnnlnmHLtjNz+HZD64C9e0uierLsystkScwejWxmEdaowGC+pi8Y0Rcn0yTQ==","shasum":"3b0f0409deada2a6e468a369f1337dea39a61007","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-alpha36.tgz","fileCount":10,"unpackedSize":21190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkZWwCRA9TVsSAnZWagAAnIMP/jMBqB4qGjDlgxJqt4Ya\nkv1GtCL2CYvzJ68pwcch2D3vSBbXqh6tyCAmDGTABpEOhvKzRYn5g4P4JF8+\ns8Rxy/VrHM1iWiXmv2C0tR44UIkyCJt5b2kl+HlsuZWJ1uLiHzSPwt5TI9cm\nvrd/Dh5sHjRh/bQ7U+TmwXuSZoCL0h/4LDlqGAZx4MT09YGZrFawOvtuc9kZ\njm8e51MNyj49yz2hsltYg41xurRQf7Txia6T3ohTQREXxwTUq8GEL57fmmYB\nfwYCvMyZv9zcxBRzx7/+KVH6x69t7TtnXgbcHBzjZaOOK6ugSOEEsSxPZ8CV\ncVns3lpQmMZAKjWIBzs4xiHRUbfHBAFiccHtxegLIIeq8/fnuDkd8UkINk3D\nryF4psB1LnyYp5PTX+1FhrLho37XGYETojZrYT6sziYFrsn4Tk8baODChZ2p\nCRB7ucbF9iIabkEyFN3w94xEVTprPkLUWZKKGC70pmzasqVRqAPcy7FzRa/F\nbzP9dr80NqPIHWa9w5EXg9FPnOdw4WKfLQS8U9/sWl84oyPleclFq4hETrWO\nxWXD8OB/CZC62FOTrVhr1BRxO+EvqhYCiUIL8MVn/PEpe9KXs1kCDvaOuXhR\n4LHMTTCyysbyqcZCjfrkRw4MD5hPgFGKrQSYcWdgdQ/BEuWLGgxzi6YmUnyi\ngMD8\r\n=V/Rf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDKTwVo2Peb9qk8zRI3s7pY9jDfjTHcVjQxdWsES269pAIhAMhAhVyZAAWSJX6NvBqkU1Z3dq83cuemKx6h5TFKA058"}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-alpha36_1569822128115_0.13594554483122234"},"_hasShrinkwrap":false},"1.0.0-alpha37":{"name":"hasura-cli","version":"1.0.0-alpha37","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"0f0b0daec5ddddd2818eb651dbd2e6369f089fa6","_id":"hasura-cli@1.0.0-alpha37","_nodeVersion":"12.11.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-3r1mI/sDVGfRd80UAKr7i9Wk79pUI8XiwDnvLl3qAoI9f5El5tANcQUSQ3xGXV6SbkynFfyHl7mLgQv2hANfqg==","shasum":"664e6446207f6630a4b118fd2673af66931dccb1","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-alpha37.tgz","fileCount":10,"unpackedSize":21190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkZdVCRA9TVsSAnZWagAAYNcQAKIe6ZGyrSDxE15aRw7A\nbNZ6jCNOBo7/LhkJhLxif0WToliHh7kix9dXI0kEIqXt3U05/UInijfCOa4+\nNNn95vREGStlqCkqsjFt6Qb+rz7lyHWOqrectFRuGVwFcfRP/n1E3Nbr3cso\n/Liw2LZcDGVJTp2P/GQyPYKZaOlkVaDPrIffXkM6qB9DwyJ13XJW2O/LLe9W\nKZ0US9twh99f4s5jsfWnvPW2+ZgFYW35Snryieexs6bFub9ngNyPWjk5rmav\ndK8+ahgd+12VTBE3rTErpG+4O8tL8aMmucAXmROlLzkX9IvSXuLZ5NXrmDHv\nnZRUFTWQNnB6BnsXFWq7pN1SHelxARANiOZVgXixfaV8/oi3yC8sxRrr4IGT\n8Yf1vjEF1B2WE77sB0hGhVgUyLtiDrXYalp1gYmb8GGb1s/MSpGkZ4BCY1Y0\ntMc2xZfIYdrOwu8LkwrcxYG/J8tEOfU1dAzaY8rcBXAzuV7ovSPAHvAzYqHg\n6EfXrGxIh41GLzWiaBfhQHgGk/RLL0uX44mvsvQ5s6mVRRyU1FKrDHe2z/sw\ntJFs2y78RG5Ccg1xsX/ZqW3jppfxrBesmkbzVOwUW0AYgBTImPdqErlxtAPo\nVl4jVGUMCg/ZIRqIoY7iP2MXjW1Oc28kVA296jblZ2bkWv61ALxdbNVEBshS\nTJTM\r\n=5bjS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEEAhAsN6jaFoS8K3HP4TitDX6o1rVH0tAW0PMSrxHqoAiEA61xRKfIF9VStRqcG65zHtvkIUnaSdSlvatLVC4koJOU="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-alpha37_1569822549177_0.7052287589333448"},"_hasShrinkwrap":false},"1.0.0-alpha38":{"name":"hasura-cli","version":"1.0.0-alpha38","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"118d6f2b9f902aef073342bb65754a455dc34f36","_id":"hasura-cli@1.0.0-alpha38","_nodeVersion":"12.11.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-+otHMh5L/0TmnrIHx+qXFVuTulNDx9y0KoxEc4Yax7d/CF62FSNgbiQRxOIvaig7g82SwkfiuJhTlBjHHz3CXQ==","shasum":"697bfa54e8dcea3bcd9c9ef1218fd2121f1f11f6","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-alpha38.tgz","fileCount":10,"unpackedSize":21190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkZyFCRA9TVsSAnZWagAA07EQAJGcSIpkFt0aQfub+v2m\n/PDZDqHKKescNVGov/bigN1WqlIRNONnn6vx/OokS8Q3yK/MheSHYmgrCdAt\nzYU0T9UdzNlleqgYYvJmscxbWxXAPq7iG9rZZ1fGo2VJO4yEZzcVCeUOiqVU\nSH4NcBd2tfbnbmiTkjz/Wl0AE7oGygXjxHr+NANVM84UNZuUPF7aznWxfciS\ncn4WF+oxzjFLvQMxkCyaiekdC29Luf6znU+MpD/HCsCrBUT86jCH7xtVx80P\nCzLX9AuWnOePyH4pAtsogn46lFzr2i6CBeeiKV5H//qj4VVykltHsT9SV72z\nd8eOM9Ep50Sd1HTzMj3GSEAcjqXKmFq1ncpblwj57vCHqGCKMgK76PBwfcQD\nlGF8dhpo07tiaskI+nXIb8xD6HU7e8JrPEQDOz9byNUTGRHTRbnw+8cP7Pur\nZFS1z6YNTxBoof6KobPmazB1KytUMoLiKgsNYcjcKt7axhpy+ZBVTeiPK+/6\n3plQYujaG0/W3DqqVyq5Ct6VtWRJsoHeJFkBB7wRvKJlbAL0Uu7qmN6xVHfr\nOV60oGs/PT1uZLrh8lTKlTBgjwcbIk66RJcK5tWq720Qkxzys918sEFyKhxE\n+f3vIlJZxgDFse8VK71xU9U0KYRkeDQh2+ciJZ0kGv8HCSV1LfQIrMNaN9Ms\nAmF3\r\n=1Lfz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBBeDT+yOaXLujl3Orz5V0wFxZkq7kB8dFM97xv12HWcAiAHwMGszMNaHDe0ju//1taFDuvNLlY7xfGOgaVq3GyfCg=="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-alpha38_1569823877037_0.41314939120673566"},"_hasShrinkwrap":false},"1.0.0-alpha39":{"name":"hasura-cli","version":"1.0.0-alpha39","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"75a29b617d1296a153c009f2007851d622e57059","_id":"hasura-cli@1.0.0-alpha39","_nodeVersion":"12.11.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-v51TMptxjSbPZtuPCQ2K7kCBJKjFXlNfu3EbECU4KiNWGlaIacFKyYJNLBH7JM49pPGqXOYyldMd5Ic/RABwvg==","shasum":"7dac6fb01043f5a880f47ea9bba9fa168a2eb8ee","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-alpha39.tgz","fileCount":10,"unpackedSize":21190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkaGyCRA9TVsSAnZWagAAVawQAI85rqdZvCYUwLf3XppZ\n9tQjfYgDgjIPMw4o9ecl76RZvYXTe6446xagfSIHj/kb0ezjgZlpi7hDKaaV\nbAhvqbKZijY/5geV/8FsGus/8YV7Y11UAxB3NhjAp9iVK08Mh2YYK7MWS6y9\nA/a4OodUBUbm6VCZ1rRzgI2+PQPn2HOAeJnsWTvOjw9n4H8CTpYE7MNfxnkx\npvSyOdd5ZOJHGk59BOm+BREZJ7ITPpxVkidx7PN+fSLQN2oOlsTvUsvsb4g7\nWy1Gi4k+FWLiAMr0nsrtz/N0QDhRXc5xsHMF7vzMzZX7hWsHEkRzGjvgXhmW\nk00TOstkegqDhZmUTrldBcmxVYG9KFikDgHZkfiynLLhElFBAn8fIFjn8r/A\n+bm8aN1dLw19fuTr99SrafxpKMWBCvoX4gXb3jflVp6uu78c+nKL9OiO4jg/\n5KkE4oRb3G2C/G53DnPZ3N3LdMaAbBqZBZm8brEGJ5kQJZNIPHO0CQ4/KtES\nZv+grtHwwnSaZmjT3zKnh/Q1MiGhU+4/eyRkClpSY0smrKWaLJGZIaiwrKNJ\n0EJW3eUgl+yUZ+66GgmWq+c404EbhyH7vYXua4bycsWVURaKTjXfc99R/Ue3\nrFLqRfene029VZS+6TwrCBcUWZAJuDnNTVAKElrbMgW8zyiL9/gQkWR7rN/1\nEckz\r\n=aqdT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQClaVBciQZofjdUxeJVsefrd9p9+RWQuZr6OEGgEm5F9QIgbubMXJc8rpGt9JG88KJlwizUNvJ2NjcmZXraRwr07qE="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-alpha39_1569825201977_0.33583147084914855"},"_hasShrinkwrap":false},"1.0.0-alpha40":{"name":"hasura-cli","version":"1.0.0-alpha40","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"3f6a2ece9ea078dbac8331bf6315f6f41d042679","_id":"hasura-cli@1.0.0-alpha40","_nodeVersion":"12.11.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-bt/EV4HwAgGA5d3/0wUag9ZdYb6+2Jaiv0YGAJMR1Zj4SwSczv3OcdsrPuKqYVkDEHsUF/+Iq4VsAYUeGeazbw==","shasum":"b4a9ddceac63bfe88ac774112da824aa2fb1f505","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-alpha40.tgz","fileCount":10,"unpackedSize":21190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkaTOCRA9TVsSAnZWagAAzVQP/1SOmt+iVXrNLHAzV8HF\nfmAGDwo7/xCE2boftJ4/kuFHIH8wtsIlxhN4QaH8Sb1LgjhvJGCPVWFJ7Wm2\nxxRZ/BCtUgdQAOTvdPF1N3d1eYZV76p9Vb2wufPgpeyc3z/SxJ8ukLonnUdi\neis1zYY/mMkbDk60Ih0RYBa93wQBU/Wa3GoT6uwh/qELHfMV2et8A3B826i6\nWCNKXGdpfE7vxIS+3AIzHt4prSBt8HLpjP0zftE4pZ5DGw9slaevbN57+twZ\nrcc+ERq2Kbp6kgq6ZcBPNzntQeiEF0aHxZTig8RImOC2p/mR+5p92rkYkukM\n5sH4yFWoJWrvHKOgJKEPsyJeNpnRFWcKK3kyLBzOQjj7IVWNBMrIOtkJMOAX\nGdbsZjtPvkdzVRPn8bmyN+fjBnz87ApvHN4MiAp69aExhh3ko+rS9/TjYERB\nd99+wpyYqA4lyuKti6ItP7bOh7nqNn624FnaPLk+G5GK4cOLSOwhX/aTyjR6\nMfYWegGqGT19jjK0Hr9fP+mtOZiQHKmqna9DHfHeCX9z71l6XpR6bqIIyyDW\nRiNntY7ZRO5BTh3T+Nwh3wvIFQjzwtZ3llrL7IOspTYn2ffJWSON7q32PSd4\nlqEJ94/D4Y1yT13njnegcPUUFJ+aGYxKCEsIZgjBYl389ROW1aewpw9onpwU\na76S\r\n=2VdL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICaEIY7kYS1Yb73oOJ9bUuAb4y25XFuyhKfpSHqjh8SLAiAHdXlGgBMNIsfkCYfPNyE8XtzCSetXyzBUD8yWxblGrQ=="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-alpha40_1569825998028_0.2074397772334715"},"_hasShrinkwrap":false},"1.0.0-alpha41":{"name":"hasura-cli","version":"1.0.0-alpha41","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"f2223ae00ffe89d4a278e131ef652c1c28d97916","_id":"hasura-cli@1.0.0-alpha41","_nodeVersion":"12.11.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-76BlYOtj0rTSy6JWX3U6RZFLDFxyjXqIy1mHmWwrTnn121WvtMLJhqDtzmZSie7h3KblErjW3z8iH+uZu2uEAA==","shasum":"eca0f71d9c87e7fd50abb28d2a41b79c08bda7a4","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-alpha41.tgz","fileCount":10,"unpackedSize":21190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkabHCRA9TVsSAnZWagAArQ8P/RzL3ivuGI8oPvXYQSR7\nCfRrEIPS9amIWZIFY8o7Vcv8sJQcj1JOFxszKaHpkKYVtQfagBNrbgMIWkiK\n6f0/W9ZiNy01Q2yOurOqNqdpfnE4Enz6XcHh3rRSlRzJlswOEeJ9raiHlvJL\nEh00+xwLIqJq6RL9ncOnyJCtdD708XXFnLEQ/Xqo+C503DUs1gwgtk6eBmWu\n4tBbgedyAWFVHaxsRnyy6tKpvWvSMfAES+O5M2hiLywCqBFFkaB62voLE9Y4\nlVFRGIqIB+a7LvK826W62SBXRacmBVNjRqd162qnpT9zGLhpHcdosLBNWUSo\n0YkLWFpHodo8TsmNje23uJUXu36cJr0Hzjbvv3POZF49qdTRfiMEsfZEZIEF\nuqa7sbHQbnh+oTzY6d6g3kdP34cgYDFnXvUfjOH+ZX47BmGe8Mx6GtofTUm8\nkM/CWFqbBgFa/o7lg0BbSfMdD14wgwgNv8pyDt5Uf+K7AjksPYFxRtteDqsq\nskN6zCzTMivdHMklbRpU4B9xsNekLRnQjb+rdudLckGFGdxVIYiENiPIqf8z\n3j9lCywcJLyGewGdnVwijt9aHeHMpiyDYVw2xgXVqChjDX1aJO+MMqRsSeX3\nHiosVrjUn4DoENh6ej+buexw1QxhYV95Y833caeFqU+IkyNtTpTQ0PO7+PT8\nTPgD\r\n=ea2k\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHdHm2JRRYKQJtJzTFTIEOZ5fRVYzuoj8MyWcE29Pmg+AiBMb/DHtxXpiwOoen1wy2/2jsGI+oOJXOqGExY1xUJt5g=="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-alpha41_1569826502779_0.05880049201650328"},"_hasShrinkwrap":false},"1.0.0-alpha42":{"name":"hasura-cli","version":"1.0.0-alpha42","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"5617c06d8c3a02b18e44351126cb0c165ba10f8b","_id":"hasura-cli@1.0.0-alpha42","_nodeVersion":"12.11.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-q2PcP+dTJ567O+pTT+XvcZRRC+lQjFgpFgUx6/5RjREw241m2awDWd0NorU62HzK2QjNh3B+HIzDPBFXAMi8+g==","shasum":"ae576d774727039a8ecdb60199d66c2112238f5a","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-alpha42.tgz","fileCount":10,"unpackedSize":21190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkbLnCRA9TVsSAnZWagAABAwQAIB9zjwzHeV5LWn24End\nMMVKeXUdlszkY21z7kLHnPcAWdgICL1BTPqJ8CxgLqXUtrz4KsF3NbXlTU6r\n9oGMFKfKmo26RYE8/o1FI7j9aSTkcr2bzhr7qmAmjXgPd0ogMslv1VuvHA0m\nFE4Z2QCP/ND2YQMEoajVextLvsEw81dMHSJfV/+JKrsYMrOELUPwlgzemGvv\nnmdymXwIzjJ0Mm6Wtk2rJp9gA3jLCgWSsEZmAFYXWsChSsqdRne2rKyVsjLx\nPghNPxfMAaQ/HMXgs5ZjpxkaSnMWwMAQWbI0/t2zI+MyNhZcuzvvTr37ZPFy\naoKK798GAzWiR5t4FSYp31SV3B0umRJd3fKA/f0yOY1fPqM9TciV4E4wFcce\nDXnK2VNfbMJXUej8klm9cMltEj8Ks7Bhngwc8nzcCoCXAQW96vUfyn6//I6Z\nsM/JnS/RQDzSQ3mi2998c9xexnQw+DwqjM1Qxryz0lkCZUJ5iS6CyV8GFyTB\ngGJtqGCeHoo77VJX+0segE6hstN6pOFcE7/GWKMBDHSEyZAYSWOptqlSqCNK\nTGgyHoBJFM9ARPuLDBHxr1svqGWfVB7HT05oJD9VpM8AWAWxC1SFOB9xvo69\niml3lwmDNsgdnLIdjf0KYb6GA3UjXjEgS2GFol+PZC9aZM3hIg4bE3ioFeaM\nBvnp\r\n=sapr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCZMnuEqHqSLJ8KCP5gaZVWxnfLwC2Dl4izAsaxeYuZrAIgKKf+ewZMmS2m5lMyzqk1vy3sKjjX+lry7oGaHKE6Za8="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-alpha42_1569829607365_0.5551962647186852"},"_hasShrinkwrap":false},"1.0.0-alpha43":{"name":"hasura-cli","version":"1.0.0-alpha43","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"ef443cb350018246e47fc2107280a7a03e052fc9","_id":"hasura-cli@1.0.0-alpha43","_nodeVersion":"12.11.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-2CJC/qBQilYRXHeWHOJK3tOipA6mfWXHglmvuL+2JDU/SquKymTOEFCWm3KePKeK39T0ukCmRP8MywH3sI9+hA==","shasum":"76d12bbbdb0440131902b7fb8ab320f03dd126b6","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-alpha43.tgz","fileCount":10,"unpackedSize":21190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkbnBCRA9TVsSAnZWagAAzywP+gOI9pgVS+krQqoUZLaX\nL2KalNivvnP9brMsgrc6GsiRVeKtPh5Ro7yH0bFp8Mp5Nv0HX5dvyJqC+DO3\nzabcs1tAKPiKIOZaNC2plqjHSXckV7LWd4pv87lLHzvppkjgPP/Djffw4tTr\njVWwXS6ldIqY2nYafVvCkKWCLYPh8bugXRzKFbsucXGbw1wfOr9/WTxchrio\nDOJmE6KjUzW+N57ViJOa6PkRIb8ixy57o4GQdCjJD8NoVN+SpXw9rx9+pdk6\nVPhJY3KdS6nH5zt7EpwCSnxeNPzK2y89Ig8inJg0TXVtijDSjFNSr46s1Q7d\nK9DPAnZ+ooMcs8N7uyeYn8ghETJj63CSFIgxVvZgsXb3WmX2+XH9jIDlsTad\n44sGEBIy9Hpkboue4uFpXocdJezkO8eAFPfaT4MqMIPe3Q8/fW2RRRQ0SC2R\nGZJmli3GJhcFtyxonbG8eVvX/qpxV6kZO9NPEmXAu/xf5hF1UpsBlmxsdLHB\n5o3eQBh6EjqioLVugEs9Noa6kzJn50T2kOS7DctTDiBCFa0OQ9mLiCkF06AU\nf7XgA2uTYit0LmEIR5VsBB7MtEQrN4aASlwtOEtYGVt20zKd2Bsm94eQ6P3B\nwCrkvPzI5cAu++XkrizfGCHXcmckvYsYHv1yUxqRyNMTl/lhTKjIZ1QvSLP1\nnOsF\r\n=r+9P\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDjfJvwlrAQ7bNFHehV39inRfgTMRXUJ1/PRJENGdv/DAiBvEPDqOu/vta+HkIsK2ng4mHR8/qcLWZL7yC/isUMAEQ=="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-alpha43_1569831360449_0.29950643277216327"},"_hasShrinkwrap":false},"1.0.0-alpha44":{"name":"hasura-cli","version":"1.0.0-alpha44","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"60385701177b6b6e1aecbb600cc5fb81376d31ee","_id":"hasura-cli@1.0.0-alpha44","_nodeVersion":"12.11.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-2hLbh1N5HATnEjezBta7oupqQPrVB+oPQznpZOOQ1KEvfGXNm/QGNUElDDlq41RNwDdYeai/OXzbbZS+JwnLtg==","shasum":"84398792f0aa46eee0c1e7e1e5b2a39a71f1cb80","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-alpha44.tgz","fileCount":10,"unpackedSize":21190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkb1kCRA9TVsSAnZWagAAhJIP/36CjmqpDV2L+6CtROzb\n83bRsJthhYes4liLK8uXgENWYBjDAsBHRXZ6p7oGMsKckFEpHLIBhTyKRU70\npuiEobu7NIJ6vrRrv2FzpR4J+wWJEKnnFcwrH4PZI2sCGdzhinBtJYg3tICE\nrDhVnAjSFBkNkOjM50eQzjcMNAh8hDiyBqRdUoiLL0YSW0Qb2Vdl8887FexL\ngjWjsa4JS3OdA95I8OY9wLt+0gBY4x1irX/s06wcmkh9OjPlumgn51S9PhFT\n+wMgFyD14AX9H+aBXclFIn4nxgXOmnOjaRF2NHnqwOPLBLqneE0U10kNR18G\n3Xsnbj//sZCLOdWU1coIdmrlT8gflrM+zDGp6oWw/qpB8Yh/75m00xz85Am/\nN+jIgTfgkSk5HBl2LypkvrYPKYZeM4IFQNOzmtDWW+kVtm5/i2DkyT38EkFu\nC2JwIB1WXZChT9OQdaKf2uKYKwFobabeUC0YfqGBBAWX8BBt4BLF9xX3+wuj\nJPJn8MHdTCD1z8pWanSZ9sTTgeiqm3Ee05Wbxdiwk3B6zw9RummcInCATTSb\n3O+hxdLOgbL3gVNcjxb//sC2qVUAHyLNT1YDklTYwD8EF79pCDVtnU4QIFgF\n4XPbFCmycrpO75XC/RoTryx+wU2NkrtKOC52ywHBINV1zMnxSUgK5SOPjjxZ\nhuUb\r\n=kj7S\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDmRESjUAl+piqri0rLuB0I3IpCxd0bh6Ydc7kTmucTpQIhALj4ySH/q4nwoICvn6Hsh3tSuJi5TQaE5fFGe+NEdyhN"}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-alpha44_1569832291170_0.2856201955215647"},"_hasShrinkwrap":false},"1.0.0-alpha45":{"name":"hasura-cli","version":"1.0.0-alpha45","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"9c1ca5531fab67a53102fe2d824a4e8c098699ea","_id":"hasura-cli@1.0.0-alpha45","_nodeVersion":"12.11.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-VHE2Sr8xBQIq7xP3QlmOJSHbgqMtPVI4COawbCyrh2Txhe4dxfWTgucVV8yaYmCvyHAOWo4gHfI7UnHZcEyLQQ==","shasum":"01073fb77304e7096fe2cd3ed4fa8a361e07fef5","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-alpha45.tgz","fileCount":10,"unpackedSize":21190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkcHpCRA9TVsSAnZWagAAjk0P/0/aN2jY7Q06407lWucS\nPlPqFnFn5WQ8DE/6mDJq53mTrAmKIuu4dcp5E7w/SlKTC87/GYxfLbjqukve\nlGCRDOLWxQXvoYZhBKabkf3vVWmf0r5O6gX/ibRY0oo1ceM0k3QZgK261SbO\n7Lwbyu/b9eWqyyc9yhaGEDn2TgakSy1/7WBLHaBFPY6RnkT99o1yrKf7b4OW\nBLwqbBAM/xevrn8hA5YOT6YpioEyzJ36sx2RhZ03n/ys/Mp/YTZK0iLbZrhQ\nT9I52jN/KkLzfzDaq6h8bidmcYhVGSbL2HWNk6pPTco5PVc136ZeSjY6Ly4u\n2KYfR8OF0g7OAQN8pDfcGRqnReiBUJ3FI4yRiMVeXhA99teeN9n0QCsSzpvw\ni+SvQFLzz+LyR1V5QR+nznBqttfhVx17inGr89d014S9rB+jGh9rg640V/dx\ndi1TtONX8rQvHuikxmLMk64AW+x+QSyIpc52UqhmpI2hI2y1Wg/KbdD7b1hw\nvKvD0uvTZlMkKynoIVbcRlFVTVa71laBJ9Ge8HvXrMCoH3uRZrVCTh7aR/3B\ny5XdJbdb8b4mHK5fIJAhbuzLmszT9i9HRdDGEJcDF7TXJRBMOsbL3LN7JNxT\n6iV+W1VdebErlzzOKvEOofiU+EpblMwlxkJmqhzRlwBHasbxKhWFvmFW6l0j\n3DLm\r\n=u6t/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDetLoHI5224dyVY8pso5mujOJMA8N0dMKNmQTwJ+U3WAIgWbcS2ySbScgzRVcCvajednmsvaz6rVI6mQcWzERHTrA="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-alpha45_1569833448925_0.04366690554893671"},"_hasShrinkwrap":false},"1.0.0-beta.1":{"name":"hasura-cli","version":"1.0.0-beta.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"29e06f814b0d850d9e33fc69dc9850c5980d0f84","_id":"hasura-cli@1.0.0-beta.1","_nodeVersion":"12.11.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-N8J9wWSAzBIJfLNZDNFP3lltArq/8BKkiOjDNV6sDkVHgl2wFFgvaSYln46XxsCa9mHqjlCtyR/iFAir+059Lg==","shasum":"f86fe3f395b2d259b55af0fb5ffc4d2d105d7ef1","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-beta.1.tgz","fileCount":10,"unpackedSize":21189,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkcu4CRA9TVsSAnZWagAAcEIP/iGbXiCJ0qeMnkUk19nY\nxdeVeGZpGBYTuiOzOsE8nxFRQ/LPe7UZIkzpnsAyleaTCs437LcNms0gVhXZ\nmKpdQpASorQLnPEFt0e/lqkLw2qcvBV4h1BYKEDPjdm7uw6mVIvN7p/JaiNX\nVHXu2W0OxLmRQlkRRpypZd+kB5s/IjRPpXqiyDShia4C10l/hax3GRWNN0Ac\n5sW45/s/X6twqCT4B03pIlroJFNUgdRNbVZZni9pquIvjsrgZcddHDEmIYmy\nJwK6AjXbjXWxyoZFY3/rP1xDNYU9bJbpSK8vSdronbEa0Oz52EWl2CiI1xhn\nuly5OclM2vB8CXXhutayxoXJK2sIWTs4uUvBhb9ChAyPPKG9El9XaVw72Jop\n0lNI9lqoZx0N8XyV/TdotsfpAJxV5I9MBqcQ3YADx3gu8P+9j/kozAijqpx8\nK656PfK7C0o2AFlrFzektBJxwxonl0Sch/ldvoF7bTquB5yv7rqfxa/dMY9G\nbvPLSBW2wsYrnvxqC9eNFmdDPRaYC0CF2zdMCkfjeB2zPRIsdW/5IoCptmEP\n36wxPu0mPKVB/NXlrq+rOx4Iej48rQhRBWLuivsLoB08H0YqZi5XD+DyBW0e\njq1vChZwT+3+Iz0iZhBOfRpWwIvy2ovf5AtiqrEQbcPXY9tOgU040uKd22nt\n7VXt\r\n=+5Mm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDzxjfwNNtHDfc82YyTpHGSqElt2VtSMU3yQNldEm+jZgIhALrRCDFnlUH37yl6MNRKHRGvzkPThombJce2YJxDwf+z"}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-beta.1_1569835959707_0.01618630314993874"},"_hasShrinkwrap":false},"1.0.0-beta.2":{"name":"hasura-cli","version":"1.0.0-beta.2","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"1a7c0babb19acf46b3b2cda79309350df9baabb9","_id":"hasura-cli@1.0.0-beta.2","_nodeVersion":"12.11.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-XsDLHMBh2RHQsVCL3zXYDXs60606hDuf20hYOk/3iBVefvF+KPi98DtcTGdE/6Ps1+K8dBE7GY8guRbJlelHHg==","shasum":"b7ffda015ccb1bd2f8bbfb6eb42800b55d150b49","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-beta.2.tgz","fileCount":10,"unpackedSize":21189,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkc2UCRA9TVsSAnZWagAAcqcP/0AF/vKkKzvIUs9Fxxjk\ntcTh4IXPNDSsAKkUl9Xbtkwj4OSkWkcfRoyRLT+lS+U4O4mUYH6IBIp3/VJA\n5uxa1VHXvnfHFqfIWG0M7Q+THy5KHlkFCxf8t9SbbF/IgzZltYlViBevWoKR\nPDgZKbCkaV13DavNBMhLkqA7T5tPUdoNn/GqadNpsl45Q3ZIKkuALCP1iQr9\n6kVy0ZUE44/h9D9OaWhAK30Gze4RAVytHM2LV96zZbfQYW1gO5zgsdR3aazJ\nZ+aws6a6D5b6UEvov1AcplLbSZE73YM+5F8ufk/zAITz+d8UXfOliVC8GFQF\nmDlsmYhcnMkf+ZkhYjgMJ8mnZtnilWD3bSTJbsHp8F0TOCMWbt8Njy723Ng1\nfNUDvhJy93tqqnn/pbLsVpZkbQVat0Lt70N58TnKwX2IVCOeo3QYWU/rZF3E\nZ1sKlWJWqZoFpkUf00igJDryv4RtAC0HWXn7GH768L3BSbtXmDiFgDbY0K96\nlxzzQ8ufj0lKOAeXV2nAB6TRTATmxD+OcNNi0UCe+LrW78X7tI+3iQJt3hRG\nfHmYpvmF4z885C7bK3AgZW9S5yOdXJS5+Vj0FHKycHRfey2egVuxF4fC/fCM\nwrWD2uYfofJeyOut/N8lkljDul4sy39oMbUhDZrhlVSEqmejs/PxacyFkf/E\nzT3b\r\n=piIn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC+claOxnW4HOF6g0b06ZpCFfKKj98G/eHgWgjPUAkeMAIhANj0vXlz1GCWdc/A6HQhco7mJQFTXKmVFK/4nHQeU5QF"}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-beta.2_1569836435446_0.8237785132784354"},"_hasShrinkwrap":false},"1.0.0-beta.3":{"name":"hasura-cli","version":"1.0.0-beta.3","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"584fa64f7670027426fd97e125dd0276cdf5504f","_id":"hasura-cli@1.0.0-beta.3","_nodeVersion":"12.11.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-3FKgcZDW+R9Muh+WeAjDz8HILJGfTYV1hQUM44kfwImiilZDBWiSMkSgaCW8rhApf/m32qlWfFc9msYn82HsQQ==","shasum":"01dc5e7fbf6b452e3ad96e0260d9fa07ed34bee7","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-beta.3.tgz","fileCount":10,"unpackedSize":21189,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkepGCRA9TVsSAnZWagAApg0P/idvM43Bv9XqO30grI3e\n3R0eBGreHQCbeZNS7w/r4RbNZadxb2lT4vZePSIjqVTlMTQpJsBJCzYtNzNY\nAZ8VRstUEf3Vbr+G2dInOsge4xdzyG1h1FYLcR8jXfgsHSisxTjAGL9mIUYu\nAJn7OFtsExZAnazuePyf8aw6ATUqyDu98J6qr8niaNHZboKMU/1TmT/YUxRh\nrgWJ0apAxcdLL299NcEtcuBoKlXP82nyeJnQZOR+GeKY/CjQF0WCO/uBaod6\n1hXme2/+/biRrX7Z3C8I4pOMUrdXJ+BRNUZWH+qVRgjdMeBMTPltO7spEyGl\nBs7lekRW/5CkRH31hDkQpkBCRCTmR0BVvzP+eSUT8Uvz0zjddJWgBehjYGUW\nROBPBdu5upj7250JIntcPerCmSN6FXqmYaOPHducR1SqLn4TF1RCWba4Qk4p\nDld7dO8RnGEBxHJXrJ7uGgVdXnqoaQgfLo3aaevg7Yxinlpt5XQoUPlcK1hk\nBjd76v2tMfXbN/Xnq/Tl9KVNuwXjpomJa51zuihjVbQk1fKX6Phs8Iztzmii\nZRospG9oahkwgCEF719e08DN1j2bc8nZ6nYFSUQnD7B96YqBq/uxpIgcwCkM\nYsgl9WAO0Yg982Vl+cFuKuIgxvNJS+SILm7qCFwmye2LEqTWufvEGHlfe2pv\nCm7d\r\n=57cQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFwhcHYjorZlXR7o11HfFUa5W9Vj0b249YsijcMIm4GoAiBF2nj4bU4yRsbFl1nfsal2EhaOvvB2PuZvW+veT2eS8g=="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-beta.3_1569843781923_0.6610392018373215"},"_hasShrinkwrap":false},"1.0.0-beta.4":{"name":"hasura-cli","version":"1.0.0-beta.4","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"b081f4463bf3b5074b0729c5aaba493bb06ca718","_id":"hasura-cli@1.0.0-beta.4","_nodeVersion":"12.11.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-fBWCzIzvqXabQzJMdI8e8wBKUeQIRp70BJFow4WZgG99w6dL3POyyv/pxEaOSUCYAZ9367u8Q5IEHNfwNRjX7Q==","shasum":"29a02b4fbdde3ca10204db9cf70ad85f208bc3a8","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-beta.4.tgz","fileCount":10,"unpackedSize":21189,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkfNKCRA9TVsSAnZWagAAbvwP/RhUcJicCyuHRnbI8o8q\nt1WjH5LYU8/rctRrNeE38M4Thn6BFrGDSFsE9Zhl1rxSila3O41SxgDFAlS5\nJUFSxn3VPjOyHGKGXoBCkGSqi/SKjoTHIPH2b6wRM6ZvaV95o7yT/EQoE2Mg\npJ/rUmh39Ozr5kUJXaUigADGSRoL/rSFC7vuy1nmYb5wYlj3s6hmPex2j+jL\nSCEhrrvTU8VQHSONr4hXPajT5N6Wl6aPu8KWGPcaZG4XkH4VArkz/r7xPzXx\ns+0zYp8+VKHFVvFkEBA5/f1PL3by5MnJLXQrumUB7YZvwr0Ql1oLDGfE5TpD\ngnJ1a8dXd33kYrX72ZqSL1ZUuS/s2i1078mJvSUelNhj3SzNEHTXljU5DWt3\nb/MfICGdx2klLlFYrBrs+VHqw2gokbi7VnveF/G2Yd7v51muvk+dNyo6vBiW\nOhPndupWgNX5cszbljyntmpiyqTY+VCp6UlLls7cQf1+FmYhvJepyto9gs/W\nmygh7OYgV/P2bTlXZXmuyRUg6BCmHTHj4h/wujiWwEC6UiR4/ffoLp5CTnar\n6zLtCtsgdsNKBgPTjilYQs8cgTmkIpCT0H4I8xvkZd6MXJzMejIZlOvK5S1g\ncfa019pk29xQ9cId2fUfLoix0H5lW6aUAQRojwoBtzhSJ6OPdlt8oDKHtNac\nd/Zd\r\n=2aeM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFQSCBPxLKmZ60DUldhWxirdsJWXmlUzODGlBT0Vj71yAiEAvDCS/v6DyOtf8k1xeA4eSt1zCai6j0b27KaO4dbr5gM="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-beta.4_1569846090180_0.5538151146282939"},"_hasShrinkwrap":false},"1.0.0-beta.5":{"name":"hasura-cli","version":"1.0.0-beta.5","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"c015b90dba00c384dcefeba85387179452be5d8c","_id":"hasura-cli@1.0.0-beta.5","_nodeVersion":"12.11.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-Kg2MTYZ+RaxC+ibsaVkBwYsVr71J6mGprjaggu7xVlfphtiJUDc5nyec7OyrxOhatPWz6Ye8DcetBlDznKhumA==","shasum":"3a507770ade0fa9c78817f85adca0afce85d9af4","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-beta.5.tgz","fileCount":10,"unpackedSize":21189,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkfTCCRA9TVsSAnZWagAAJAwP/AmCGr85VvnviX9MR6cr\n6yS6729fyUaSVwkkth5G1ZAN+V067Hqi19JS/HWly9oJUaUFA45ZjJ/RjhP1\nAcy1dMVnzFC1tr4+cxKv5I7zz9tVQmJiQkKBhKUYR1wxEU4VeG3I3syYVeDD\nuuJiULApX3aoy7oG9ADWCvcaBitXfMrm34ScVoktLbsGtgzF9XFtmvfF/jIp\nzgDDo4cXbdqQh75BjcpTow3/6GXhlVvGYVGWSHVdjD9p+/c9xVSM9OXPyD+Y\nFfin/2EPyUQghIj++atHO7AQd3x/uA0KVrbfhjYuGwJhg5dQtxtwAQ9WyIUJ\n3wN6Zy6eyu8nNEB7uvojmtAQWVDadb1GDhO5Q1F57sI22ruV4UCeeQ1m8HTO\niST1ufyx20wzmP1JMIwzO7MGN5t8Gn8kT6WMJmF6q9NRU3zs3KEuBSzTr5aE\n+Zyv6B/fDX4xfR7HymJdMlSNEv4gdWVvYcF2abk45V2uNVvat2AmZJ9w8bPe\nREtIGpcHfObFLoKlPAnBJ00kD760cEiApq04N7ncVYpabUje2njiN2ToiGap\nf1mUSWXn/kDvbseEKws3vBWkNNMjBWIvXlUYVJl0TjQ7qizUtgkaba7Vhg4w\nVi3F13cuTHCeqngCuLwa5ibliyEgkdxhN+Rc46pIRqtr7SV00sWCUX1HEn05\n2XeD\r\n=+9Yg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDm+Mwq1WUKeg7oogE09lObX0iELp5U29TGAKrPtzNs5AIhAMULZQU/aNfm0OAkCqk5NKUtiVPu5Y2jM4EwRlS0ltNc"}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-beta.5_1569846465418_0.45063061393640647"},"_hasShrinkwrap":false},"1.0.0-beta.6":{"name":"hasura-cli","version":"1.0.0-beta.6","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"a5635a99219f817cb696fa6da31fe924cb28f552","_id":"hasura-cli@1.0.0-beta.6","_nodeVersion":"12.11.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-UAb76RAGzn3s/1dMQoxicT06TPBnifcMPDW7LtILE0TtVsxfZgPKBzaFUSol9PCSQyZe5ySPkpQKH0qanCOZ3w==","shasum":"cd9885cc19e1e59a001f67b0829b796c0983d1d1","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-beta.6.tgz","fileCount":10,"unpackedSize":21189,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkfhWCRA9TVsSAnZWagAAarcP/inNI5+YyjPnyVLo9w2G\njhc8G1712YImIk0uLksREhFOJcfw13L/hl/zBCKNH7YM8R2mMJ6aJiRLWwY+\n3kShV33cWd7KjXgqtV/VhoOwH1ajv3RaSnchrmZCvoDWJ6xzo0W6R7K3lCyO\nFgDiZkcKMPWZDasN3oE5iskInihdIlC9cs85bW0CyX5fxJp0i4UKHUAlHKkr\nH/WUMF+11YTcuOfRPgier3Kx3/r3AFwFCTsaHKnc9Q8DfuRbPVxIftx5FADL\nQH4Xdv19fYfFqDFMliWrTuOGJLyoakXk6ji15uxnf2NZK/+ySI/AH8aOtGge\nua0VJA21oEbPBpWKXa3Eynal2qUqHe9nyeJBbiUK9sENcRARIKhHxI3Mjezu\neZIXwtRm+zyB3RUwNzG288tmr+0tPfwGEcsUoGsox5DBxJoaiql/lixyUcKZ\nExWOvSclG3UR1Jtsh8MO5uiGQIDxOu6uMbMjfCGhaHtTfyEYL1tZk17dy5Kk\nw+g+S9pJljR7cesU+H7HCg8RKBkBCmEKCCEuwYTqWMkBl9aCHyPmG32jDlx0\nLLHJ3t71DZvkigRQOFiioEavVkj3CoQvdEJPI/p5ro61xGRthBYt8pIB7lJX\nafk3hOQ8WYBku+RTWUHUHJ9YXANF4uw5l/Mvpib14iDpVRB725npeI2zFx8Q\nzvio\r\n=jJFW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICrhfCI+I7idUfzoUQ2BglnVgJa5yFMEUJD2s7EVJulkAiEAgWIDPssuAyX/7ZW/Th3cHvnWmmWxZZHssJLTdwO6kyk="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-beta.6_1569847381812_0.3551127916284169"},"_hasShrinkwrap":false},"1.0.0-beta.7":{"name":"hasura-cli","version":"1.0.0-beta.7","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.4","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"66ed3d463963ac9a058b45424567aa4d9e50c94d","_id":"hasura-cli@1.0.0-beta.7","_nodeVersion":"12.11.1","_npmVersion":"6.11.3","dist":{"integrity":"sha512-HXpy45rMYegkUt+TWT+cLN9K7yEW9xAKHeLEFhZy+fle9U2FmY0DoCdJI3cdBRHYIEtZ+qYRnrAkCceHCy6H7Q==","shasum":"5c0981df1791552b4350fb3be45b7ddf0839bbf6","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-beta.7.tgz","fileCount":10,"unpackedSize":21161,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdoCz3CRA9TVsSAnZWagAAQNQP/i4DeFvStPiBnvR6TC9Y\nELE8WhS5H3Wk/3OlYc47qpMgsBM/oiYuvk7oS4sDOWO6nnhLmLaiYpjVCnhV\nsb+TnX3NeZdXSpDNpyy/TFut06V0SOcIh9NR/yGCl8HKVAN692p2H4sMX0Dd\nudQ9WryHatrwzC607aafA9xsbjMm2avFEz+Ym0b0uv2t4RB/pEpgelaSN3Rz\n2unjXTd9IC1PB0Nnn3BdoAzqG0xamctXU/Y1dt0TE6D/Soi9iJLkyhxZwzTr\n1/fRNdbCKfXWp/cdpc/Hpt2wL1p4R1OHqQwjzqmD8RmsxqFtX8i98InQ4irK\n2tDdpquFDV2EUl3KsrVk6jn1SsRg6UdJlO0sPVQOVW7oo5QI3SRMPzmszZeD\nnbhVY9eXaf/w+iuBf99WQ5UMZc++BrfJj1gMJIUNV/mT2gb+u0iG7+0EqyUj\nxP0sBYybZdM04NjGOlMoKAWyDX4s+H95i/0nEtLw/fgpL3SZEhI6a7dp3w9g\nQgwiBM/rGt7kNhItzmVkMhY50bi11QyibQ0w6C4GlHBT5hxqoQ1XEvueUawG\nVG1WP4JD5Ec0KJbzxx6KDdYPvmnT1oGSIba9hnWdqvA1CMPq0mcReRahzcQZ\ngGesjebqf/3St3Rh0mLEsqvEte9n/8FBG5OqF4V7s5vPDlPuLcFHMgFYMNMl\nYdUu\r\n=kpAI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDN8DxlP5YGdO1A5swdM1DCF+OB06G8AdwnsglSQNrbHQIgXUCSEZGbeDhG8W+2p4EyISMc0KQntmqGn36mtIUz+5o="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-beta.7_1570778358976_0.632166661892644"},"_hasShrinkwrap":false},"1.0.0-beta.8":{"name":"hasura-cli","version":"1.0.0-beta.8","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"873f0e02a1839f584606f7fed6fa2d835d2697ee","_id":"hasura-cli@1.0.0-beta.8","_nodeVersion":"10.15.3","_npmVersion":"6.11.3","dist":{"integrity":"sha512-Vj0DpY5bzjbnYfTlR5FM1n+HmLT6dhT6VNdh5YOUp5+ano0CfmzX+e53gCCosvZhfRsCevX76PEQsXwu5io/Fw==","shasum":"51ec42b35378d69da2aa6a2f0bc5bc939e362fe0","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-beta.8.tgz","fileCount":10,"unpackedSize":21161,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdtondCRA9TVsSAnZWagAAi+8QAIPgnYCRGUTgYd6V1ehE\nTijietsin/tZqaS/okt8fp+Edt0djd9TuoNVhOcRWSU4Y4xEeGCtpl8DU5DV\nTeE8gKV9Aepe8fXAIiFFfHVs0/xvsMlYTH3HLqoiuSiOy41YownolDhQniFo\n9/UoM4VXhDEvrp4Mod8MJBCTZpaVNBNJF7q7O8H6EBBrBQQP1B80Pyu4Lys8\niFLu0kDIYZ020EnZuslFSa80VWXGhoN1uLRQWEDa+AU57w/G8Exo7Aiv5rai\nLeRDo+Lwac2A+AtX7dE3eIvwh3beE16ThLWdr64/ClmnrrRNB5ZoMtXJbl1d\nXIV7J++wY87fdeexp61UxLbBiXed2NhUCCIP+S/vRuN8zcpwEm5qyF9NS9w8\nXv4GRyfB7p3emouRkyru0ac+8Y2EKRtDQfD6i+i+o6IrnOO0EM0UEeozCwtY\nS6Zcd90Nt3TjKihK7NyIWwWrzz9nZV5OMsSVaWCzbbUJ/wsJot1iOZiyzfD4\nIrAMPI+0XSniQ6skh1syd/8xzjQ3TTSq1FeWPlcBPrTT9ZomzgTGwitY51GJ\nqlklleWWidBqy61qoqoSX2WJEzearZsbNNMNvF87/9F2+VyJ7BEnh3jXz4Dh\nyr6c5PgqcUBXTJM/FtvUmYOolEC+jpdd/SSaERcp875IADmQhJquRogZzGQB\ntAER\r\n=Has6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICcY73iW1+/hYzJ8Xed7B1AwSfE6Wx/JuyHo35SJXrBHAiEA2LltFwKMbxUJozKC5XB3e1x7siHCXSXIoyUJs31FPgk="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-beta.8_1572243932676_0.8952068820425862"},"_hasShrinkwrap":false},"1.0.0-beta.9":{"name":"hasura-cli","version":"1.0.0-beta.9","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.4","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"0d32721539e44e6c14866eeab353d02b26503a01","_id":"hasura-cli@1.0.0-beta.9","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-U4u/t45P0ZMpQU7qaoRRL9XKkmdt6JTf3T9XzfrvxO4Q8w9dvTuo5/wbd601b7GF5HT6VJ9KOuRoWHncK7KtzQ==","shasum":"a00e3c15d6ddf8caae4a1be3403cdb58a759b8b1","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-beta.9.tgz","fileCount":10,"unpackedSize":21161,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdvlsZCRA9TVsSAnZWagAAkc8P/iQ0u6V+ZRX2rqXXfyvv\n1rB0tWrgYnV4gJoN7PqUh/f55QaNHYqJwr1cVZkvToYPNzTRunX9E7fDCIkL\nO7xu0S3wpfaeHALZCF0O2CIRpS0BS+2teO/xntJG70G3b4oJFNcNQjgIIHGw\nXSGjLOCvqNTtghH76ILNKOE+uN1fkP3v2tderEuQGRXUO3yJwhST/VTa2h4t\nDPcDmO2ngqDVu4EMTeWANcgWclEK6mOL1MDMoSo01kPh6Oh/WxGqhx33a1Vj\nE8KJKUvzKuUBWhDwVInPBL5YU+i8UvrFsZ0thwGYml+Uua8GwJPLdGd5/EO8\n2KOt44k/t0IRsQLug/ud1mmWvkJw9wbHnDEHZyCmukdHMSLDCsV+5a8syKVC\nF4F6KFkzZZgWIU+4moalgkOt3O3gVimT+/6ooU9Dk1qMCDf5nQ8yzcQS4xuH\nnRDpF5GIxdFgdRzqx733iO/4fexzbWXGwJOmd044eVK/qx3bHp1Mk64vysU2\ndQSbCcBvUunMB0y23QCTEmdrqf9XpdETZ8MwMGZvH+c1ToTjB+680HIqUsDN\nyhzhBauyqAo5Tfas7d3KHlzhD44SWm0bAFETgxBBm1BGkFG7wDC6AbkoJs3C\ngfwzRu8TtMIkbFsTLGhnow05jjdCQo0mCQWpvfEYPiGK+yYMK8FP7VWG3m5R\nI7PC\r\n=XCOu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG09YjdK4Je+dT1fxZ53EID//H3wmmz/kxCAkbWnyJxjAiAVaXKZCMsllP/UAuJgwzyGbFc8qmI9VwZJf1Af48YIVA=="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-beta.9_1572756248348_0.16112901433480364"},"_hasShrinkwrap":false},"1.0.0-beta.10":{"name":"hasura-cli","version":"1.0.0-beta.10","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.7.2","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"f726528cc37e0eea8a5e2349601c8bbe4339d30b","_id":"hasura-cli@1.0.0-beta.10","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-zew7StEDTVh4/j0go+AnZIdHaZC800ecOf3TDqsbWSzAgEY+ycUlrXXItSiAkAt07aY3dKxQTGtnPShWuQ6SIQ==","shasum":"11648540b7708b651080a0f5d85fdb4754a15e45","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-beta.10.tgz","fileCount":10,"unpackedSize":21162,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdzg8QCRA9TVsSAnZWagAACdkP/1BGhqUiLVf458R+SNDS\n/GkOojoxps9/2P1QUz+gFh3emZT5Ppnm+dzkAkKEsZVHX2o92jcxk2pXkEPR\n7coWOEqhe9NAdMUiiRkFoJmBMjnCbCIlbXTIf+19nujazIoaxHdLj4/sKIlx\nrF9G2diuE+NeQ4GS6w97bZCcSI3QoPCKx1mv52XYlDk03fl557JAzCOHJK4g\nm4j80MwVBtNvm8dg24/983h95fZlzrXdSx+N0ib3jDwkoqnmmC0IJpDNqPEc\nPFB0la+OHSz4VaFW7dMok3DNZpADCfk/h2Hy0n9RndporcsNIJuCm778lBK3\nKa+WkMDlxLt85XKkGQbOGNBGTKQ6dEXpMDZaxI7wlA5aay+WI9cn27KzvIDw\nUOoMB+DJUaaMZBTGdSRFlrtsLcajWjFt7zEluL8Br9smD16pKmOW/ZWVwHVy\nAJX2eREWYuJWSz6tq6i47ZzATENjgmXZLRUDjGTnH43rXpXJuJVMvW4eFPHe\nWwV/4Bmq/sALaJoaZ8ttUhYsaMCLCqqPe5rmZ8FhK0qrJILwpbk8YZvhGjPn\nOKHpGAoFFMpe3qvruxT79n0hXHFZkQ25hPmobEtNzYIcx6E3IjyxJm+FrjlZ\nk1B1hL954kIItsTUlCYda4c5JXdRidb/M8aGcRUKzY4cTnqsajJ10xyzZG2m\nkgSL\r\n=polF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFQt+lwCoJxZdMfI5IoOH3vH2DMyq7w34SNxCObVU/d2AiEAuxIrmxtoG3PF+PHylmZvVj5IuaEtBWVba+V7uxmAu/k="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-beta.10_1573785359591_0.3502655012048146"},"_hasShrinkwrap":false},"1.0.0-rc.1":{"name":"hasura-cli","version":"1.0.0-rc.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.7.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"808a106decf98ff0d32c2b37f684a9465e6cfcd2","_id":"hasura-cli@1.0.0-rc.1","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"integrity":"sha512-w6DGAhJZ6l7U89SD6QIxYetP3/dDxJc4jEVzjMAYsueeYWQKDeGgtZBFBW1sdgAlUtRmtIa5wbiFLXuagB6JqA==","shasum":"481453f88e7624f468f329c75a88fbbde3407f00","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0-rc.1.tgz","fileCount":10,"unpackedSize":21159,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd6GPtCRA9TVsSAnZWagAAMLoP/0P9PD1mP/hPKSFibuFy\ncj/MupIXA3fJUTB1Jk9Blt8ROiJOz1dEBv0HTprRW+/JPkyaRJ1l7GTsAcBu\nu40I+kQDiwOhl7AaKEMl8ZDjz4GuOyXhP+5kSar/t2Jz8Vz7ZfJLAy2XYm6s\n5mjzlu5iJmzQ67nPFfpiwWW9xkFgZ31UZq4cXPpPMJ4V0v9qB0CR/TR6PYHo\nHjaK5KnOIwf+PGVLouuq4fir0QeSdMGXtnIl4G29cKqHB+rz5+mCOwKvlX+r\nj53KEAGWGm4PJAlGZODvK+cQ0iZUfDmOS0F+q9irVTIN8F/Mnjbusa8xPxWP\n3yH1gakw9eK6H1kIJO0DEjeRYY3T1t1tH6dmNh0Gez+x83y8aL+coQtMOMIV\nYA4S+ryTJ4oD1cCu5X71vo+2HBvItLQA1vUWyPHb1P9xVwoS5b1XtuQVHwo8\novA898CRU8prNUL1bqYbd5gKiFXzVTb0R6cFIaS38dsBkSqXn7ZqAmObSST1\nVvMnMMp9hBJFj3TWosXSNBAx33fWJbskvWLIAD8EM7xLEYhu+H/T+HRAJQgU\nzMSoGoEbwKClzTcxYSfggqxqFeiwAh6Od0CtvXTeiVD3Bm+/gDn+ritaN5jn\nh2wrG1vtfbX9Mx8lOofHPWJnlnVjXkLb9bqDnGa+42ga21pJHrQvBQhUwLk2\ncOjc\r\n=3yU8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBPmd+4mWQiUp/QFYZyTPISboi/trsBp3N6oBOKlIOqzAiEA60w0+4U2Chj68fAHjmPBr2Xm9U7huRB2K+eCqQZnkHk="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0-rc.1_1575511020695_0.3872044803127823"},"_hasShrinkwrap":false},"1.0.0":{"name":"hasura-cli","version":"1.0.0","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.7.4","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"81a93f0dca31e2a19e59fb4f2b332e0887c3907f","_id":"hasura-cli@1.0.0","_nodeVersion":"12.14.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-I+fJEqRyw9RCAYU1cuHoYWd44iqRk6cceMiBjsOciQTi/5sqGLJTzmiXlqw2dZchvIugHvwcM+XFcZWUer254A==","shasum":"a87ef37151da33cd54394984b6ab4d05f8190dfb","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.0.0.tgz","fileCount":10,"unpackedSize":20639,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd/21mCRA9TVsSAnZWagAAoYoP/AhWYfwSAxGzjFkKkZqu\nrk2QeSjkR2luUXeW2Do+8+Nmkp7Y8HswOKoGvRwcuximDcXxpLgJcWwfzVKQ\nKamWPGinf/o0ii/3L2NMf4vndxk1oI0yIYX3dGnS3DtRcLOkjxLwskJ86vFT\nYcZr6KecMdRCJ3MWckYEzG+mUSTxk+qxm8zOgZe5TALHwJbN2RNKOAK73Te8\ntYs45R1KPiw1IBVqC4NdgMTih5eA6raPiqNs1REXT8zuffFIbVwFG8lROxWJ\ntVfdouiM1sFkTu8fJ9kG7q3aVguHxIwrHBcXAEAFCh6IMlEtfz2VGSZm/QgH\nqoII79zlPMPuYzUZtw+kdFSNvK6QCOlGv9loF7+7UQXxIDmAsLoC177YvWVu\n6YqcLDbXOe5d1xrCme9UCTtbfCtHFN8lMX5Gos0qTCC7ZnUMZnDx/d/+fQUk\nqQwKxpqsHagW0LiJA9shZ9z2vKMQdTXBESVLwNVPB7tmL9QqQGh5pLd12wHM\nx9HC40xdBKQCGG26/rN8mnqBROGFTFhFKDUKAWOAsKaCGpHkRc0CXUVxN0Ho\nlTXqMwjYlKQrKXVJcN2n0nFfSLEisHr6MH3ShHacktPsaGj+3v1D+wts+PGk\nc5ThPCqozfuNlQ6MosVS8TKKhLNBB+5W8JELFkP22pZ8hs3ruGrKrkXQLO0A\nsH8e\r\n=9soH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGRb/uvyw/9l5MrfTnrtmk7v3mTU3Shzt99/A3zSPGFtAiBnCg3uwlQexOYgKZuBzROtOtTP6J1qurDKaz+p54ldtQ=="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.0.0_1577020774278_0.6673229002960106"},"_hasShrinkwrap":false},"1.1.0-beta.1":{"name":"hasura-cli","version":"1.1.0-beta.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![.nvmrc](https://img.shields.io/badge/.nvmrc-10-00e676.svg?style=flat-square&labelColor=black)](./.nvmrc)\n[![yarn:required](https://img.shields.io/badge/yarn-required-aeea00.svg?style=flat-square&labelColor=black)](https://yarnpkg.com/en/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\n```bash\n# latest version\nnpm install --save-dev hasura-cli\n\n# or specific version\nnpm install --save-dev hasura-cli@1.0.0-beta.6\n```\n\n```bash\n# latest version\nyarn add -D hasura-cli\n\n# or specific version\nyarn add -D hasura-cli@1.0.0-beta.6\n```\n\n```bash\n# global installation\nnpm install --global hasura-cli\n\n# or through yarn\nyarn global add hasura-cli\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n\n```json\n{\n  \"scripts\": {\n    \"hasura:_\": \"hasura --project hasura --endpoint $HASURA_ENDPOINT\",\n    \"hasura:console\": \"npm run hasura:_ console\",\n    \"hasura:pull\": \"npm run hasura:_ migrate create --from-server\",\n    \"hasura:push\": \"npm run hasura:_ migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package. On windows, unlike linux and macOS, the file `hasura` is not to be replaced, but just a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"9dc211be9f43003eef48fa7ef0ee4370a717cc62","_id":"hasura-cli@1.1.0-beta.1","_nodeVersion":"10.15.3","_npmVersion":"6.11.3","dist":{"integrity":"sha512-L/W3euVcly/Pt8KHebYZVfBzZYWb7IVlRcqFJGvsl1KeNI38fEe72ERQNC1Qlm6bnIT+50SssDgLkcKESH5tvg==","shasum":"7e12069bebe83a3d4183932959d791b15dbfd7ff","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.1.0-beta.1.tgz","fileCount":10,"unpackedSize":20816,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeII9WCRA9TVsSAnZWagAAvsQP/1RJG7Iu2rc8FHBvWtNI\nJWat2N5nf7XQw0eC73qZV6W1S7dfhMv4YiejvcT9Istg0HmXKm7riiyLXBKx\nTi8yRPNOnWlVesraqw2HE6gBS536UJuuP35g1vgmz7cpQu1aCMJADgj3rJMI\nmQnicLVUlR7HI99HFF8U+fyXkHPPRYGczRf8TaHnjgSU+6MetAOScUeROwjF\nb5g7aUz2ZG3HhpSN07tDAy3S68UPT3kqcGV1QmULe27bqYYEcc62MN65Yz3J\nVGIh9peVrb0Vw7fkfehhsAgw8ZlKg5z2RQLjaeu4nQKvv0HpD/OHcv9CuoO7\nCzErRiSBJww/fM0VL6sjYVMoKqSRk14C0hNjX+4vCcJ9YiHz8ZzB3dnZuxhl\n4fIps+VCiGp2tOyYcbTx7M+z0l3X4TftxDXGEblXZNyJkyrNYKj1T3Wvxm9/\nv2elnfniGhFCzY6Uz+wtxFqlT6g/DV+8cJ10XjonizX7h7HKL2JMVv9vLSDT\nhPMIYnLOcTWiQsPyyH57MUKBtW8wp+fbmIv6jIGdgAqI1UnFWVgNOFlFP8nP\nGP00jCJVxe+VGxXWZFWNd0++Tw4XJAUZ4g1tlCwlWQsU49/YtHpCSJGuWN8B\ncNhe1soLAl3f9WpMPfBDDVcLXzh4tiCmd2PJm3DCabLCBt5kNtgOsYqNowR9\n9N5h\r\n=pHl0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCIDnJSj+A6eJqHo7K2r6IM7FagTBJkhiQnaZqvaxB7MQIgCuwGdNQRSd1lFCk6T5lttk6MNWFEo6Smvb8WxePoGbI="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.1.0-beta.1_1579192149638_0.6978512828187349"},"_hasShrinkwrap":false},"1.1.0-beta.2":{"name":"hasura-cli","version":"1.1.0-beta.2","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![.nvmrc](https://img.shields.io/badge/.nvmrc-10-00e676.svg?style=flat-square&labelColor=black)](./.nvmrc)\n[![yarn:required](https://img.shields.io/badge/yarn-required-aeea00.svg?style=flat-square&labelColor=black)](https://yarnpkg.com/en/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\n```bash\n# latest version\nnpm install --save-dev hasura-cli\n\n# or specific version\nnpm install --save-dev hasura-cli@1.0.0-beta.6\n```\n\n```bash\n# latest version\nyarn add -D hasura-cli\n\n# or specific version\nyarn add -D hasura-cli@1.0.0-beta.6\n```\n\n```bash\n# global installation\nnpm install --global hasura-cli\n\n# or through yarn\nyarn global add hasura-cli\n```\n\n`beta` tag is also maintained since `v1.1.0-beta.1`.\n\n```bash\nnpm install hasura-cli@beta\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n\n```json\n{\n  \"scripts\": {\n    \"hasura:_\": \"hasura --project hasura --endpoint $HASURA_ENDPOINT\",\n    \"hasura:console\": \"npm run hasura:_ console\",\n    \"hasura:pull\": \"npm run hasura:_ migrate create --from-server\",\n    \"hasura:push\": \"npm run hasura:_ migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package. On windows, unlike linux and macOS, the file `hasura` is not to be replaced, but just a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"86bd8113fddc6e22caffe8161e2193e198e8759e","_id":"hasura-cli@1.1.0-beta.2","_nodeVersion":"10.15.3","_npmVersion":"6.11.3","dist":{"integrity":"sha512-WzFnRA4AYJEpX9t/r0iZ22D6vd3qej4Se0Oyor+ZZ6ETXf/mruI9R5ZvP8bBVR5IDOdZH1NeMPvew5wehn/I6A==","shasum":"a693706b2818a754d73d7060793a5c35327ae00d","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.1.0-beta.2.tgz","fileCount":10,"unpackedSize":20911,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeIJC4CRA9TVsSAnZWagAAm5kQAIwkGXjiwBy9TdcGGuUC\n5GrpF7rGp49Z5jhwtKXGYRR/F8qZJsVpTVE6Hv672ARXFj6/3Z0BWltq2ZVL\nTkliajr7vhEgDeQkbQSA4wTOEaVdd9MT+IyMuDlCW6DEmHZxtTc1vQP0OZd+\nwNObz8BHzaq1/0JbRLaLRET98hvImX6Q4DC4khcwmdm5JVm6smdq9oViCkgo\nuc4ROuFW93mTFJyJ8yhc2I0laQfU8nXtdzMCJTx9pTnkXyDAtR2Ie6w5OcDN\nEnsv2fLWD8TdwB4huuYem8jT9ws6rr9wxEUg2YFrwolNSx2MMm322KlNDzE1\nbRJjDNI0agR3eaY3gmjTwGm/GcUhgHOmasGZX+4MgO5C+41SNcYE3wekRX1T\nJxCLzT27xRgKY0CeY3qVyaSWnOC2/io/jaOaxY+MRvtqkhKP6vt3nXrt6oZ4\nOQqf9FBGDVDyeQLPQ0YtW1VbgZtDXFmY/+l3h2g4MVOYdW44AJXqrRbC0LYS\nj+sFyzVEvXDFBPENMsRAWm2G3yhmHM4eeNmasf5e2UniFb4NU4AEMiIsvui6\n0/C6VJUOxdWCsRpFKmVSDLPLzpp2r+Zm6oYJuIPRiNnsYQ5Nr2L6iZOMTm73\nDFg9yRKJPMgU51ricdMaYTcm8M1NUo1oDd3+YTKTVjZ1h2rZGIfZfBJiC4TA\nm5BC\r\n=BdzI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDUgvCpdXiGuWNS/3aM9+zlgAnY77RgkUHdZvjK02s1rgIgHZp9NnFsBtQs6crKajxKRRCFEwSVCN9JSPrDQxPGUuo="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.1.0-beta.2_1579192504213_0.26918924109114295"},"_hasShrinkwrap":false},"1.1.0-beta.3":{"name":"hasura-cli","version":"1.1.0-beta.3","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![.nvmrc](https://img.shields.io/badge/.nvmrc-10-00e676.svg?style=flat-square&labelColor=black)](./.nvmrc)\n[![yarn:required](https://img.shields.io/badge/yarn-required-aeea00.svg?style=flat-square&labelColor=black)](https://yarnpkg.com/en/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 2 npm tags (npm tags are different from versions), `latest` and `beta`. `latest` would be stable than `beta`.\n\n```bash\n# latest version from latest tag\nnpm install --save-dev hasura-cli@latest\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# or specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version regardless of tag\nnpm install --save-dev hasura-cli\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n\n```json\n{\n  \"scripts\": {\n    \"hasura:_\": \"hasura --project hasura --endpoint $HASURA_ENDPOINT\",\n    \"hasura:console\": \"npm run hasura:_ console\",\n    \"hasura:pull\": \"npm run hasura:_ migrate create --from-server\",\n    \"hasura:push\": \"npm run hasura:_ migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package. On windows, unlike linux and macOS, the file `hasura` is not to be replaced, but just a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"da191c5fddb0fd0f095f22985b2e135e33b82476","_id":"hasura-cli@1.1.0-beta.3","_nodeVersion":"10.15.3","_npmVersion":"6.11.3","dist":{"integrity":"sha512-4HKuMGYIbqtuxvlWaH6AlTS/v/u0uUxmrRXbmun97j5IyhTge+/w3kK43OUe3bpUkvzWKyvFGweQNVAYlmFRMA==","shasum":"b847bc468c690859e59967f2e11b8991ae3eb6c4","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.1.0-beta.3.tgz","fileCount":10,"unpackedSize":20879,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeRrGHCRA9TVsSAnZWagAAUwYP/RQBRG5HMAOP4p+C8l9H\nQsaMcy/G/zcAUYKcVybACPj4QFft3QaasoMTU0qy9CCoVkXhlOCaw0hUBSNH\noLLQIhlLa4VQwXbNoOth4kgAChkO/d5UhwGGAyWQI4OODMyeCWNe7BFvMoOo\nPE5Ut6ftVURjqRkYvomBvWp5gn/muYodGUgm/FszUPcRbUQ2LLIryCkzyM4E\nGOyu8cxfWjOFR0vqzHOyezM8b4nWt5KEUNnTlj0OmxxlH3+moi5v0hU0ujtf\n+VDAcTaQRPhb1F6kfSNx11DllsGV1vfUdWdlQMEWtMHGWzdflVaWw/gszHaf\nYxArCUaXCqkUm3FbzEOixoq1f6pBtMuWJaFCToz8M7/xyeTzVEQ0fV89kfwW\n4LuXVe35/bIyfVBh8sWN5My9mX34CQuAZK/8eST2DffAbKlCk/0TXP0dMFrp\ndIw986LoHL0EO6ysrfFNgobhb7gBYn61a8PCiFqNGJXfgV1wzfiihRh0cW4H\n4MuXyb0aeeU+ZZJSVVYOlQ3N85ZyabCuEGYGEEF8sPwLSXt7JJFNSBijiyoP\nA2o3SYoPnjLOdVn4J+O8oiX1EXykLcHdKHnso3SLU27hZhI6tb8fsq+8Mn9Q\nV6QV9Zzni1tueMTcPjnTvW5JAQb+B2FCtmPArmt+9lnJVa08ujX1xiOxWhcn\nJmd2\r\n=Z3GL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCcrHr/4oCRph3N1HIvI5se6jz+3ilwYAuTEY/LcJW7LwIhAIuILClYZMmb5qcmqAn4vDMpY1Qrdao8qWTUYkoLT6Qp"}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.1.0-beta.3_1581691271136_0.9301676575047293"},"_hasShrinkwrap":false},"1.1.0":{"name":"hasura-cli","version":"1.1.0","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.7.5","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"b1506a803dc51246f390faa2f01851429bbda41f","_id":"hasura-cli@1.1.0","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-D1qXoYydx9Mgq7VQdCmOOvTlYhd1RcjQtn4s7pN1wb5w1ORIcDFLm1rS3w97bsx7wPRotIl0reyhc3+FDq+FFg==","shasum":"a095e94c654d30354d8979602b8c0047c7b8a9e1","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.1.0.tgz","fileCount":10,"unpackedSize":21086,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeTeTICRA9TVsSAnZWagAAG7sP/3BFHM6MXVvmrl0Gje/1\nxrT0Xy/tyHRdfPROruoLR1ggJlCkPQqCf3r8Td5mJZbq4GHtX6/XN9uPnER7\nUk/l0obh5AbSkrc06kZ18r/AELo53mLgP8SH3sP+hfn+pM8vwPCnr03P5euL\n57rnzyb3+GobFopSZTZzbo/nuFvmcQQLkt1aybPycl76Z2nSctD4jUgK4+Pb\nfgx5IiqfubOL+cxkcyFbVBSL5mrMaJJi/wH39H57vUMnpvTGCdzmr3P9vVlz\nVRCj+6UdEgbuTmtO8JLcjRV44Y4RzVzhuzXW2/1DlS4Kh4WtIcv/iXC9IfXE\n5yIQT0jgXXf9gJiryYrk4FnRO4AalktxmuYRRRmYLM7XZgSOx0lxfnolPrOn\nBChuh/hX/hpfz0R7v2SoPXhQzOWp3ep1Z0FqD4OBAhqrpJ2itdWiYHLrBpCi\nfzAUGTCEnvW5v7A8vVQNyrg8SFeITDMU7uaBWCh3Zoa7xB2Qz8KT86PNvAvf\nRn4cCrDHY+5my6vPzfE3qAV/PpBZxV7hT6I8+H/El5fB2K2UQ0UsDT2JrOER\nd6rtKhY6fwqthhQOVUNcp7szzkP4DSMiALnUDydZU6Zubhkno67zXpJsAEAT\ndsrJYI7bP2wdDuvMUL/W4THQkxSVUsTzBWq3kh0BzKQOcxvZDbBnA7VjRkAd\nLpiw\r\n=6CkI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDpd+Ni+kuRIuQqnA5A3R5IAbg4bdYFZGbiG76706DTzgIgc3VP56pfpm37Ucp3l2A/YM+vEfII8QIZmCDOadeJ6Qc="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.1.0_1582163143409_0.30102575449997415"},"_hasShrinkwrap":false},"1.2.0-beta.1":{"name":"hasura-cli","version":"1.2.0-beta.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format":"yarn lint:code . --fix && yarn lint:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn lint:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.17.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"./hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![.nvmrc](https://img.shields.io/badge/.nvmrc-10-00e676.svg?style=flat-square&labelColor=black)](./.nvmrc)\n[![yarn:required](https://img.shields.io/badge/yarn-required-aeea00.svg?style=flat-square&labelColor=black)](https://yarnpkg.com/en/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 2 npm tags (npm tags are different from versions), `latest` and `beta`. `latest` tag refers to Hasura's latest stable version(e.g. v1.1.0 as of writing), while `beta`, beta version(e.g. v1.1.0-beta.3 as of writing).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag\nnpm install --save-dev hasura-cli@latest\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# or specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version regardless of tag\nnpm install --save-dev hasura-cli\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package. On windows, unlike linux and macOS, the file `hasura` is not to be replaced, but just a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"e53d9def088bc5840d06ca2cbdba22b83a8201a2","_id":"hasura-cli@1.2.0-beta.1","_nodeVersion":"10.15.3","_npmVersion":"6.11.3","dist":{"integrity":"sha512-GK+nT1B6dMUqwZj7uHzvqFXrtWVcIQaBxAw4F17M1Y4Lvqqvo8POx/kLwUgzDJE9oksw4BND2G8QpLo/wrcN3w==","shasum":"bc175cf4612f3d830d0a3e9f61f2d223daa98009","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.2.0-beta.1.tgz","fileCount":10,"unpackedSize":21092,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeViXLCRA9TVsSAnZWagAAHL0QAIZKDGMPMQW+mhbJiN35\nX6UuFmMqkFn5iP/yxSv1ZtJYe76Wx7bBbx+vN8W4zxjhpcVHVIyK13ca12sH\nqcuHv6xQFtCb3uCzDaHJYkHUfedDZVk6LVCbMNiRlB28C50STyqJY6dFMOJL\nDCQczomrkZWzX/LDaDRoEDOOjnl1pZLbIMCivLszuGHT5NIizU22zN5RiRrR\nynNsy8Ibg9nEtIO+Rb8eX7WHpwuzANUxCcgJelBGSTN8lmiFw9+wJ/NTCCUv\n5mZSxDayafxbVVFm11KcgDrJVKRLeymlG9PFElG8o9TgwbeF9/jFJR1yn72Q\nvlpYDaO4tvpX6Qpu4MandfroDIuSuKauGmuKAR+y4AHuniV7EmPHsImRXXMn\nfqI5goTSL5Lp42pn6ZkcFxsqO7c4KlgmjXhe+ly97k81/ySFfh/Bfq+u3Tax\nrZk9BBSZTGIlDqaI+NZ04zMDxGVWsEUDARV0XmFEtC+6UIz4BrdNgjVR/YR+\napMahlBlBtK7e4p9NmpKzX6uaZtpCC1XYe/4S0jr5SN+5/dDDE1PlRZ0m02w\nr06w25cnfNC57f/Vld8c70IwznI8qMQgyRCsUzZflc7v8NQHnoNXEBGf1lIs\nm3o3HwkcxhhxdV04fHgbtm/BIOxBZBdZQ2gk7WA+MT2iphREL/6eVMrobfm1\n0xG9\r\n=9bBl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDg5GartH5zlVnhJP6w7KXt4I2oA2ka8LBYtxa5oZJ3ugIgbcbyZV/fhWq8va0TnDHUv4XyppS51ScMPl6pyDhgQRA="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.2.0-beta.1_1582704074486_0.7171412858077659"},"_hasShrinkwrap":false},"1.2.0-beta.2":{"name":"hasura-cli","version":"1.2.0-beta.2","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![.nvmrc](https://img.shields.io/badge/.nvmrc-12-00e676.svg?style=flat-square&labelColor=black)](./.nvmrc)\n[![yarn:required](https://img.shields.io/badge/yarn-required-aeea00.svg?style=flat-square&labelColor=black)](https://yarnpkg.com/en/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 2 npm tags (npm tags are different from versions), `latest` and `beta`. `latest` tag refers to Hasura's latest stable version(e.g. v1.1.0 as of writing), while `beta`, beta version(e.g. v1.2.0-beta.1 as of writing).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag\nnpm install --save-dev hasura-cli@latest\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# or specific version\nnpm install --save-dev hasura-cli@1.1.0\n\n# latest version regardless of tag\nnpm install --save-dev hasura-cli\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or MacOS. On windows, unlike linux and macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"526fe265acef4e02fffc447bffd5602618c903ba","_id":"hasura-cli@1.2.0-beta.2","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-J92uQUPKTStZZmRA91/LYuPfD53XgMXPVafeSG0+WULjVTsgwVkd23FFr1QB1MoKR0c/8x1eC2qSkdfvuL+29g==","shasum":"075cbe2eda91139ef08a0ec4181dd206d46a95ae","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.2.0-beta.2.tgz","fileCount":10,"unpackedSize":21177,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeYd0MCRA9TVsSAnZWagAAxdUP/RLJT1uuM6OALAwEag92\n5ydDk1AFs6kLodkKZF+1NOYwB2Me/xwDECNJmTwWU7WQCoPdCTszRlJ+Vri8\nFrer+PvxL/alyrCFVy6yiNZCcQ4hrNCrsQaGhRmxBZEzKrFXEzOogarNJiis\niCYCGaUjLeVEFKEQmgRzVPdyW8iATvsyz30LsUgY5O5rn34m3Yk0IAUMJDxT\nc9gPtNyX0QXr2FevdNGVCDL5r4hOs+EL1TjMnl8o0iSvJtjtzp5y25LxlHkb\n5Fuq0oaq+kq4shrhj+KLTHf7zdc4a+Yco32f0NsRxoh3a1IzKXo6BJy10Att\nVHYBx3MVKv5K1r1hu3sz8RmH8UnvGREgeKGlzUu5qWPFJgfKWNC7pC3dB4ul\n+UXkN1XL4vpIyPhqOISNS5me27mgSOCK+qrCNunbSObfKY4Ocf47ZOm4OHaS\nEDiDsdC9MJbYkmkBCZkXxIc+8Wv78TArfZet6B6zUH7JzVkl9Q2l/cPA9Mip\nF/LUdxGXMdXZNlkIW/5XlP5VPsUGfx3U3O5m3IK0PMINIxbD+JB7xM1RzgyD\n2vfjqQuw0iocN7ZpPOeg9lrQYpJtqLSkeErfY5qGWGYFyhA4qdZ4pC56W1+u\nDWtYuMsK02JFeSLjwDIx/f+/5gc0Shs9WTJXB3aFj+VTpe5/QJudQi80607D\n3BAF\r\n=+mVA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC+csg6C8fMX/xpkgDnuh4IrkJosfKor8pP9geC9G1iUAIgSi2X+XWFt2qrMKoroXqXbWyG8Tw2jxmbXf1b/ArDPMg="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.2.0-beta.2_1583471883814_0.9209562904789586"},"_hasShrinkwrap":false},"1.1.1":{"name":"hasura-cli","version":"1.1.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.8.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"5b79a23d34d42cc2d0e92840ba51a5a7183fd586","_id":"hasura-cli@1.1.1","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-mnqLdVLozScAQG91e/OgcJODC+TftlW9NRlJKXwGuG0emfqu7mtbo3D03P0bSKTMOwm7jgYzAbkLjnHexVmdyQ==","shasum":"d1c89e4232641f3b0f51019072d4d1042568dea4","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.1.1.tgz","fileCount":10,"unpackedSize":21170,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJegboOCRA9TVsSAnZWagAAp5cP/RauyVBCstQXEOYUWOej\n7o14f0fAWkcvvonjMTZLMBeYLejE5DxqZC7a/XeyVnkWO4MILJMGkETQSRKu\ntcV0C4elkR6af8+fDhxDdMpuqaR0ShaBqGYOYRBP7D8gZnXAdoRG9ff17qAm\nPELDE4jVTxZB0INn2CdkRCOCltMpO/dM+fw41WzjGdPu+g2eMlSSC4Qipy5u\nBHfzn2OqYUu4dVSwN8tFORWxqQ8SWYF4GP2uPpLzuQw0UZmgdnDtSTQdJSNB\n3LahIDkNjWQ3dSfhI15E/8h1BWSRSoSl8qtxZEJbgKSHkXSjLG1BWlw1/tBJ\n4JkxM20OpVr/rKciqHeCgvHuYHVvhHi6Rv6OUEN2m+7GjI4lEVNb7p4dxcvF\nFfd5vtHk9ItfWRRK9ve0f8lFX08srEBsXTJGK5XHPtsPmkVaHOLkUvCLMpIr\nPXHg2fanlGeeKRMsLpAmWUsBdpXmWL4dik2FAxZ669JKfmeulFjkot3wZwuz\nebcI6Ms8FI3dU9DnL6Et8AqQED12P8OxqkghMKRXa3VhvspgwbvrlKoTTtIi\nBxsXhSZ5iSpyRsBt5mEc7wQNBPALBzTgl0AH8PFunDgm+/GjQvptf4LUxmDz\nmSi6AhKVCneapxyOJKzPeOer0XC5eBAN/gQxXtzoJAHKv6ThQOT9uXcsqG7d\nXUK4\r\n=qCZu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDzkXT7a4sLNjY7aDY2m7wkTxkx7fqhUR4Q0nHyCJtd3AiEAlOfBiW7V+lSHtDV4LRQl1Mg0CAUOum+1fYxq0rOYi8A="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.1.1_1585560078404_0.7094664283003864"},"_hasShrinkwrap":false},"1.2.0-beta.3":{"name":"hasura-cli","version":"1.2.0-beta.3","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![.nvmrc](https://img.shields.io/badge/.nvmrc-12-00e676.svg?style=flat-square&labelColor=black)](./.nvmrc)\n[![yarn:required](https://img.shields.io/badge/yarn-required-aeea00.svg?style=flat-square&labelColor=black)](https://yarnpkg.com/en/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 2 npm tags (npm tags are different from versions), `latest` and `beta`. `latest` tag refers to Hasura's latest stable version(e.g. v1.1.1 as of writing), while `beta`, beta version(e.g. v1.2.0-beta.3 as of writing).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag\nnpm install --save-dev hasura-cli@latest\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# or specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version regardless of tag\nnpm install --save-dev hasura-cli\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or MacOS. On windows, unlike linux and macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"750295afdd6302e994210dfaed18ba3c41096639","_id":"hasura-cli@1.2.0-beta.3","_nodeVersion":"12.16.1","_npmVersion":"6.14.3","dist":{"integrity":"sha512-uyFoKhaCpyddZ2NQWHok0+EQz+DFxwYgX6fnGypEA9FtEUsUAneW7wWhW2TdgM5qRKyBMgFWp+MRSG/ZnFKrOw==","shasum":"eccc88efbc92ebd212a7e0e2bc27929da0bfc39e","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.2.0-beta.3.tgz","fileCount":10,"unpackedSize":21177,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJehYZdCRA9TVsSAnZWagAAeBYQAKQE0YihckPU3ZZKbGPs\ncccZfQxPsh0878UIwN5CFh2xHj8LADQ3pI4D3jTPVH5SSxhP4cKp9aoWOio5\nc4Xr2adTRpj281YJ4t2/aegktGIJXa+FpbljrwUHd0Rs3l2FXBIkSamf5aYK\nElCQzfysPrOYqAWlKfL8UW0q25GvQAjFUWC31kW8jJFHxEXw0MzpIFqoKSMU\nj/vqM8dEBfTBqw7b6N0MDOyOvwqMnD+BpS/byXLaYBDrwyeRYQV39u9Ogpwn\ncYabsmtTGGyX9fQz6mBmzQXNFR9R0L/WmeWQsr/Y7pe69whNQgacY1ppf0RD\nc756QMKAYD2vS3D7uJXHMvZNywBJ77j5RZjH6zy8f4sUV4bJrk7xsUfXeUHi\nE87J376NSi3cNDu+IcaE2Wxs8ij7g4HgT7yEfcpwzfZ7KwVHtViNMyZ41x/x\noljK4nBf+oi8U/1StD3ayFhNqBUH2kcFZQOUWJb3JfnJ67wlvAFPiL7ck/zd\njw7ewpkSymG8gB8BJ9p9ADn+2un14q95FZNvwn2PscVOPEn2ITQmFKmc+JRE\nKhHVfoj7z1VcxQnT+BozQmqdQkOhv2lnDTXFEoq+QXHE0Ky6P7DXWK98mIc5\n6f7X8iBkGSpoHYZW0Un6EdB8smlDkZtcbSxe/lGRDSy87gY4LvJnj3uDTuMz\n3kG1\r\n=d5MK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH+8+QFpNddih5Ydh+DGgNFMxX6g/5AbFKhTw9u293f3AiEA522AOIyXl6lqPaCnKTnV5tN4CWq2EFhg0lY9vFNZ1nA="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.2.0-beta.3_1585808989264_0.6876235223297202"},"_hasShrinkwrap":false},"1.2.0-beta.4":{"name":"hasura-cli","version":"1.2.0-beta.4","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![.nvmrc](https://img.shields.io/badge/.nvmrc-12-00e676.svg?style=flat-square&labelColor=black)](./.nvmrc)\n[![yarn:required](https://img.shields.io/badge/yarn-required-aeea00.svg?style=flat-square&labelColor=black)](https://yarnpkg.com/en/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 2 npm tags (npm tags are different from versions), `latest` and `beta`. `latest` tag refers to Hasura's latest stable version(e.g. v1.1.1 as of writing), while `beta`, beta version(e.g. v1.2.0-beta.3 as of writing).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag\nnpm install --save-dev hasura-cli@latest\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# or specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version regardless of tag\nnpm install --save-dev hasura-cli\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or MacOS. On windows, unlike linux and macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"214c6a00630cdf79a06355d41208293621a6b879","_id":"hasura-cli@1.2.0-beta.4","_nodeVersion":"12.16.1","_npmVersion":"6.14.3","dist":{"integrity":"sha512-ilB+dG/p2M7vGUElk15u0biXFgm53qHaLGH467sdfMGgBW6xZK9wDqD6GiQCyPpVPClJ9mlU8QQAv3k65Wmj2A==","shasum":"6f103af1e1ba4bcbb7edb774a56b044ada7a30f2","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.2.0-beta.4.tgz","fileCount":10,"unpackedSize":21177,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJenPW0CRA9TVsSAnZWagAA4bgP/AknyDsmVaa4laGLeTyg\nzhzvFl3YIZVSUh7imDSNKTQ6Rvw8Mvaop9wseBgjdKP3LIItpwEh5tXPfZoB\nbsE8cXJwMMBOBWiCPQwWDv/9omilv95/I7PKKgoAn/gNLmznXJSKCpBVumoM\nkKkUkXD6oYJ4/McvsAMYq2Q/AHoJgCvcE7B8Ys3JHyUDXNQcD/+V3YHtwV6G\nNZeHzqaszes7Pc+VH8Y1b+AbZlw7RAlCvpJNA2PyCwLTThCK8plk8CLeqGAA\nqJh93Uew5oQP/MgTyj5tqlMwGMMFkzXD0Xsko993iOkTdeB/uD0ezNt6mrUH\nFCaGN122VIzUCYsEJZVX0IYRmIKRvDmBvp4zbEWSbIFhbKvbxBwaINkc+WFq\n7h+ocOi30axdYXbSRqpxU85wwPeJWYlS097egNVSGxrrDvdtgowmTl3E6wNQ\nJVcLAOTqjSy7DjTbJ2wPZmSAC7YeFdAwREZidY9Vc1X3RuzxQDyuRKEmeL/E\nLMd9qaHHeR+xy9idGuaQPDFnu1GG+lU2pE0SGEPp+O96p9xxDWAfA5j5fXCH\nl3dVJxGg5YXo/lIclh+5aOjP8IhKSatUxXGYxrz+90BFygFSr3TwmGy62dsL\nkuUlCe5F4Wgai7yR84IdVsAk2xI2uOJULO0kbDir+zpTgsoSGz7bgWiZSZzB\n8hsD\r\n=J4Nq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD6ez/XTl+ffRSxewTunHLylKje8umt6T4Ebez4O3s6QwIgWClY7djGGU3xst99MkYX2C8bGsyTF6NS5UvCein3Fw8="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.2.0-beta.4_1587344819900_0.7344363012876103"},"_hasShrinkwrap":false},"1.2.0-beta.5":{"name":"hasura-cli","version":"1.2.0-beta.5","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![.nvmrc](https://img.shields.io/badge/.nvmrc-12-00e676.svg?style=flat-square&labelColor=black)](./.nvmrc)\n[![yarn:required](https://img.shields.io/badge/yarn-required-aeea00.svg?style=flat-square&labelColor=black)](https://yarnpkg.com/en/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 2 npm tags (npm tags are different from versions), `latest` and `beta`. `latest` tag refers to Hasura's latest stable version(e.g. v1.1.1 as of writing), while `beta`, beta version(e.g. v1.2.0-beta.3 as of writing).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag\nnpm install --save-dev hasura-cli@latest\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# or specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version regardless of tag\nnpm install --save-dev hasura-cli\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or MacOS. On windows, unlike linux and macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"982f42f7726348dc6115fc2ce3225f8de598239f","_id":"hasura-cli@1.2.0-beta.5","_nodeVersion":"12.16.1","_npmVersion":"6.14.3","dist":{"integrity":"sha512-dTRyX/GvH61vwlcHIeLfLfNhuuAb1E7yLo8Aycz7BvfXvuolPLvMXdv+xhuiK1GrDbJXjzYQ8/P7r+TDN0wAJQ==","shasum":"d941d1fbd63f200da0df44fc2a7d8016607c0a74","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.2.0-beta.5.tgz","fileCount":10,"unpackedSize":21177,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeo5BiCRA9TVsSAnZWagAAry4P/1Dps+AM0GuKDshhsv6Z\nwUjFJXrl+Cd7GlBUwzlRUU0yYWiQ9U7N6dVSr6BLHQEbDiKXzoyGLggq88jN\n1CxiHADhT5P9pXvl5XCg9arphVwq9n7SJbTf0mjs6JLzTkRxSzkELZcPhyz/\ny1LGgoM2NmEK8KZ2+6t17yvtJxw0tftT5K9oSekyFDZ7CeHWMIX/poE89H+2\nHiHfTYlsfyW+Ao9WtaDOrql8cgIaLtlUlpsR6sWZQoBh3bynIn2yMz6k0M07\nr2oFDz88NSguGSfM2hVI3W8Nx+UHpG3SXUg6acNY+2h410c9v4b9ky2gSW0y\n/4tKnjZC9BY9wN+MF4twNQ3BsIL7PIjMIQkaAuFEFj8MFKkfjjBaG8fN/Yy0\nVhIQUQ1BGyfTQbXN2gVjtk70KD0t+SUs8g1Ar8GHQTEO21AMknCGR3h/DCb9\nEDHcfKPoFJIassgXfBI6cYa17AcCteQH+KaVAF32QXK5x5r38v5B8aoKUwQb\ngFfYnDChDPoYvyIAzGEtO3MrE1ofxydwq7vSzuh7Jm3eWOsyhc6RD7sVzf8p\n/uCzCQSO6bWOt0cyXNNGfbZLff3FoTw4s/FsdHgR0LFeH2xhrWXl6M13Oe+K\nLNNHjOxLcqqtp0pjNHyb2cP4bFflsBWES3YfR6J6kS7sbPp1YGNra4kzfCU6\nZ6lH\r\n=rHUA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDVY0OeQYqrHbEBvqzB6KDZXctYjFGx9JcqG4xom8h/TwIhAPUL9JODn4brpZthIkClxkBXl7S+sz2Nmgd6UoHaz41F"}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.2.0-beta.5_1587777631893_0.19683818050722213"},"_hasShrinkwrap":false},"1.2.0":{"name":"hasura-cli","version":"1.2.0","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"7138c9d6399baa02ea813401088487c89dda80b7","_id":"hasura-cli@1.2.0","_nodeVersion":"12.16.1","_npmVersion":"6.14.3","dist":{"integrity":"sha512-WIpiELAP1rcOF7F5yIRUiWzfF3E6j6mRKxCgc97+OU/X6NiNqTdGYU6FwzEJQ45Iw0AddBPOiwgZFvynN8zUAA==","shasum":"a1ca61266cbc57141ce4b1d18b230b24b4b32106","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.2.0.tgz","fileCount":10,"unpackedSize":21170,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqrM4CRA9TVsSAnZWagAArLoP/imu60bJLk7bEW/xBRos\neSs0ltpA9msZei0yJ04ZlilMTIWKRRx8aPlsn48vyfMzBLR65ooFOwPqRTsT\nWpk6/3vU4IGY1x0bchGNnMiAt8AxEHiu5JXW0ApJSf2e+K0fBC0D1QdAlZDN\n7E9XwnpG3sb7qwFCYo06w3bljWQRK00nN5JKaqXhZDt0SAb5y3aj2M7nN/+r\n7l0Kk3SdEDSBRcexdxiID4SktlEKHG4MyBMx/kLGwhqf4GvSUg+aXYuTflww\nuMswOJSKc5WARUPeadA5N8Dq16cbrmIBPZtfV4pTaA3KsH5gBT+K1zpzvZgv\nDf1kPjgciNGmjjlIChkJDG2ZLr4z96KAwubc8c2dwLyMmKO1iRB6s2/KWSlQ\nU97aTGRO6JXAWvNCS3yP8BXhwntvmL0p9exJTrsQv6VgMGt12uAQ3O4ZFDFc\nNnlu2jww4PkOXw2vWC5Fzuvx3YIMs1HrE+wjFKU5b78HHX/Yytzq1gdEhdYR\nFC8QTBalSkPF6R6BEjLYtkPmImXBQ4kS+hHM20F3Bp36vdFqHG+wp5lQUHah\nfq0N8EvC5QlN6g0dEnrIcjI/TcV7fVpVybRYyMdxcIhcPlWRMVPkraTo+EUI\nDRgt0x7tqyLTjpV04/gtMtSMCAioB6tiWWvz/oTAg87d8LMnj7hw/8mwhnJx\nW/7v\r\n=k82k\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCsJx216JsLvXHqRGsQGHt2BG48bOTQ4TpmVtVbzFMHlAIgMgs44dFy5pRgg9CdZ0qTcsecBSnGnrTuyQ8e4K+In9o="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.2.0_1588245303988_0.5904394480907094"},"_hasShrinkwrap":false},"1.2.1":{"name":"hasura-cli","version":"1.2.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.8.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"ce54af0b6794c1648dd0cfdc5bdd93e662178cbe","_id":"hasura-cli@1.2.1","_nodeVersion":"12.16.3","_npmVersion":"6.14.4","dist":{"integrity":"sha512-kHg3Vl2wKCQQ92EZCHGiXL1gDhjCzsulHzHcVU9Fb4LVgNdXSq1XE8BFrVm9eLeKtYR40BjUYpAZDgAcg0DYHQ==","shasum":"f25d94d3c10b074ae41346b58e9fdee1529b7bfe","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.2.1.tgz","fileCount":10,"unpackedSize":21170,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesiXqCRA9TVsSAnZWagAAwtcP/3tKGedH+7Av3fuJyj0e\nF5FTOR031CF8EGbXrNnkUPOa+n4xeP7ASeIsy2TNaZfLxDwXxsJFDFfFdQd8\ndckUkmZPoEoqSsxuJHMceNWcsAksU1qV2WqlYrsLjbZ3b0HhGXK+lNs9vkoG\nSbRDuDTxc9H1zFiiA+y97QsUAARxewh2KTeq5Cv7efYlgNtrhtEBD1BJBKKR\naOYzEhC7j8aAfO89Xme3I6qqgiyEU5hGv3DYqb7qOOKBvacqjuCRjz+N8jhN\ndm6s0zBt4DtQ5x57UOj8UjOxnRDptq4j3RBFivZk+Dk70v9XcB4JOSFGC4au\nzct596aBEnn71v+9QBC4KiZX7nb31L8YLzycOuPK8Q/FpyBl8R0CrTrM9uxr\nU62zI2hvE+YliOpC0b+SCHabPNbI8sqCbgK9speCFEn6swk/N0To3tGI4JK+\nl35j5ERy8vaIbSaNo/YqKdqr4NnPO4j+xQZzkpAdKuvQ5VMG9woWE97/C5Q0\no8YyAULbXgnyWcRWegyuOkO3UBTrH5YU3cG+udkUlnvFmNwUwEZVb6u602Dx\n7wisvWy6nWMJ2KrYDE/bBXLJgj5VyKwIdn+URcN7jBps59EnI6LP/xsqM8N3\ns53pzVKuXSgPNAXBZ6hK9q7tdW75KUbfZdbVx4cnb5NtAfapV1+RbzDv9lRt\nP9g8\r\n=Bm46\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBJvgipuyPuaRDGdz20/j2V7NWivC86ILz/9Q/O6hAcRAiEAnnGO+dIBhjmxxnwdhKGA97jCc+E9xO0CKFW6cpwm1Ys="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.2.1_1588733418361_0.13501016172816271"},"_hasShrinkwrap":false},"1.2.2":{"name":"hasura-cli","version":"1.2.2","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.9.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"2706f98ee6ae3fd04faac9782e7dd1c76f693138","_id":"hasura-cli@1.2.2","_nodeVersion":"12.16.3","_npmVersion":"6.14.4","dist":{"integrity":"sha512-SpJWAAvqNWX2bqI3WoDuKOWiX/7Rt4YoT8PLCD4bUpT3MpN1oy5k4bcI0pXFH6sDCPVlXhYoeUFrbeisIV9CJg==","shasum":"23cc3a111744bd9b19ca244af4a9e16de55bc918","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.2.2.tgz","fileCount":10,"unpackedSize":21330,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2LmqCRA9TVsSAnZWagAA3XwP/1Y+0ne72+hSrBmNnOrF\no2FOB8Z9EKDnI1J+gCLS43QcH0LcW9EXUhMCZ0oosJsiGy4ZB3jOT+VEPajZ\nMPtmmoyIrnhcc+/NAUmxRxTcQH4m7HdxwXQdqiC/VMMx2fDCHpqbsf5vftyi\nbUx0mtkkxs1oa6oT3/eoBJDHdLFrXt6q2c4Z+kpOHlgqCg9H79DetwABZCqa\nKwtRRiPSpI5k4j4CiP7FiRgUydQI7QIiCXicxRLlsDV5DzPUyxh4HGas0enM\nuzTzKjYUU2C6Dsdan9Nqz4eKWjUjdOooeIx8wYP+n/k+8X2973HVaTuCkK3a\n6eHbwr1urPWksK8r8mAJslmJ9PYT4SbGDq7fZ5+orgz4AF9i1wesSLmzjupq\nIVbagGb7emeHCUFAGlxavmgY8+rHyiBS9VTM5YXUHzTmad5GmfU47tQeygPK\nZpaOKzJa4cEviUTKCWxJ1tMk3LpgK8DbW6fAsTxXdInVhyrpWn4OCxMiHaNg\nYePokeeEAOlMmfWQfsTgTs3L6rgbIeaRcPcQdrg+k1A7bXkeyuKeWoCptjbB\nauoDtqmiEqbPof80se29XcwTx9RbTgOjhuTLB5+XZJfeI5zGiuRazvdBqMMs\n8w77Hy91dbjKGxsX6KHXAVHY8PGCG49pT7xUZRgqCREEZO7EYoZSmkCT8W2j\n9tSh\r\n=RtZs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBejc0IxjCskszeo5Efnt3YR8z8yJuWsHkSQWloB94TYAiEA9osR47sQX5YNu3Avo3SkSwhVsiBYEzusEKjmSxLusFU="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.2.2_1591261610046_0.9890326252677031"},"_hasShrinkwrap":false},"1.3.0-beta.1":{"name":"hasura-cli","version":"1.3.0-beta.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![.nvmrc](https://img.shields.io/badge/.nvmrc-12-00e676.svg?style=flat-square&labelColor=black)](./.nvmrc)\n[![yarn:required](https://img.shields.io/badge/yarn-required-aeea00.svg?style=flat-square&labelColor=black)](https://yarnpkg.com/en/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 2 npm tags (npm tags are different from versions), `latest` and `beta`. `latest` tag refers to Hasura's latest stable version(e.g. v1.1.1 as of writing), while `beta`, beta version(e.g. v1.2.0-beta.3 as of writing).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag\nnpm install --save-dev hasura-cli@latest\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# or specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version regardless of tag\nnpm install --save-dev hasura-cli\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or MacOS. On windows, unlike linux and macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"5049a7ebf2fa54b508a1c388e3814b5b07a3a654","_id":"hasura-cli@1.3.0-beta.1","_nodeVersion":"12.16.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Oy4P1R4Lh+rNqroBYsK5Ju16tzuivSJ368OpcTOxlQNGscDzsnETiy9i4WavROTVNhrHC6sb+HuoGNE5gakIOg==","shasum":"642746f6b96ed198a68efd5868a8882425b23336","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.3.0-beta.1.tgz","fileCount":10,"unpackedSize":21177,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe5A/gCRA9TVsSAnZWagAA1JwQAIrNFZ1cBYEjwBd0jTeo\nUllhiXaSNnM5taWp5ilUYCTqthF3x+U3Ht9cvScxJ4+HKYVOHzDAgHtdyFAd\nbiSgPfX6FJ1HnC1bUVOPjJySiakCFSXEfQYQbs5U8i2yD7uEIF1DuPIna58s\ngEY5AcMVe6QzBACxpIz5k+yyhuHen/GN4TRVgtcH4cR4QpUH2uuHO/u3n3qL\nmHs3cBbLoxD89gadIBZ9m10XyTasRtg843qY03Sc2Gj8imZ5rns3/5mHLisc\n3E8b9u2B3SBn9pqbc4SFygofTViBO3EtHVjEjtArj9VRi9HCFoycYWbXu2Co\ntKzDli3/FDE6s+vAo3PyFsaFrUZ6JvhdHKVo7nsPFkOMI9C5FquvLFO6ti5W\nWEWr0SK0hWNsAKzemsBD3po8WfkxBQ6uESuQT8th1zqnrla8qDar4RizeIDT\n/D+x7+Fn3nBMN0SbnAXW8Hxox3Woc+D1fEFHp8CDeG6L5ZiW4eZ3fIr2Osi2\n5AJYi/6QNWB4NfqL5pJJSx7v7mMCdoLrWAM9TeK5bNkgd39Z+UKr+LxIayqZ\nme66On1I5nE7n/X9qIh/Y1dxlFET1ar3FIfKG3ViV7ElE2M+zaxHIfnLfUHl\nRg947hMCss5/6uRV2QlH9Vc7HVTlh+o9svLoGdbAPk+BF4Vrc0e34F5TdGW9\nQxnH\r\n=O14V\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDXTtmD2eNEHhSe+gTQV1whmngcxRh7+cCB3yRfTyb4DgIhAJ7vs4Bl9a17WulcplXuAzQO9+RkM2Vae/0+QnTi/DRp"}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.3.0-beta.1_1592004576043_0.39214685111465064"},"_hasShrinkwrap":false},"1.3.0-beta.2":{"name":"hasura-cli","version":"1.3.0-beta.2","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![.nvmrc](https://img.shields.io/badge/.nvmrc-12-00e676.svg?style=flat-square&labelColor=black)](./.nvmrc)\n[![yarn:required](https://img.shields.io/badge/yarn-required-aeea00.svg?style=flat-square&labelColor=black)](https://yarnpkg.com/en/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 2 npm tags (npm tags are different from versions), `latest` and `beta`. `latest` tag refers to Hasura's latest stable version(e.g. v1.2.2 as of writing), while `beta`, beta version(e.g. v1.3.0-beta.2 as of writing).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag\nnpm install --save-dev hasura-cli@latest\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# or specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version regardless of tag\nnpm install --save-dev hasura-cli\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or MacOS. On windows, unlike linux and macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"21939165542825539d1d0042b3d2feaddb49daaf","_id":"hasura-cli@1.3.0-beta.2","_nodeVersion":"12.16.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-nSUpUHIJVJ4c03oFljnDAB8P75Ai/wQ4cXclaUh8Z90fA07LJfo5yoZVvwAXEZg/GSJRZdjvR2/eGt5t2YhRog==","shasum":"5e02234e07ccae4a4d1d932334cd8f6d0252e518","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.3.0-beta.2.tgz","fileCount":10,"unpackedSize":21177,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe6gTvCRA9TVsSAnZWagAAoKoP/A7+hhtCwUpPeCbrMFAI\nTjpoxtb4oU+jTn3zJija4PlWhnunEns+W4aDXuf9Lc8sSvpeZSI8TKCzmk/K\nXvNo+DHmSGmsnq4Ciq2mYzjRSg4GxH6odbWAw+q4MGThb9QEcartrP3eEIDc\n/EEsspp81BxlIhDlYEj8AfsbsIr4lAhjA6wpF389arh/WoFkGrSI1mP97C70\nf6OxLR5g4oEG/h9DBKUMGAtd4vbkrhMLrMaLwdl+AA/HsJtaw7WzL2w/GGtd\nMEdJgGXK5YpNLnU4lAryIcQNHqVu+NTM0PjSb+sG33taoxZUjRKe+QnVZUww\nYoVZt+FmD1hzN2f9CLIkjTReQdl2W5zxt1WvCto5IWc3gXG6oGCUOKWdmvWb\nm7PtBjJa49JRxvHo9oh2F+bAd0aB8IUcVylQ/LRq2jYmGxRUU9IKSvu6s/IO\ngfXIe9GiLFosvBR/wjvhl+wf35Pm7JAAPGmYuO3nLrQNsm+MntU0l5Gm5a/1\nKHFFTJNHxSbRZrPf0YQseVwZMgtDlKBfBM/k05m3IlbGsPn4jaxvbrSdHs+K\nL4lfPfbDdLf+zUQ0NOW1jQGxJNw1y07h59aAgp9lFuSDS8GEfqLZgSco2xZI\nK+v7omq0nqvY0khh4X+xoHy3xZzVqnpqqYpJ9xtd5Wa233ITTJu3GZskPfVv\nCvyU\r\n=0LZP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDEbsLdUB4vMw0FAMqnttD0LAFSo4cRmX9fpWSsW2srtwIgNO0YFdYgy0oEzTNGfts8aQysSBHKfcqscZr74c7RiM4="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.3.0-beta.2_1592394991248_0.3565784527750284"},"_hasShrinkwrap":false},"1.3.0-beta.3":{"name":"hasura-cli","version":"1.3.0-beta.3","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![.nvmrc](https://img.shields.io/badge/.nvmrc-12-00e676.svg?style=flat-square&labelColor=black)](./.nvmrc)\n[![yarn:required](https://img.shields.io/badge/yarn-required-aeea00.svg?style=flat-square&labelColor=black)](https://yarnpkg.com/en/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 2 npm tags (npm tags are different from versions), `latest` and `beta`. `latest` tag refers to Hasura's latest stable version(e.g. v1.2.2 as of writing), while `beta`, beta version(e.g. v1.3.0-beta.3 as of writing).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag\nnpm install --save-dev hasura-cli@latest\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# or specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version regardless of tag\nnpm install --save-dev hasura-cli\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or MacOS. On windows, unlike linux and macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"bfef137a24fb9bc69eb5f5de8d2711e942523e80","_id":"hasura-cli@1.3.0-beta.3","_nodeVersion":"12.16.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-z2PnPzESPXWlgViTTzIT2TDO1WyfEyLnDieCJ6SvVb+QE4NI0donhCDkPZ1vN2hP3LdEClYdKoTnPcLFfroQMg==","shasum":"1fe558eb26c6720f2959acc0b1c386e46d9b9e31","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.3.0-beta.3.tgz","fileCount":10,"unpackedSize":21177,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe+ogPCRA9TVsSAnZWagAAxkMP/i+zr4lToTCQqpsSeZas\n5AVXg8uwF60SbGkGzNlwCemAhk41C5wWuWjiM8zFVGYqPw7Y6l3pZMi+WwuX\nZTt24S8IFoKscFV1uELB6b0/WDpclKpZDO0i05JDSxO6OEP09FXJx0f7L+LL\nxy0AoX/ojnQb2sMjM1dFV6w++cC8Y6VI9L0NVdaV0JYyTyeek5LcvsE1oXu5\n6geqrL1GYUB2+Hci5swxQLyfiGKVVNmug1MK2lYf+3OpWiga6zrTacult1NL\nnjJw+0YyE2Nwcg/jthxlysQv+j2BnX4O//LRnZWZeoLwXfO5InplXzX+uE4W\n3ak2FrELdJkUCdLaStQ/KOowzV7kfZZU6PMwlFgCkdjk5WFuusClErbba6wz\na7aJa6QnJ1C/weGerMWhksneuPn53LH6uYocbmYmM0UZtnE4aGaHeke6WvYV\nfNwD/1wTnbQdkTxGeRw81NdsGHU2LOv0Gq0lnUzsQouH3POxqVPvjehfexb8\na8XJ1LF9FDNk4jvfZAgsMDkB1Rbwbujk28GocZzdYSxAjVQib7a8ddOT+Dx+\no9Y3Dxs6sFuuEw74fd0W+vjrBmdZn4hWy4rULPDStiur4CEpjHhfzaJWux3x\nFFxI5T6yxkfRMJLSfuUHrGOoBe1m6y+LtHddtgtRrB8nefeICprG6ZBZiVO9\nVnOr\r\n=UZbs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHFwlcIVLZecRCcwOwmpR1arCnaGFnK71RNx2nPLarB+AiAMSVnTE4xLHkBjsQwP3xl+ehQzpdslS2JuYYpnvRx5Aw=="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.3.0-beta.3_1593477134982_0.7496851344583071"},"_hasShrinkwrap":false},"1.3.0-beta.4":{"name":"hasura-cli","version":"1.3.0-beta.4","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![.nvmrc](https://img.shields.io/badge/.nvmrc-12-00e676.svg?style=flat-square&labelColor=black)](./.nvmrc)\n[![yarn:required](https://img.shields.io/badge/yarn-required-aeea00.svg?style=flat-square&labelColor=black)](https://yarnpkg.com/en/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 2 npm tags (npm tags are different from versions), `latest` and `beta`. `latest` tag refers to Hasura's latest stable version(e.g. v1.2.2 as of writing), while `beta`, beta version(e.g. v1.3.0-beta.4 as of writing).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag\nnpm install --save-dev hasura-cli@latest\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# or specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version regardless of tag\nnpm install --save-dev hasura-cli\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or MacOS. On windows, unlike linux and macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"2118f3b2aef89efeac494e68c93aaaea164a1f39","_id":"hasura-cli@1.3.0-beta.4","_nodeVersion":"12.16.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-jOy1cNaqbkvMO5+r/mBrB3EFCnyDdgypBnyDrF6CZ1hQfod9aLhNzobjM1KIFA+TE4juYXdH+0LrW87Jc61WQA==","shasum":"2661b3d4e80c49d7de0f1571d5b96aee7020c3b8","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.3.0-beta.4.tgz","fileCount":10,"unpackedSize":21177,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfASGzCRA9TVsSAnZWagAAXNwQAKFcUPDkJZ5dZI+bqrNP\n2WkXKa9IcwH9o1yYXD/O9HEHFDbi7oEF9CZrRg+UxbIgVcCTdCVX/Is/b0oi\nDMhpgpy38uQS7UaGZJg2Vyn2ene+FeBh2Io1g0NIJdJqKupsHM47ZQsWeArw\nK6Wjxdy1dqhQebXm95bxGPmEIcR7hVLy+9berTDJ31i4sA2IKmBRgzsRzS7t\nF8XUoj5MsyRiyoEQR/785gSs9fyq2QM+ojvB8wVauYeRLPUw2ZCy0ii4cI/U\nRF8MFGaCBuV94xVhBoVPLK6Z8fVqsgNf68p/pe0qAHlaGAHgjK+V2pYl2YDZ\n684s4P7+ZhWPrCaU3cDC//gCEqvLX9X6JOxA6795daRMH5TzVyYOBvjn7fhy\nFqnSR/1oKTGKIxN06oAjbH3Wt/d3LxOc00EitY4lOOXy/7dEKzdw19xznSDt\nVLko69aoCW3h4HTOSBaC4L+38wrMB18pvvHlYbvH13A4WtluFOuJHbJnM4jf\nwcxnhAHyiQcu+qjW5OkOiZ5+dXWpihf515LARzpadsC4gGHYGg7Ot7XjWxpC\noXFp8ZNEAHam3SQRop4DmeNCV3IZqjCwcBlmqVBf10s/lmeMldYlhev1QQzr\nWcm5gGTGhFoC2r/tC0mtX1r3SxjGlXF/KnZmjKXZ7IqVLk5UN6FCQH5Ii8E1\nW4lb\r\n=e035\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCGQ2pYBqP2YX9Vu/bYAt4ZuZgLjnXx5CgdBNwv5+R92wIgKltf4PZXHDa7GPnKejWK5QCaMBY1axcA9gGzTormeX8="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.3.0-beta.4_1593909683414_0.44931561987990154"},"_hasShrinkwrap":false},"1.3.0":{"name":"hasura-cli","version":"1.3.0","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.9.7","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"be7de33af2bec695618034371fd72db2bd34e02d","_id":"hasura-cli@1.3.0","_nodeVersion":"12.18.2","_npmVersion":"6.14.5","dist":{"integrity":"sha512-BNSM3dZosS90iBuTWDU8Wy6hw/KYPmsGl9ilFof0eUclwHU9J1QeUGGlYZGuOK+XBMyx0eTLJy3CEph9ATYVdg==","shasum":"49c01c3c5ffe7c1eacc91ca45f5412ed1a29b933","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.3.0.tgz","fileCount":10,"unpackedSize":21330,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfFrnUCRA9TVsSAnZWagAAqM8P/0k9d+IOlSguhx233B51\nx8HopoTTw8s5A7ONgpSTeBIbszc5bVeMuHnsUYXlx8stAHRBxYoT3r8qtNAM\nz45MPNGz9zIDaT1chdTHX8A4tOKrXfk84iGi1yElU+YFOOzj0U2VU/rpLpYy\nCiq9e7TJ4L+sU7LiOg9wqauQMqPnIBqddYU+C4Q2TvYT0vw51rucLO2t0we3\nNWB4YnQQdT6z/c0wBrvSS/coVWFWleaZGIvkC9NW3wmkLxCNFrJEYJZP3a/l\nA2MIc7pwJGRM8exWYWojSRFDIpNGlmRLoddkSUbCDIA/TcqtQDKmULMejQwi\n6aNy04l9AHac7bf2iOPsgdp5h42RJOgFFFXx1hSrG7C0HyWsdMH/Ckf+ifJV\ny1h3yTS/Pc2JXou7NuhAZUBb3yAw+V/AX3c3RLDLC3Q1dJVyiIBgqNOuM6Ce\nzqzoAooMCnrrshSXyiUfTNWg9pWJf+rFZwrmYJN7oV9vAbIr+JQQqlET5B1f\nvlYqYrAe6SVxTpbwyxcH/WqpikCQFWkH+NxU3V45n7ck8hPUyCkO7/Z+vkmU\nBSRUacE++KLkGmai/6bZId1UT5gCTYxIUFtyVZE79L9YktvuewUqTlCn5IWX\ngakqCAjkDwcTz07S8nGYylFZLNz4SAjW2iCV09Ub6zMGzpRd5AoOfeEv5zj/\nqYxB\r\n=JbSJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQ4kGWq7EGzH4vtCb5mF2D2JuYAXcu34j4o+GpTrJLcgIhAIP2wZn/Dr69lWO2ox9MgaeteyDJnSNJtcGkIkkcyFxj"}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.3.0_1595324883776_0.4915737959940758"},"_hasShrinkwrap":false},"1.3.1-beta.1":{"name":"hasura-cli","version":"1.3.1-beta.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![.nvmrc](https://img.shields.io/badge/.nvmrc-12-00e676.svg?style=flat-square&labelColor=black)](./.nvmrc)\n[![yarn:required](https://img.shields.io/badge/yarn-required-aeea00.svg?style=flat-square&labelColor=black)](https://yarnpkg.com/en/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 2 npm tags (npm tags are different from versions), `latest` and `beta`. `latest` tag refers to Hasura's latest stable version(e.g. v1.2.2 as of writing), while `beta`, beta version(e.g. v1.3.0-beta.4 as of writing).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag\nnpm install --save-dev hasura-cli@latest\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# or specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version regardless of tag\nnpm install --save-dev hasura-cli\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or MacOS. On windows, unlike linux and macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"304bd1ce680962e565fbc362a81d8a2a9999b7aa","_id":"hasura-cli@1.3.1-beta.1","_nodeVersion":"12.16.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-psfHvWNIjCbGJwYoHbGHqw/yN0gTRUM2KIPk8EdFavEyzupLswsTA4lv51fhMKfLnLv+LNZykUhRxQC5ZWLaNA==","shasum":"de4335ec21bd5a477acb3c70259510c8d021667f","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.3.1-beta.1.tgz","fileCount":10,"unpackedSize":21177,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNfejCRA9TVsSAnZWagAAMygP/jP2wELTQwhnfmpdqHxz\nnO+4LFs0q54hRsBM1A81saiHa1Sfjg+Sdn8PkHd1r7LX0dDiLWO9AcWjWLPr\nv0OiP4eV5yxECY+kDKVexxHiooYoBHSBWx+5SFSrOe25JWXZdpLJXgR4LOyN\nMSurJ/uQUpQtck6LEUO9VdjQwGOiGG5WjPPNpI2vZWB2+xjztRQ/GbqketN/\n/VutfYupvUMIN7ul8Nh0mWptVQOWST5hkHH6JJgwBG+D5nV7vvSoGfcDJYFF\nR8tEre3WgGf+rYP7ESvRsX2bRPCKXDoEMU5GqDzwTO9YUgYQ6XNoBWkZIwXl\nRmbH5ZYJepNz1M637wo0rTDvLYucojpLUYg9x7imJ63bh3psVQRvDXBb8WHK\nYyEwehZ7q9V+Na+5I4EuC2KMsa3pmUgQsCEN+qeRmo5cHsRsLxO/mBx+jdCb\nGU3CAkl1U29GMaGgw7ocjg2T4zPyZlEfRvNUqvHvkZfLdQukBTa3GIG/oeA3\ns5x711wOhylML1F5k09AhxI7izo8SQLnTIrW0GGJf0/8cTZ36Dsnvar889IU\nY0Ijq/e0+GoEtr1uNFIyW6jBKeCojo2dJwc/po7+jXyjL+ThoTU+CGpvT+Y8\n/HdADzvEfxgDG3F13SBSy4u3GdRpbgwYrkcYD9cmGUzSk12G1S5jy3atzV6a\n3nT8\r\n=P7TT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFGJHZb3uBrGkxB8Kc8DxaNpsIk74KpF8wG/cL9ojk9MAiAf139fzuNORxmTEhmH76UB5B8LosFYWsRONw/hHC1pSg=="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.3.1-beta.1_1597372322861_0.7524517525490042"},"_hasShrinkwrap":false},"1.3.1":{"name":"hasura-cli","version":"1.3.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^4.0.2","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"2851a15d524b0667404f116456b413ec7f40a268","_id":"hasura-cli@1.3.1","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"integrity":"sha512-9xbDcWeqF1ZnmAdNFbA6BpFaKkeivFxZlBLATU0WhO0IA+wrH81zEs+oLsH1qHTwlnWU3kIQgisHlmZr+nSIZQ==","shasum":"6fa494d0e63e76f8146d3883301479296701db8d","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.3.1.tgz","fileCount":10,"unpackedSize":21330,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQcJKCRA9TVsSAnZWagAAcSYQAIlv+zYRS4gTYAMGCQ3r\nlRAP76MEqxPPidyk0iGb+lKQi/JNMaEuHTWa2xQbBDLZE9UTtfVMvmM7hF16\nUXRtF7/cyrjguIIutt9zNyt8jwHBR6131mCmH3Ng88xtuILHAnLqbCpRRtDT\n3jB/7QlmGnRqv5Y5QQ8DqxmGr/lE8GoL1ekeRTJa2CHPPtTbwgxpf8A5W7hv\napBcgq/t0E/W0lyfomFQrWePyKOa1q0EyZHbRHiQ0/XcsJvYuxYQY6ak9AhN\nRQMp4/KQ8rfJ3SunIiA/LN7ASRQiOpNk06dh9dKs/SxLTiC+lHpLLWCIiaKF\ni3pU2s9uvQf1BGbev29N0QJyvahiLiWaFhVfEaJ3w3vb7w4R38zqat9R8rwJ\nPBF8lvJv6md364ViWh9R/PVn0JC0z+jE+hnqFRDnAf2evBAjCqNIDuZ5gCee\nKMrri41YHioUUFe0APFSB48pJniBy167g9B47eLC2ZtUctnody863L5JhNNx\n0TwltMkdvk+9D0+W3OhvB9b71quWyaWgNf1O+xjT8EikoUsjgZeqkwfbFgCR\njDoWWy4xrmN52uhOnlVmcpRhfHX7PeRmU8AheKPHVj2kULD8pmXQLWFsF+8z\nv3KFgh20ofheRuq4n6dV51c7vG7up7ofisi17NHOPWRAN7FhDZYYfkRmy7xe\n5d2q\r\n=mgng\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHkk9aMwKnn3KY2WoIiCW7duNoKIj6IADiflpkkE0VG9AiEAnfm0Slg9OeT1HjbTeScTKQVETunneeyDNBNr5OtH1wE="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.3.1_1598145097968_0.3022056320520192"},"_hasShrinkwrap":false},"1.3.2":{"name":"hasura-cli","version":"1.3.2","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^4.0.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"232cb771071b640f303c670453a0e7d978c2e379","_id":"hasura-cli@1.3.2","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"integrity":"sha512-x+f/fpjJyI47b0KWvOKQqTNMKLAVXaFEN63EPz4kAjqTSQD/hinmWDW4YSDBWnCUtaQHTyIS5hsLzxw9yWFA5g==","shasum":"e38ae1167976cd588718ce66c1330a7f694a17c7","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.3.2.tgz","fileCount":10,"unpackedSize":21917,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfaelBCRA9TVsSAnZWagAAQNAP/08fwu1AjQkCbu2+UZ8j\nEd07ZtMdusNdYN2jX6uMwcCGQaGMMB6TWl7EsSL04430fK/qcXMVUjAYm0kK\n8kqtPMcRR6OC0ETVtz6CJOI3XxJXLrIkX23Q92vF+2RyhSTztE0Xq/lmS4Z2\n/kNM8zAie6W2bQZgSGLvlF+pp+wzi2zG+1PyRGAQdsLrzT1QF5SfdCu05BB4\nWUCUfoKTQLm5k3/eHBEIqzUiXgJUdxQ01qm7mceu/eMcr3pXh2qmXiKSRPVW\nEsvxfbNNWWED2MgsnHVWaA3xCGozYq4w7lGUM7hmE8M0tdoN1foSrquuIUqm\nf3mUc99nS4DqiXUhNWaVBefgnoY3low1FSD3u7OjvOA9dJuajUP3Wcp4sm3v\nJ1+kp2jv5bQU1U5DFeNLdsvBn1cKxOw9EKxk34jSp9WbwLRa/p8qH/uyktca\n44BC5eg0VA4s/HgtIQHbKL9OZM5BNl2Eefs7erHbhpZZsHS4XjGyVi3zJXQ5\nGVzVClthLBIZc6Hm69sSXUHHAuwVVq4I76DH1PGQgSnSdK6E+3k6D9SeT3tG\norlbQU3q6Ykd2+gc4RMclvsDBbxcx9Wx374ukvTbxLi4jhUe1y8vBay0NyJQ\n3VUBTvixI0rTMbIWSzcB4d4rJzO8iGnno9pF8JomIQdlMvEw+pTxmg8SKXSm\nR4x3\r\n=TKOO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFVSjT0w1o3/XF6HtFaoL6hcVeb/sL1rlzQe6qnMPKxVAiEAhC/euvwUO2wiZ7OfoDzwKlI/x7gWsuutVQW/lQpXTpg="}]},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.3.2_1600776513030_0.2487167801882446"},"_hasShrinkwrap":false},"1.3.3":{"name":"hasura-cli","version":"1.3.3","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.3","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^4.0.5","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"b8866211001a3127986a9ae002222794f2cebd08","_id":"hasura-cli@1.3.3","_nodeVersion":"12.19.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-bIZaI+RIjTotqeHJpwByyvVQvS/EDoHdDcizcvFSPKSsh7Zehro9ZwyyPmvtIEvDn1EI3I2s5vxAVOOJrJR5qw==","shasum":"8673d1c5748f9d8a05f0adacde6e3b446f0406a4","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.3.3.tgz","fileCount":10,"unpackedSize":21917,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJftHjVCRA9TVsSAnZWagAALvoP/0ia/zOBqzZpqNOpv/Z4\nrP8PWEGK8Sx4dh5AhW1fKDfIxHAPV9E0pAqjE0QB5S1my5NFTgVjDnDQDRv0\neXyNH1Yciw3xXE1yriO6KTUjJW5XXQCJXTCaKu1ITHqsaVHM0oWp8cMu827R\ndN8jurUgDrTotf002nPT7+g3pZP8dWN1AYRWpDQ/OS51dTjJo6D947o6Jiss\n1yYcECMT9H6Y/hVnrNNNTfRdlWYIrelIrRnUNH4/EoDuQ8/QXGM9SoCdz67X\n7m5y2bJUtC6bpTlRWvLngJuYvyTClf4Qppc5IQxX/sUbLBR7DQyP9fpVd7Kn\n3OQ0BIBjUv1P46Yy6ty73UIauwPL/1nPt04HXseF36bBlivDTwzgWl7NO1I+\nJIAO6ja0N4VDTB8PB819q8GBezBqviFNsNj7GqA79F/6Bh7tuzkkNDXtLFWA\nxkbTy6cgdnK+ojasNPruTfakFwlSkTrru6gsI5L5x8mVDGVmTCAqgDZnccJx\n3FyA3K9EMoCHc7VrbEPv8SC7NPIFc5AINibX3EqPSN2P9k3PVoBJmpKeQ7Mr\ntweKxhW/9CU665Aw2s73aqAkeFtDlS+ovo5QtCmcXTtazAl56u3ySEhMu1dj\naEjtPWj7zY6PyBiRaStVwofcBuCRT6K95ExznPfdSzpWoEXXMIREhZECNryW\niHjt\r\n=gxJE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDiC2QrA3Xbq+xhBDiK4vJ2tgSYRKpzooy58JGA++V9uwIhAJI6w+tM8oLXMuEIfeebwBU/b05pVMGFPmFZksHvlFqq"}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.3.3_1605662932916_0.6161715765037723"},"_hasShrinkwrap":false},"1.3.4-beta.1":{"name":"hasura-cli","version":"1.3.4-beta.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.19.0","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![.nvmrc](https://img.shields.io/badge/.nvmrc-12-00e676.svg?style=flat-square&labelColor=black)](./.nvmrc)\n[![yarn:required](https://img.shields.io/badge/yarn-required-aeea00.svg?style=flat-square&labelColor=black)](https://yarnpkg.com/en/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 2 npm tags (npm tags are different from versions), `latest` and `beta`. `latest` tag refers to Hasura's latest stable version(e.g. v1.3.3 as of writing), while `beta`, beta version(e.g. v1.3.4-beta.1 as of writing).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag\nnpm install --save-dev hasura-cli@latest\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# or specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version regardless of tag\nnpm install --save-dev hasura-cli\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"ab9e7f93b99c1fd143b74f1702cddd4f2eb4302c","_id":"hasura-cli@1.3.4-beta.1","_nodeVersion":"12.19.1","_npmVersion":"6.14.9","dist":{"integrity":"sha512-oTNATVyTVFrrjQp9AgVMjIe51KqwXAAdMQ9y5CIf7MRuKZ0b/F6oNVWzQGK8XijsuAa9XUnnF8SK/Tt06fHqtw==","shasum":"ab754275f6ef3950036a5aaeeea2d2515e57d87b","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.3.4-beta.1.tgz","fileCount":10,"unpackedSize":21764,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgKTHqCRA9TVsSAnZWagAAo40P/jNbM4KBl7+1IoCGATRK\neTsOXGf2bOOC9L3KX+4u+zCUU+zJwL1BvCopQqYEHSwrmTCKsIuEumjuXPgL\nBk2ZWprWmieUY0v0bwCMils2iB84EdXA/GuWIWtR4lwa0DRZUsPxI1ARmpCL\n5VdsxQUBlCccf9IOz7NzS8IyfPgkUVd3KMhqeFcbmI6mzfO90hJ0KA7jN4Hv\n8LvgoM1P5aRxpis8F1/72e011E5om1Qhr3mTZFqUVh9VUisq7PxV/W4Oc2VW\n4VlZwrEvxL6r84PoWp9PtQAfyKjV6KlvEcLWBzypDfhKXYUOh4rpN5DVMgVA\nH6byA77ibg1iKEPJG+hIVHL0Fe+8mhVZiONwm1TPu95Zcw3vQHUqGqIK361t\naFbful2Tq6ri5dkflRfWplcrH3u42wIXQw8qTveW1sVlJOBFCrakx6CgjDHv\n0hJ/4gGqcWcOFKdLGIk9A3QuoiP49pdzbbnGz/rVNe1LizVPqifbqNwHUMkk\nik4ovp9QLLuYx28XWCal2d+Uq0IHilBsPnYJd7Dxip37x61JbkNCIF8kiOLg\ndIxpps67HrFwgz4USvgveL0ZdxQFLqmjBMVFIFocPXO6+4w2SDiOlkW1BykK\nVuK9aOHznPMBitGFl6LaRnut0nsiJQj7amO2b9oCKHFJrhAmbMq4vSMNXGHM\n7tAr\r\n=DAMh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH94/S5kQfhvsUH2aQyRzEzibc5y70QpinjwX3njRDtdAiBhBTlpsJ1MsQBSw9ZQ5HVjHkO7bWaXwyO/JrxkZeC48g=="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.3.4-beta.1_1613312489907_0.6446893575672816"},"_hasShrinkwrap":false},"1.3.4-beta.2":{"name":"hasura-cli","version":"1.3.4-beta.2","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![.nvmrc](https://img.shields.io/badge/.nvmrc-12-00e676.svg?style=flat-square&labelColor=black)](./.nvmrc)\n[![yarn:required](https://img.shields.io/badge/yarn-required-aeea00.svg?style=flat-square&labelColor=black)](https://yarnpkg.com/en/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 2 npm tags (npm tags are different from versions), `latest` and `beta`. `latest` tag refers to Hasura's latest stable version(e.g. v1.3.3 as of writing), while `beta`, beta version(e.g. v1.3.4-beta.2 as of writing).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag\nnpm install --save-dev hasura-cli@latest\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# or specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version regardless of tag\nnpm install --save-dev hasura-cli\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"5b5f80e14c7bce9a60030c0918d997e970db9409","_id":"hasura-cli@1.3.4-beta.2","_nodeVersion":"12.19.1","_npmVersion":"6.14.9","dist":{"integrity":"sha512-mnxTEEvijbWTPnT3jEVGonIQ+ZFReN/HDo45gPaY9Xvn5NjB9XDg4Wu/H3cpGGqvM8DYQ/Ht2in+HLTVaEJZDA==","shasum":"226a0966023ba6c4a07cbbddc87fed13b78fa633","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.3.4-beta.2.tgz","fileCount":10,"unpackedSize":21764,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgKiwSCRA9TVsSAnZWagAA5LkP/i5Ql05EGFp8GCuD6KLr\nycFPoZLIw9sf32Tzp9GI/ru2fIIKJBRYBXnBuJZaqtVRfezDgZlnaGn3NSqJ\nDC5AVeh29ttvVUEv13wUMHMgqZdkJLI/9p7f/N/YsvT34AnrDuU8v68mxTvQ\nClC8CHQZuSllB4Yd6KVwoDtpBzkUDYgQros9k27+iyBHbmPOZ2mhXMt27bfh\nlghoM+y4xDAlPwereuhWinBlkNW64bR/vHm5NQBJIjBBeGXYpNPJIwgTVsfk\nZICRvuZDQ53lPWT3MqMG6o+N5Uoe3v54/PDppOTe6N79UAz726Ai/wz2xk4d\nuNmfYadAujFBNiWktJue5ZhjmYMQJMW3BvKWqrBfHjNiARhd93bW2Qi8CreD\nRa7AmjtvGpS61nsgBARmp+v5cUIN0L7Igmer+sdEagxt+yvWgASlVllCTosX\nHmXQNusp5B/+RNDEOYA8w2SnVnVFqThhYdWIzq6BvbTHgqr02DZQGHXJHgIC\n8H58psT7KnZs6hl0MVuJwolGOBE/lePj1BLTXjnYIR1I4SPNWVow1nbYpXvl\nTFPON7xPmV/cBf9GB9dGDyGWQ6YlGLMvLsPXykbNaplr+ZG4JGSt279PSDAN\n5dxPgXw5h4PaJFZS6/edVQli2R/dWuveBKF8g+8hmRE8qDoa4JZjYiQROZSP\ng7GK\r\n=W8YP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD2Lui72bRzy8WX2143K5gWtWYvINh8pNF6thbV0gY1rAIgfJ9nsBK1Lvy+f5hhJqkieyoqAALZ4OKzCNOj9aSwEM4="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.3.4-beta.2_1613376530276_0.17848861103633928"},"_hasShrinkwrap":false},"1.4.0-alpha.1":{"name":"hasura-cli","version":"1.4.0-alpha.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![.nvmrc](https://img.shields.io/badge/.nvmrc-12-00e676.svg?style=flat-square&labelColor=black)](./.nvmrc)\n[![yarn:required](https://img.shields.io/badge/yarn-required-aeea00.svg?style=flat-square&labelColor=black)](https://yarnpkg.com/en/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. v1.3.3 as of writing), while `beta` and `alpha`, respectively beta version(e.g. v1.3.4-beta.2 as of writing) and alpha version(e.g. v1.4.0-alpha.1 as of writing).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag\nnpm install --save-dev hasura-cli@latest\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# or specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version regardless of tag\nnpm install --save-dev hasura-cli\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"5d4b706d819f57e275a7e9342260c24e3ac27aa4","_id":"hasura-cli@1.4.0-alpha.1","_nodeVersion":"12.19.1","_npmVersion":"6.14.9","dist":{"integrity":"sha512-NAr5G8dWaSTolFXc2JEI07aGD4iN27J7oJQ1gcXUPc7R+GaABVPiI1w4/cXksiZ6f0XY8GR5IT/mH5n3YeiRdA==","shasum":"95bfa054b6b564df30b3f236bd1dc51cb398aeb9","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.4.0-alpha.1.tgz","fileCount":10,"unpackedSize":21852,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgKjA5CRA9TVsSAnZWagAAsvwP+wUuNfS2p+gg6h25fnnY\n/Ui0UddeHPRlq8HQPArVGFwmkLD0w8p6hPramgO8A4S3QCuXyEIexkkytxLe\nMm92RffIfWkZ1eFctHNnW8Btjmxcd/DW5OncynJHNHJQJdqpOESTh1vjEXs/\nXd6s2+JwfX353lyeaE1KOV0fOuBjuNZVwX7kSFqKiokaGgXRli+WG3IjT0Kg\nP32JAc8r6WDds1P9elOV2yV4pgawEBhFlj6dVPOr9Fu/uW22uwzUp/YqvR3l\nRR635QdOErCgsjWaxtXnYIBJy/HFesbMN4iFPz+5NNqNWSS5GLCydEyzscyx\n4gSEdS5RtuVvA6gl0m0mS/3rptzgMP+8N3iNj/KJ3eiu/kAhjVpCTZJRmcMo\nFJ/pil0OFNoy1X2dVEtSP5nPC9xs3g0/LDHWaoQBtQS8A3/X4+GYhMlro48X\n8+KHTcrKK4y7/TVQj8iiJaUu+e+nTkh0+FlFLRjjqnKV+Maru7jxMUYywZDS\neXotgUGp6BegvnvX/0z6nZl08zd498ZyM6T99DGnYA4JLKNpT2T27Ws4zttP\nNv/1Eg2V0a3CxaheNaWkQMbPBsbclPX3zDEfb7kgSxFudPmpBCk6qgZkNG0T\nQtw8eZt0RLVYj5LYbCrD7syOXfi0ycDRIBesMypHRRqi+vT1dEWNAcEpWyla\nPV4p\r\n=n6hK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCueL+WUIA+HyBZbRMQp5K2vbB9OaiMyWcSmOplQJVAMwIgSJs31+iefvfYNTmasIHODK2dysaJ+0L5rQr4aYwHm+c="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.4.0-alpha.1_1613377592652_0.132441872024033"},"_hasShrinkwrap":false},"1.3.4-beta.3":{"name":"hasura-cli","version":"1.3.4-beta.3","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![.nvmrc](https://img.shields.io/badge/.nvmrc-12-00e676.svg?style=flat-square&labelColor=black)](./.nvmrc)\n[![yarn:required](https://img.shields.io/badge/yarn-required-aeea00.svg?style=flat-square&labelColor=black)](https://yarnpkg.com/en/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. v1.3.3 as of writing), while `beta` and `alpha`, respectively beta version(e.g. v1.3.4-beta.3 as of writing) and alpha version(e.g. v1.4.0-alpha.1 as of writing).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag\nnpm install --save-dev hasura-cli@latest\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# or specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version regardless of tag\nnpm install --save-dev hasura-cli\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"c2b335447f78feb61818af48a1ffccb677798992","_id":"hasura-cli@1.3.4-beta.3","_nodeVersion":"12.19.1","_npmVersion":"6.14.9","dist":{"integrity":"sha512-L0tww76n3Psr9OlH+kW8wc2b7DEetNeK9mGehHrg2bJu0RbdSX1L7OW283id3PgkoYzJZ02iQ4ywClNroF8RyA==","shasum":"a48c05e6744ee0e70e6e49f2de823bda26f5c5ba","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.3.4-beta.3.tgz","fileCount":10,"unpackedSize":21851,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgKpWACRA9TVsSAnZWagAAZPIP/09agEMfR7UEqYCmXJXs\njmXlAqEg4q9WfBX3N1UkTzMaBk18fuZDHtAZQBTF6eOX62y0J3zIu5VA9E6A\n0+mqJbWS7Wklv8ibhnFJsCBesY9vq1NQIP46IDRjB8b+o/9vZRzaPLtJbdJa\nNRC0Vykw1ZxPBArFiZ/NyR1xI/bEs3765okuei50gEEXKo0Qrg9EQUYJMnE2\nZOzmuZ3hD7tY2ZPt5ntjPp92ttC6NMg5krlgJd2pwWp6VdaRQLPiv8bfZqab\noEAGScrbWKiWrZCIRshyddLnsBBn69wbiKLspnhuF2zdMUJOg30tIQx60Fhk\nw+orgCk3G0a0UVNDdKdCen0kiZHRWjnXS3t+Rkf71OmPCIi7wK6hta1FZrOU\nf50P+C8VvS2BWL9gk1Kyr7+CeGhN0nH/wN0hlZYAMFUSBPVrlbM1f59WRYHJ\nyVIxdWNaQvsmwNWyNvUlPcJvsE9c/O7RF6gmPGWd/0vqs1i+7J6VWyLdastl\nOiqr27t9Gg6U6TqieSpWTryEa6b3dBaanWATbAZg0gq543EKWHci4Nhc9JWJ\nAbN0m57+BTGbgrgxcZrFMZEPbkXvNvvXj+hTbpDrCdv7hAgSN1jEpvYiNPSj\nEQ8FH9/bqYlvIwL2E0KYGaien1QObtOUjCKHfpLvDAL5oxot3F7l38EMpP/a\nvHCH\r\n=niA+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCjBbxkbGdUGKqQa3ria+Tlf9cZnxP3AOyiEzXAVWmLSgIhAOCNbkQpexFcM9KiqJmE+AWxC5jzCHNF4IDJF06Smr4O"}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.3.4-beta.3_1613403519548_0.8347831534165335"},"_hasShrinkwrap":false},"1.4.0-alpha.2":{"name":"hasura-cli","version":"1.4.0-alpha.2","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![.nvmrc](https://img.shields.io/badge/.nvmrc-12-00e676.svg?style=flat-square&labelColor=black)](./.nvmrc)\n[![yarn:required](https://img.shields.io/badge/yarn-required-aeea00.svg?style=flat-square&labelColor=black)](https://yarnpkg.com/en/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. v1.3.3 as of writing), while `beta` and `alpha`, respectively beta version(e.g. v1.3.4-beta.3 as of writing) and alpha version(e.g. v1.4.0-alpha.2 as of writing).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag\nnpm install --save-dev hasura-cli@latest\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# or specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version regardless of tag\nnpm install --save-dev hasura-cli\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"d44fcd0875ff1d74113082ccc60cd66bcff71f64","_id":"hasura-cli@1.4.0-alpha.2","_nodeVersion":"12.19.1","_npmVersion":"6.14.9","dist":{"integrity":"sha512-pZN0U98Zat9l5nQ33EYygOk/+WVzxk7C3WWfxsuVVtW2YpRqqSmWjlprGda3XP3rZm6WdNyqgYjdZ1kVcOlUfQ==","shasum":"264fe6f5b852734795488bb6a492d933db56b5a3","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-1.4.0-alpha.2.tgz","fileCount":10,"unpackedSize":21852,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgM0GLCRA9TVsSAnZWagAAkCoP/17TNnAdFWPH7wYxL0FY\nRjE0CZkOidLK7GvGAkQWnUZjgXdoCVeE8H9V7AHNUp4u1I5ZgdPDcHegbkkJ\n/4XF1OemKC66+K2+jpGHEL8repler7o/FPm0C7YDUhJIgaSLXBlbIgkjS1kt\ni/LNe92+RY8P5t9MXByMXKYnGeVPdb9zGVgsZS8f5eH3Mpd+viDGv49rOLC1\njM4JU3e6WJw0i/upe0b07y9MutSVELdYsKVAn1HxnrW85U40gqh448vI+b1r\nusQq4qXwbgIqwqaJWqCes3nzg7HuxuK+UEskW8NhP+UaLtLvizyYtZpcinCo\n7gM4ytahGHCGjxwhHN5bGOHDkwjfiuRXwX+rn96eiHy9wToogEdM8WPKhDYi\nAbpUut7CGnAV1Eo993azeD2bccrXYE91lJZR1x0ZixZ6cr3nRL8T7P7AAt0z\nGcN3EyFaFUyVbmKcLd0V3W2rXkcyQElKJfoeT9Q3kRb5ZAIu7GEGTHN9vvUA\nZzV15pCbXaSRRCW13wZl+o8B/E8sPgaGjJqFQIq5sPqwiTISY2Pm7uANGdHN\nacS/w0u3A6aM4wMED7bi9+srbaCrfyK7Ws3qZwi/DNzwkO8ygBnxYKgiAWYn\n7fN/BJzlw5oVc84sYr1t88sR4CPscUl7NvvFN5r8FZl/S1J4bdqcS/Yf2wK9\nIx0y\r\n=6aZG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDUaSSSaqrHLVT7533yZuZyDDjG2TkjGx/+jmL3u8mOswIhAIlAxv6nQra67ky8ScxtZDve/E8DDa6QN+xpd+0PecCV"}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_1.4.0-alpha.2_1613971850956_0.5756776639074599"},"_hasShrinkwrap":false},"2.0.0-alpha.1":{"name":"hasura-cli","version":"2.0.0-alpha.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![.nvmrc](https://img.shields.io/badge/.nvmrc-12-00e676.svg?style=flat-square&labelColor=black)](./.nvmrc)\n[![yarn:required](https://img.shields.io/badge/yarn-required-aeea00.svg?style=flat-square&labelColor=black)](https://yarnpkg.com/en/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. v1.3.3 as of writing), while `beta` and `alpha`, respectively beta version(e.g. v1.3.4-beta.3 as of writing) and alpha version(e.g. v1.4.0-alpha.2 as of writing).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag\nnpm install --save-dev hasura-cli@latest\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# or specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version regardless of tag\nnpm install --save-dev hasura-cli\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"ad62652080548b7bc7ab729e2197717b1eabc56c","_id":"hasura-cli@2.0.0-alpha.1","_nodeVersion":"12.19.1","_npmVersion":"6.14.9","dist":{"integrity":"sha512-hn9IFyWybqSnpvHHhO7VluyVBYYjuNI0PnmwL7PxtNXDQG+LUpxbpbWWYNTOo4LtGnVBVPnJ3HgXkvEj07yCPg==","shasum":"0e941f5a37fd76fae465a30b45dab5c95cd94278","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.0.0-alpha.1.tgz","fileCount":10,"unpackedSize":21359,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgRccTCRA9TVsSAnZWagAAOlwP/3YKQX1rm0dOObx66pmr\nLROSm0HM/ttFqUKLbgtDaD1M3tiiAxYtrfjHtfVy9r3VPdTi2fGou1oELeH5\nFDyjDiMT25XcTCqhXCTMcov4xNFlVigwxuqQnrdhyAPduznNP4mSjBvqskkY\nvN2oSKErpfo99WU83KffSIUfyldgJ5dtrbc47/hKRBXDJdJn4MIEYYid/g8Z\n5fEH6aBaPmn4MB2MfbKQRSVCYIFpkSXpbKswLYMcL/dJv6P4+nG7PfPb8gRX\nNG8HuCS3ibhjs5oakfoX0PR0R+CkL0X7S+RVLhxJkMjbr5YWDV1ij0sEe8ho\nRvlMq1isO4VYufJHODMcWKTsKb3hjwbaZTyNcsQhaN9ubNZ+F/yU7gBESOcn\nLRmIV8vOy9+Lp8AbI0TQ29EZMe3LctqcIjyHSBeYJB2ZeeRzvgr9nT/2PXk5\nPmsZAAeqrM/mE9tiDLyV/lPgj2smJBG8a/uyKvUSyCLodct1tHoP7E88cuJO\nZ0BCnUrWcEhI6B4xM/M6H1AAwcdlBGqjcmtV4DkhEdBDOI1ikPbtQf2WUE2m\nQ7TgHdgJwiKbiscc/7sE6JoDCdnx5VANI/2Vz/JLFrlkx3WBXMw8p2ThwjBN\n1zdSwPbzx8HewuF5hfq8x2EiegGUMu6xcIKUakIBjtUAE2FkZv/joGAwTL6f\nhdlI\r\n=6gLa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCzRjtQZCwtbO+V8loO4X8ZcxVPepTiLwiv/jZsBkMqjgIgRZtutJX1iUvscwGS1N4Dqv4PAQTh/smykHicVimLRwg="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.0.0-alpha.1_1615185683418_0.8587027915836163"},"_hasShrinkwrap":false},"2.0.0-alpha.2":{"name":"hasura-cli","version":"2.0.0-alpha.2","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![.nvmrc](https://img.shields.io/badge/.nvmrc-12-00e676.svg?style=flat-square&labelColor=black)](./.nvmrc)\n[![yarn:required](https://img.shields.io/badge/yarn-required-aeea00.svg?style=flat-square&labelColor=black)](https://yarnpkg.com/en/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. v1.3.3 as of writing), while `beta` and `alpha`, respectively beta version(e.g. v1.3.4-beta.3 as of writing) and alpha version(e.g. v1.4.0-alpha.2 as of writing).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag\nnpm install --save-dev hasura-cli@latest\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# or specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version regardless of tag\nnpm install --save-dev hasura-cli\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"01f76b91a5e42c1ede053b609a57e3fa777ae5ba","_id":"hasura-cli@2.0.0-alpha.2","_nodeVersion":"12.19.1","_npmVersion":"6.14.9","dist":{"integrity":"sha512-2deix+NcCgubLredYnBOLMEfcKwpWF1kuRmsiu5bvCGqFiqdAZJYud4BCKovUrheSYY7djRlS4/OAmXH7mmH3Q==","shasum":"f210d74d6d1258b428478353e69b4e6f24c5d5cf","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.0.0-alpha.2.tgz","fileCount":10,"unpackedSize":21359,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgRctqCRA9TVsSAnZWagAAW50QAIkfJvLmUkgjhNigEHuv\nq1qUoqDBDcN6sbhfBxlnLe8pXXjf9w+yPNWpPl4nmMUEehOMsZ2qxk6fTkfD\nCDqFsEI6cHgcIlqs8RV3O6ufdgG9EbCNpuwyGXbF5SvILfkHLnBqPNQMXwdu\n7UDS7LckoGbgyUKJK/HqMHkBCHux8DfY41n5eyBMi34X4s5H86uajShUVkVI\n6qr/CPzSCjyYd8wHF/H2cjwv2O5iFESbcKBwDj3rz2Usz68JLwTgJWh2Q0yl\ncP4EHJV1o6pANsmZBrzAoLwsJmad/tlf3hKKTaVbMRB8uZY1QribqwtIUY9l\nNj5/XR6hT/MCe1qFN4CyGK4EsdLvOC6a2aa3WM1rhP+XFPzO1u58HYLBc60s\nB92RcSxIRtrvEjdxl/XGSgP3BsNYgg2kegkHBB2kOv+aR/iuFpg75PyMszn1\nm8l/QTRGLbRfmPtQoT9NR8QK8ZMjxiV+u9LsGqX9QeGddLxq6QY5xQ7OpIrE\nyqrBLziimyLCHWXwX0GHZCVv3vWvli31HE/tpzD4uClWyFsi3fZBmDumV1sE\nkaQ2kxAxSFpToKPI+GExrm5i5YPNOJKKmgK3wdzDnYi1Hj8Zrnx+gBTLNiaG\nSNntrp57Cgc4OWx2KWbfc+6IyFCg26/e6hiWAVH5yHtPo4GJ6KdSlLuKBNxq\n32n0\r\n=vyq/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFHfC5CQwD62RU1aogGWNmeEEXR7+BIvas7QvPIRYg46AiA8xE0x2ihW0hwPWMse2T7kDYs/9xFij0o4Es54MdysDg=="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.0.0-alpha.2_1615186794074_0.13028690543217292"},"_hasShrinkwrap":false},"2.0.0-alpha.3":{"name":"hasura-cli","version":"2.0.0-alpha.3","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![.nvmrc](https://img.shields.io/badge/.nvmrc-12-00e676.svg?style=flat-square&labelColor=black)](./.nvmrc)\n[![yarn:required](https://img.shields.io/badge/yarn-required-aeea00.svg?style=flat-square&labelColor=black)](https://yarnpkg.com/en/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. v1.3.3 as of writing), while `beta` and `alpha`, respectively beta version(e.g. v1.3.4-beta.3 as of writing) and alpha version(e.g. v1.4.0-alpha.2 as of writing).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag\nnpm install --save-dev hasura-cli@latest\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# or specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version regardless of tag\nnpm install --save-dev hasura-cli\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"55e83a0cb9fb249cf834b0674d139746a7e70f29","_id":"hasura-cli@2.0.0-alpha.3","_nodeVersion":"12.19.1","_npmVersion":"6.14.9","dist":{"integrity":"sha512-WK+poCj65UT/tH4podMZnLJeK6xWRB3vbHCXqTB8kqKLT9ptA6KB9zzP/F2NG+6xkg4IShjRo6E/Ta3ZK2rD7w==","shasum":"db149c5f62758a3ef72670c06572f3446a2f2c9c","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.0.0-alpha.3.tgz","fileCount":10,"unpackedSize":21359,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgRd3rCRA9TVsSAnZWagAAYIoP/1oDuplr0qRJebzCwk2M\nUv+XK5qaUVBqFYcX/tEeAp2zBTnFjxIFbT/92g3v9Ya8L0mGrPbZYoXqA140\nn2iQN2zttkjQTo/Opdlka7XsLH3NplvD+dSCnpEa72zqMXCFYHAwA+9U4N+3\nD5hMjo+CfBCShLxfDGFs55b83RF1gTIcCxfU+J2K9xTpAI9YnT7TMHgoSRyb\nLFzoCXoG+v+LetaFLsBhu9eIq7iW5SqtmJnAepy5pNrvkT2UAIsOxDNhV9/F\nUu7V62obRHf7Ty8Zn4r0UqmHLR8EblIcTe4KRqlb4rBNNAAsWrk8fze4gxVd\nZVotQv6rFHg422wgpyF6LdzhjMTFYADRPx2S2+Mtelqv4Cw6g243mO90x982\n8ODlyJkdO5oHnqMK25TaSg/nqrpJCryb18cngnd6gHX7GR+gby23h8aLdzx2\n2q4LLUw/mcAw8I0VdxNECzNyMVMpGlo7cqbT/JCYcDSCIyJenVhdgBrASEA1\n3c/lHHLvrA6Y5vcG6rxgXFr6LuFn3FDv8ID59X42XynGd1G2mqF69JG4QURn\ntopUJH9Vsij4qZREsC7MPzhhDTTO0HZ6l2R9/CJewCRt1EuMafeVgZV4QCcc\nnv/NdrSzftgWXa9rO5b/lsFWrjMY9LfC4w73GLhsiea7Sq52qqKcvW90iXos\nNtTA\r\n=wEGM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHXPB+LKU/c3FUWdq4VOYoVH+k4glvFllzKzpq6znfKTAiB5RI6840jHHIgEMYx6bEzEihE//+aYK4kQzgLTK4f2Wg=="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.0.0-alpha.3_1615191531146_0.02975211846340997"},"_hasShrinkwrap":false},"2.0.0-alpha.4":{"name":"hasura-cli","version":"2.0.0-alpha.4","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^4.1.2","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^24.8.0","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^24.1.0","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![.nvmrc](https://img.shields.io/badge/.nvmrc-12-00e676.svg?style=flat-square&labelColor=black)](./.nvmrc)\n[![yarn:required](https://img.shields.io/badge/yarn-required-aeea00.svg?style=flat-square&labelColor=black)](https://yarnpkg.com/en/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. v1.3.3 as of writing), while `beta` and `alpha`, respectively beta version(e.g. v1.3.4-beta.3 as of writing) and alpha version(e.g. v1.4.0-alpha.2 as of writing).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag\nnpm install --save-dev hasura-cli@latest\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# or specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version regardless of tag\nnpm install --save-dev hasura-cli\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"5a0532dc945916b4506cc3ceb093213a00b7d5d2","_id":"hasura-cli@2.0.0-alpha.4","_nodeVersion":"12.19.1","_npmVersion":"6.14.9","dist":{"integrity":"sha512-SAM5KahEDqpAMEW/foW3FoosP6kQVmJ5U2VXkPuiUyEI8/6FkfZD6ujWvcqxJas66X8NacfFDFVSTLeKExYzCA==","shasum":"e3a216103bb1f32954a39e612cf7479bc4129111","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.0.0-alpha.4.tgz","fileCount":10,"unpackedSize":21400,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgSZCXCRA9TVsSAnZWagAAsSMP/ia1cKbddYato2ghA2kw\n2q1VlmEykLj/UKABVjCtnWYKJRFb/E9MUi66dALJpIj/oBfHfhEIm4IeX1AH\nF8Uxd+PgCInx+IBnWBW80kGcIv00Zr4D0eN6hLTKlGjWGnh9VqIFU7uml3WE\nwZoEiXUGaweLtp84XgHJ8jT8yqu15uEQRfL0PbIzxeRAhaJiSEo43G6kf5VS\nxwjdcmUgMC6SOw58qCG30A8KuBMbwMbvMNfbCUD4mpWoY2RhGSEny2E+Av9k\nMr9kE0sxAIRdQZKm54Q4CrgYVXh4MuveWtTCCDmw1KeVzgqRX4mraEDzrCl0\ncdXAUZCYwtDtQYDuVoDEgxkDTHpEhz71wbA7m81mVY76LXVoLHXxwS6Up8ID\n/oj1cW4r64e3RGd0PEsb1MRu8Q8CxHvEsMWrRtw4rpGiTXC20Hf8xvkUatyC\nQhrgz80U6Q8vFXmOSpBsn1RIHFEUPtpr4/RoRmOIy0oiGj2jIuMj08jgJaZw\n8R4ARuA3D+eg7qBNCZYTuRNinlDBQPEz5uiCsfI8gvrSYfWCr+IEVXCTwxCI\nMRhN++eRel3uwBFitMs8m6Y45a5iN+/RQXnxD6+iaZTmgS1hptBgBnWjkJZ/\n7JA2+q5cIuXEsQtaFb+VLQT+8DGc+ytvi1sWcCINmEgcf9kfyJUbB1gB4jZV\nvdG+\r\n=Fhb+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFSFZIAZLkxWxzutkeVo1xDEBO39wJjLzGMFlYRwHr50AiEAzC1MFcySLy4FDw2cjUJ6fEu4E3DY8P2NYGUfdWYngGQ="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.0.0-alpha.4_1615433878811_0.9323682032046448"},"_hasShrinkwrap":false},"2.0.0-alpha.5":{"name":"hasura-cli","version":"2.0.0-alpha.5","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![.nvmrc](https://img.shields.io/badge/.nvmrc-12-00e676.svg?style=flat-square&labelColor=black)](./.nvmrc)\n[![yarn:required](https://img.shields.io/badge/yarn-required-aeea00.svg?style=flat-square&labelColor=black)](https://yarnpkg.com/en/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. v1.3.3 as of writing), while `beta` and `alpha`, respectively beta version(e.g. v1.3.4-beta.3 as of writing) and alpha version(e.g. v1.4.0-alpha.2 as of writing).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag\nnpm install --save-dev hasura-cli@latest\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# or specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version regardless of tag\nnpm install --save-dev hasura-cli\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"435f80217b2c71a3aabf28969e28205991368eda","_id":"hasura-cli@2.0.0-alpha.5","_nodeVersion":"12.19.1","_npmVersion":"6.14.9","dist":{"integrity":"sha512-nTxfpsTCZ0GyyziZw+F3wDJyCSBq89BDqQrysFx0GP/Ep3BHHLTGjTLmgMs8tzCqEVHW7M8AzG6kLVYdz7yvGA==","shasum":"fe4012bdaa06a73f2a6b1178771cf1529de724b5","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.0.0-alpha.5.tgz","fileCount":10,"unpackedSize":21530,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgV017CRA9TVsSAnZWagAAu7wP/j46LDxEF0ytua6GIqOB\nuj5Zr6dnRdpN6iD4+gvGm0gS9Mcw4/gdAeGydUhreRfICqcyQBaDpGHC3+di\nG0eKPcjSh1pwlr7Y6I54NVrMHwmIjdquFvvIoxKZjz1fRHFMCIVjQ+9ydWfC\nsCFc7GTbfnQMTtBfJ0ggKvkUTkNZXp0zU+lgXl121oiXS2BkQNQvbOppndB1\nNi9Y6g5c+YCh61Db/h1RgiW4UZQB7/BKKWE3eyitjpmaKBUNySuQSHkbBj5d\nYJ4KjWG+DBRQQB/3bE0gKiceph8BhKbvYgY9HgHVlYHJMPJav7Aq7gs6zB/j\n/q+B0pmE+xGqhbaTgH94WzUVviOkoHmmW+bB5OdW/sxaAAuQbSj3fHWx9AGg\n0JCUS7bOGFsRLNcvJCGfchJZ0Ue1ZTwIgmGSReVt4rscbJ/oUQMOBSIR+tRW\nz+/stRQrf0wZnRGT/E2OWbr5zKuEojmoB1mywxElQDwQIMO/XeQ9EMCKi9mz\nrYhiy16jHG/+xqANLVgMyDiGE6CDbvpoLfEeHm9SFQfVab3ffJooLxImOsGF\nHpPLMC1CwvkIhaLWMEWqxCkhIGMytmy5S84CE91qkNjqz/t1wr0EIRNC9w0B\nqCxTxf8kSp3hShk9ofMNjOj/Dk9RfxcfLGGsHC7DqPF3ZMgzyvYJu8K6I2of\nDs3M\r\n=9W5k\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSPHPhPUTNLYaGGrTZeR3Wk6FqR5L/oAMgc5u+qQ+nQAIgTuXsMhAdKSS7n9KqNxux9pDaNpMjQZjIWr5ZSLakke0="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.0.0-alpha.5_1616334202352_0.5730679082874304"},"_hasShrinkwrap":false},"2.0.0-alpha.6":{"name":"hasura-cli","version":"2.0.0-alpha.6","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"47dc4993681f5b7d459f440fb310250cbb1d4b94","_id":"hasura-cli@2.0.0-alpha.6","_nodeVersion":"12.19.1","_npmVersion":"6.14.9","dist":{"integrity":"sha512-Ouzil+alH43C8DsXQMwvfevMaN/dfWONo91iSI9k2UQ/04mixf+VabGNL1vawJXNE24qAXRQMC2cxXHaReXlIQ==","shasum":"b716606af3d35c1f619006b734280d8d86b1689a","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.0.0-alpha.6.tgz","fileCount":10,"unpackedSize":22064,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgZtKOCRA9TVsSAnZWagAAN3YP/j6h+j8xukcGgwWJOmIT\nEOehd4STSf5msIKi3aBeO04flcKudjLG5FviLc7NqRUS0tnn42D44v8zXWbX\n9J+3DMB99Yn/YrZUpyolsvlIw4UNmjq2GiF7cLb8XbZwvTn9hyGjumIQ1SzP\n09qr0H00CL62PjYbmDmp4AtpFNtAyRC9IkEaMDRiXOEEbC+oCHZrbHPrurFI\nxlCV1ggGjkxO3hT+V4bQG/1mhI4/HE95vVtTSwZcqBuUPJWusHZoyzoO2cZo\nqdziFg2IV2qcjHi7IW1uyOBYIUSaIhj96jQviJXOcXOJ3cDsVz1Il9Pamd6y\ne87nbTRhu4wuhOE/cVOvJHgPX93tLkE+0U/Ogxg0DhcnAQ8sIGKLgXYnLh0O\nE41Ot3gWu5jsQXPkaXqc75P/OM7oDsLZ1B5EySj0khX6ip7wGEe7KSdJZ5fo\nHp0U6/piiUZ/oKAUP2wtn3KWB/pKUMQQGPDbP/Q/QTH3nbF3gqmFrgnIskhe\nMUtUfyIaWAf9uqhR+JyHRmseXbZnHX4oUpTOAk1x9MEDJnfMrHrYdi+2MrPs\ns3Uhb/MemuwtBEntThcgDBjpTikgO1Kr9hoDdWxL7x9RRFF6xApjuwUoJxSQ\n2bur/Au0PS82zuY4zHelLkKre+3Is4inyCZJSO4K6loXQRrCDGXVSyoIQhSJ\nc5R5\r\n=IbHQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGiNtBl3DrhTXHE5xhmFRE/ucpG8ngjX2diDNU6nuM/XAiEAseN58Ub1IJibPi/uvlqO52kFZ3rg6wkBbId1gG8TrdA="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.0.0-alpha.6_1617351309811_0.9061894579182324"},"_hasShrinkwrap":false},"2.0.0-alpha.7":{"name":"hasura-cli","version":"2.0.0-alpha.7","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"23dfd2c7980f4756d5d8e163a24521ecb4561238","_id":"hasura-cli@2.0.0-alpha.7","_nodeVersion":"12.19.1","_npmVersion":"6.14.9","dist":{"integrity":"sha512-F0QuTEX3wol/v4s+xB1HHfjNAQ9t9dEmreEkSflA71NZdLETQb/C5l85+LVfqORb5GBdEmZrIFuS+8gpq4FgSg==","shasum":"e0c1102b31598b01b36584fc36a190a64a5b76fb","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.0.0-alpha.7.tgz","fileCount":10,"unpackedSize":22064,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgbHNgCRA9TVsSAnZWagAAiRcP/ig2bQbNtHub0M/5BCQ6\nNr6JKcvPpCn5Jcu+UJ+aiLlW0G63EcaF8UK3qw4wvF/eHU9iZPaW2L9Xw4av\nGDwgygUOR00O3b+adnP/g3agZmmzYWwKyNxohLZhGTqGtQcFHpoz7EUlZOAn\nzX6BeRqegUFFGqDy0jZfUyhBmOghTCTadKpCoZ32K08C4m+FhYs2WtGroJre\nTcQ3o9EGluZp/Na1NggqQthA+ufMLeYquqQ6Lx29/9oDjJH8WfT6DqXnFLCA\nisyBmGaoNpbQ/jaTRZ7SqdQSfHFJzi1mNaz3/8xb0OR1iEwMatYeLdeRroJJ\n2n2GLQM/9H9/uhFKlyjHFPEmfXfLx8O97nSiRikynMD8P1MN6hrvjsaUbTeC\npQWj8xfLMoKow6kslumV7qIFOFijJImC4Gn4+ltQNr1OGdOASuwTHCB8nH+w\n0l3H2VsGJAxphqg/zI2F1ld2xirtj5ikfh9Kvl1UMAJH6GQyI8z814cDZDgq\ni3v0mysg71kgXiZiAS4hy606gF7lKAQVbcP00rxNk9ovaHg7bhzS3NbwQ6t2\nK/Q+e2kcgXppMv53bd5BLUi1L+FWPY4Ct4lEfqyLj5WRH/VF3oKb2uK6JF6H\naiMpcGNyzLEARoZxHUHQ1Q8iHAnCdPGCPm+bpNoF3zHYaXxf732kwxs6Kz/k\nlDuW\r\n=OVFV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCNabpAV9WCO6pkplcAIRUR3CtF9wBIUucClW3uDGcBVQIgDMf92mbEOr4QFN8tBkxcbre4glaKV+GKEAW0Y+gFKv4="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.0.0-alpha.7_1617720160257_0.4881001275941186"},"_hasShrinkwrap":false},"2.0.0-alpha.8":{"name":"hasura-cli","version":"2.0.0-alpha.8","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"67c4f56698c2f4b5723b0af94206aee327d6c4e2","_id":"hasura-cli@2.0.0-alpha.8","_nodeVersion":"12.19.1","_npmVersion":"6.14.9","dist":{"integrity":"sha512-w1v5k7jkIsOhqidC2HqZNyRxXKZTnxvVrqn3RmgKuufXn6EfJGActaBpWdiF/vyJQvK8FHIpIiPl6zzXqzRR3A==","shasum":"86610f2a76a26001bd22f4d22c4ff424f339c219","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.0.0-alpha.8.tgz","fileCount":10,"unpackedSize":22064,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgkmEWCRA9TVsSAnZWagAA2x4P/ik74e3515Ggyj6RHvx3\nL6s5PfILtHRXO9aE7+jBDReAWwwTSKxDdR/SR/zB/yn+CTA35ZQuNoP19Z4J\ntM3dROe5ygGh7jNiSv9pY6K0SCMn+ZDU/rgL5wuvbA94zTG+KVY2s36apmn4\n0oMaqUOylqLBFAO81Qf7kNjSL08EXgedW1fQjeJHWQuqHzRip68rKaFFXIaY\nwR9t7PiLpTL+yzgkx5Dn2u7xw6+JzjoQA42FivVOumKWrpm0u7n8cDrL8IpW\nuHCBKfVaFw6ddswtAWhqWaoSTyBOj2I1GNd2vqetk5E0ODp24ENf/dhgVYJd\n11+FFMbIkylH2FKtkPkGuoSezmp8vnEBcilDVXbGdDjAUam1xwTs9/pWWP+9\n9pUugpmo3gz8R8utJxrO3JGgWQBD243yP2dwpliIxkYaiSJkKE/9jlLvitXs\nepvmOYkKnjzv3APDOoYr2zxc1DxSXzBC2puaNm/4vyjBKJDTWMuHrQj+epcx\nhB1Thwop9pOS325Xpq2kRqdNVU2VtkR40kGsoduyx209nrvMTKAiySSZXblQ\ncBwgPXbyXtZZJHFiHmnxY8Iz9d1zN+aZFrPJV0bCSP8ASs/lHYcIBX05CNJ5\nrpom7bFGdOARbqdU8xELGz322AEBirRdijG3bqjo5aqAH7cyDY23+eDH8Wdu\ntoFW\r\n=Aeqx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCk2wRPiR6PWLKtjkr6ei/SE+81tVqJ1cXgVFc88zq1xAIgCgWY3WMtQuWcw1RJr7OnDLbY1eHHMuqdnqoakf+CJ+A="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.0.0-alpha.8_1620205846128_0.7584325248873673"},"_hasShrinkwrap":false},"2.0.0-alpha.9":{"name":"hasura-cli","version":"2.0.0-alpha.9","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"dbe48d6f015fcb61b021a896a2d51ce33855eb42","_id":"hasura-cli@2.0.0-alpha.9","_nodeVersion":"12.19.1","_npmVersion":"6.14.9","dist":{"integrity":"sha512-ojvSDPx2Q7EQkOB2DNpFR+R+dpmU0aI0c2fYZr3J52r9wdX5D3NV9RKWuxAeAHhEqiFRdlT1XKNoDwAP7UhLYw==","shasum":"41eea748b1584009472050f2e9f565e4d4dd4154","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.0.0-alpha.9.tgz","fileCount":10,"unpackedSize":22064,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgkmTSCRA9TVsSAnZWagAAn20P/jhphnEqFYkH2pbkT7v1\nMywmanleSMHD7HFYfMnOgKMWHDUZvq6DfDS0v5lYwNs8/jESyJoe6s2gVP6b\nTanc7HpbPAjlC2RlntGaHsZBQmujOXV15mJnLOx+r3bNzwxEC5brgQIBvVUW\nhWNXHqsX5Xsg9XER9IH6kbNS4PeLoJow22Ef3Fmp1MeYzl8Az0F8C87R8+qZ\nULVCUuyrSb+JOhSWTC+00oyEuOUyz6We2v5pqoI+bOeoDitJzhh+B1XEMCXf\nYjqmy3NfLqZ3Fon7pz+A60wCLe6o5y2ADlsMD9uBnAI1ifMf2CYoY5nzrDlF\nPniskzyHXuM3rUlglnoONWo4N38MtzNp/gIjQh2Swj9FQRP2WWx2JOCT0QJB\nVR8b5WQkYRwG8ftfqkfi2RNAogH1cSu6wGlg/UCMAZkOWpKnvra5fKcsfwhq\nPKzXL5PEsnvtxIm309LBw2hJ7k9uFyyd9CVIuc5WN1bHrHTJkCQ1ZyaTUT0G\nu4JFIdLnpouAs/y7VHtYWxC9NFMcieNEkhUze9MdDMBH6x2PrryrTGtZaOtm\nLXoX4vuOV6FbwX99IpmgWMmdItNjf8mQjO7OH0dICYmGVGQwAWcaDEVIlo9q\nhbrzbTYqyI3CukVY7WwmUyzkVuqMvIzZDhLFIWM4DvPBBxhVfR64TK6LzDPF\n2+cI\r\n=N6x7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH83hFn6fvTJcxrJy9HcEwxdkEsoM2pFIDSbr24HT2p6AiEA2PcFxBcCbXKQBLpkhwG6mQ0gtxNNClVf4QiQxYgr4sM="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.0.0-alpha.9_1620206802158_0.9048047785607276"},"_hasShrinkwrap":false},"2.0.0-alpha.10":{"name":"hasura-cli","version":"2.0.0-alpha.10","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":">=1","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.0.0-pre.43","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"1599ae76e7d3cc53a0ad5ea66e50ff2a4c4474b3","_id":"hasura-cli@2.0.0-alpha.10","_nodeVersion":"12.19.1","_npmVersion":"6.14.9","dist":{"integrity":"sha512-QnBSGgR5RamEoXfScQj+uY69HW94U5F8lhSJNZhaZ52Po+LwcZEvSaCRJ7jRK5XGyYnvCeM13dlwmdeCx9ngcw==","shasum":"17f91d5944931314484d9e07ea56fe412e695f46","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.0.0-alpha.10.tgz","fileCount":10,"unpackedSize":22065,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgkmiwCRA9TVsSAnZWagAA1rkP/2WWuIH2Ld3GyeOcL2ma\nrJK0USUFVVRUsetrTPGyMeyPry8Dfodw9AmjwANixNJ2fnstsFsZgmND1g+7\nbViYUTBM9KhS18NTCHBoRaqh2pCMQ8GAnOvQa2+mb+Lj3ejYMiAQEPF5J8ht\n6CaqFnvBAKa62KoE66RIatCYr/IVc7jcX9+bKRqD9jgD0VUXHn6sIrgo4NOx\nwYDABppVaNL9jCNjTbFHH5YvPqKLtdJdgjqGpaakATFRBCrmKA05OULyoV8M\nMBY0uKwPLWY8vyke0TT/Yj1eVYLHlsbVW+n/jfqcnLdWVSKG67RnVdfx0cQd\noYZMv/Q5eb9hPFvzfzXt8pMuWXPuvWY9oEoB9fwOdlFOcGHuj9KrL+oTTlyE\nzNCPtmItvwVmBf7Q3AypaEIgS1wSxQlcW0a455geOq8pFJV4MV6R/NtYUbK+\ntPAa3Qh4OG+U6MTkp8bFk/WwNy66VkkbDf9tsXOgyUhVNsLsUUJcJ2BUvbFh\nmr2ZHPjvmIBJCtpjKFT3Exx0QpQn/u+VKXO+Rba9kegXx3RjPjmCU2yDDapC\n43lIG+7jxRDRFAn4Lgu9aCrLqf4NY4VJGHkEF7mZNd/zP5i6KcNIkke+3UCK\nchawVXb5OcQ2nugV8Lq2bbDLGC2M0A8WYo+fsIQYRa2K2qOmV7pKBCx3nHJR\nho8o\r\n=zhoa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDjLyx7FBKO64sFI1llf2AfsW4gIb5oAOby9zJI5tGLBAiEA6PtITvMNoxVtWwOWRvqEtIFnIQKWckZBdShjwzMl01o="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.0.0-alpha.10_1620207792394_0.24245038412176578"},"_hasShrinkwrap":false},"2.0.0-alpha.11":{"name":"hasura-cli","version":"2.0.0-alpha.11","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^6.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"75f68323a8ab2182572776ff34f415e49752136b","_id":"hasura-cli@2.0.0-alpha.11","_nodeVersion":"12.19.1","_npmVersion":"6.14.9","dist":{"integrity":"sha512-nLPkDCweYcbfdzN0fDbZQ3wQHjtwVHcAimdIHmwq75mBDx9eqlcYukXBE9MP0yN3/8QcanbiZyFwyCFHEYflHQ==","shasum":"e7e1928957fe25b4b1baec87ed9b9a3783610c5b","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.0.0-alpha.11.tgz","fileCount":10,"unpackedSize":22092,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgtje2CRA9TVsSAnZWagAAkoAP/1+RYXwTxRA+ibJ20UIX\npm/Iu5Fjw5yzzuKBwxwi2FJMYrjkGstcry7n8/E/tASn5M9BrmGJ58ujNsh5\nKhL58gt2FkShHgkLnN8yMBUmV4xaVjT92wiQmJwbscIaleMM0/6PBgu6DEbP\nzNHnhZIxIqGasKbfud1umS/RVxb0a6FqC60cvDrpKLzXeGUARBROE+Ww9g99\nTpmuu/SOEEJlsJymfdH+4ZUmoBFp5EANV2zHBT8dATpwjtykFA2b0b5cw30J\nScOAr9L2fR/re7AQeLtE6sUruofRu0Ah6v80NhygReXK1NqTG1LKXSvapqu7\nLwFFAL1eymtf1MdteRnLf0CQb2MQT/QyMhMWxMHG7Xjhmf4w3B4F+ZUdKBkv\nnoLAPgrYVIiYS9IPQEGev60nfGO9lfqIBhqj1HCFNLSJ9ImqC6e9mweTdmit\n7C+gvQT2ZqSQRq23wHapWm324UdeSV4TjpxjROSBKDq8ZT5PvA7fDocVdiHV\nH1DFpWNLZ8jItbX0GIucaUdH45knvCsW+yjxIQBlBo9ibQOvQEg5kErHELPt\nv36D8pjjQxwUg1EjP3bhA3o8/BPjNXLRhmgvP2EFU8S4LyN6M+25P6VBedzw\nfmeIaZicgxSLG3qyWgYn7BqFskCaImeX6WbphDj10YEqAzQi09I8XIrS3Cr0\nAS+3\r\n=UWjN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEpCyhz1NgmS6KDlv9cuSwjEfOmrdmpFcJJyh4tu5pcmAiEAlePzJGPw+xrapIC3IVyzQvklm75B0y9ApwZU57qeQug="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.0.0-alpha.11_1622554549796_0.0701432201497123"},"_hasShrinkwrap":false},"2.0.0-beta.1":{"name":"hasura-cli","version":"2.0.0-beta.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^6.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"d2be1ca660e1892b904e3b82c20b144026d8d93c","_id":"hasura-cli@2.0.0-beta.1","_nodeVersion":"12.19.1","_npmVersion":"6.14.9","dist":{"integrity":"sha512-SetnuMVwlHXj//NpwOdQq37SFJJ3oVmzp7DtOny/X/G2Kza3mff8oNXZ8GvBUfpwkV0Gac3T6H5qlSvztk5p+w==","shasum":"cfa76e85010af1c48992365672c110d7dc74f444","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.0.0-beta.1.tgz","fileCount":10,"unpackedSize":22090,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJguI2iCRA9TVsSAnZWagAAVkEP/i9xeXPJgKsc+PePJCWn\noCT8jVXfKyjWn9ttpSyvYq8bne0Spn4prRKGFU6/FkdulRUyehxVxEzV6r9v\njaTjRXKoU/nee5iEQQcYEamnDLJzqOsST7tSOackBWUyYMWntflKdjOAsSpI\nZS5HSVf103dBQP3Eh+Wf/BjgCqPFwv8/LfDoHKfpSONWE1ZEonjkxXFSbQFq\nfuX+pNcR8CuXcDFeAFSdrIosBcIK06eM/Ayx5dNSox4/s3CuPyT/RQ0ezgFq\niXxSDLno2Vmi9mD9vvJV7NbrlgZDC0WrQsB8IWnTceKfutFLw7qO83WZYOY+\nHHxBXhLsa4EuaVobcQopN5fNbolIxz+f9O/dMkYZqQdfdffo2lLc0N5N931P\n/8rRkqwjl9C5jaM9dar6PboQBo/7CYDL4cHwodDVR3lkak9KTUEi0sV0b62F\ne09m8pVTfLcYmXmjB2S6TIpIUtullh/O8FfSiKeuvYpb7mQQcOQ/0r0Uvhm6\nw06e6ku7flYUuqF4xaLAvgo/uUQYt3A6U12xJkyYApRx+6zZ8ZYSo1iXrSBu\nXF93rwajw0bI9K2rB5bWJttYUEwvOoGP1nAPcx9d6TOiTeHTqsi9YQMPewBn\naSiXizGl/46Aul3cxLYogj3x7BzI3GtdW3kZRRVlv4/IFJwU+rjUs7NzrstP\n++tx\r\n=+l1e\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA/zVwGtxMqrKpoSrFszG4q2FP+AF8VnX6BZqTmeF+tJAiBdn7oIr7+iQgtNm0LTk0RgLA4Fc70mKcfqAM5R0R685A=="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.0.0-beta.1_1622707618486_0.016370613895599018"},"_hasShrinkwrap":false},"2.0.0-beta.2":{"name":"hasura-cli","version":"2.0.0-beta.2","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js","git add"],"*.ts":["yarn format:ts","git add"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^6.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"e2c4eee6dec5dc339bb26812664e2aecb863608c","_id":"hasura-cli@2.0.0-beta.2","_nodeVersion":"12.19.1","_npmVersion":"6.14.9","dist":{"integrity":"sha512-AUTzR5S4EkvCsdVgOc1v1i2KPl6FuHWGRURrEscdarIRMQelrOjarp5imZfyZTS16mTdbxS3aA/hbrNRMMH+dg==","shasum":"dfaa9d16de23a254cc29abf481c544b2a648d9d3","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.0.0-beta.2.tgz","fileCount":10,"unpackedSize":22090,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg0X0oCRA9TVsSAnZWagAA07YP/08Ftzrlt2Fu+adXoYYE\nrrHAQVxgaOvqkr6WMD2FJHejEfuPD7CtS+oefmRxdjFmwLfS2kgh8SiaZj/l\n16iJ+xb4r4l43d2ghx0BGYz/1xwMCy9Bpx6fsONf3IWme5jcdoRdREL5tPTw\nC8thhzE8cRODJUl9hxR69CAaUwtqQX/4FMyHW1nJfPuZCh9TO8rqOyJpeJz5\nqwEfBrEq0dQhAqilZqB+ekXL1F8UU3GrXuvcqH+S6gOMy2QcdJpAgRMGh4F0\nfZNU1nnQqabupYPC1hVdcsi8EW/RnkiXkiJ8sYV+fUGbSrPW3hCtNIM0q0bK\ndf2VZrqKY2iYrx5m16jk8TcRTb7wPmryetLRrAjKU4ou+4SH7Afvh8icfWQI\ndeuQra5VT61SfMf494RdPbpSfydmDAjCnTS3sbOpsWB8N2pasnkTm1zIVRCv\nKsvQJPsqXvuNTHcRi8PrLxNKMHgpHRbpUFdPWtuMkqj3UZmnXRwvmEDRe9ES\nL8uy5Wc5dNZLDso1xchPWRKygOcwq/PMhg7Vt5FmlQfGguy3mSU77e168Iin\nL5GCeaz+OLogQa/L92y0lu8irimwYTLNwO9gdxeCQK+xNp0Xp3W2L6Ukwjd3\n7kmAOUL8nPy/Hs7Vr8XUEQ0k0UpCDljxKuw9ZD+Cm6GLrYCi91WKYq0G0kKa\noDaL\r\n=P/YO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCoiiFyP6aGNANRKlkF9FE6kV//zSt9qt5/u8UKCLYdBAIgfJcK7Oiy7t+7dgYh+IMBkQsOCmwVpZHXaH3c7iipiLc="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.0.0-beta.2_1624341799952_0.24394238025985038"},"_hasShrinkwrap":false},"2.0.0":{"name":"hasura-cli","version":"2.0.0","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^6.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.3","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^4.3.4","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"479adbb9fbd6b83785484b7ef4d55978ffd2eff1","_id":"hasura-cli@2.0.0","_nodeVersion":"16.4.0","_npmVersion":"7.18.1","dist":{"integrity":"sha512-GqFLLuDwu06eS4J+IgtwtiBW4/phuNGBtlBdLRLlx9esAUL1Mzmz4mQMTbhwjU7tYK5wDqrLJRQ91DTR69jzTg==","shasum":"0f6c5fb86f3a3c5f1f9017dc0bdacdf52d964360","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.0.0.tgz","fileCount":10,"unpackedSize":22049,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg1XD9CRA9TVsSAnZWagAAokUP/29tt/BzxpYW7DN0rUcn\nReNi8Z1vJGxICkd34S2eAgIWW6kxxDe7IIk9Gc+9ExVDQWjV/ODDRxiDXWD3\n15b+WTpXpehZYYaR/xfaIzuxSNQuw4tgpOecYixt9+2u8ln5PNZKSdNktTXv\nJ+m4bX8KeiQE9ThUv0lIoaYoteK4t+2b/TRNzna7J6wQPa871mtUFESKDGNX\nExJkFxomLMYTgMvWzYKcaTuhkO/o0ZXolslhsvCmQDSWmWaQi5/Duo6bfKO0\nnM0Jp9jQ8nHgEzmbEKkxreuCiOsmDD3wVNZAvRUkpOlyVrmxe9O1v0K7sAeb\nb2DHr996DzbzjEw1zTKJ6ttrkHohia/Vr3bxRbWrZyTWl98Iy1rZdVIfoqe8\nht1g/M8QaOSSRUOrmNFIxAbUJW2TJqIwR75NgVrZciAXljK49d6+trWgICg7\nRLQLK4k5QfD2S4qs44UCJgWC9TRD05Gw7cwug9U+x+Gu04Pqsjn6PBWGAXcO\nshZ61AZvkrraHL/PAqpMGpLarHcxEZ1pN45z0/NGEtf0Ws+61KhGiM1Ttv4g\nyXa3X5mu66a6SpgKR8TbYmkM4yJCBGAZUZpO1CewpxYz3UrrQsF077gg+iiL\nbHU9hZBteI9jrilCWV/af9UXRpP4BBHKELhPncZe/tWTzrT25sKAOz6bljVI\noRQ8\r\n=0dS/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFndywBGHRHw7IfoYcmu+cY+lXRdnL3wgkZhiIlurk0YAiEAiKWQ8AtV1PSz68B1fed4GOwIcR2UTwv4bp7L0V0DbKI="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.0.0_1624600828768_0.2789060773371217"},"_hasShrinkwrap":false},"2.0.1":{"name":"hasura-cli","version":"2.0.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^6.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.3","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^4.3.4","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"f005588da844a054cc56340adcb297cec8876700","_id":"hasura-cli@2.0.1","_nodeVersion":"16.4.0","_npmVersion":"7.18.1","dist":{"integrity":"sha512-bH/CVd8n3tE1YtyxKBaIq2VXE5KXXzYRiWChQA6cdGDukk7vZp6Lo/3a9/kNV6GW+dIHObBo93HbgIWM4IsUug==","shasum":"7fe704412cfd199094a8958afffbf3c777db1b0a","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.0.1.tgz","fileCount":10,"unpackedSize":22049,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg2G6QCRA9TVsSAnZWagAAd8UQAJZBHWzyUsl8K7AlF52W\n+ZLeoZQ35+WIFQ2hmiwSeCdWH3XwurE3xpr11tbMyuBNNku06d/lseU+e9dt\n/jVcZI56rm7Y2j8BNkIngv1TAgSnTTYYklep5RAX/NmL9jDJoRT6nGRC7Qmu\nSiY7AUaU2W+PibnqJvaZ1kwN3QskIm3zp65QIkwKJjtLaR8P2shcN46YqPod\nXHD2Ppxw7LWYRnQa/QAk4Q6vMihdqoxmZKTE7jL5fif9/MUOQYQM8fe00trI\nIsazfr8xyga2ua70NHeVUeL6Z5aI4MjcKtz9g8mY8xHKTtmLFB8MchM2kxW+\nw5UgU8JEs1xrHvhuNr5OS98ubMuxDUe2NiKnOfTM5KUTmRP6ePmf6cS4KDGr\nIHr4EBgV36gfvLJBgNQTVd7xXLEsUUKMED/FLDyUMBqUefaVrPnfOxpOdPF9\n+MRL50+LsTC5WhXCE4Eb7JN56Jzxex8aVW4Q/iCLlfWXMjy0nXTXItzEKp1O\nr0CeWUIYkxY3YzbT5tc/oNsghd041CDYoLnpiIJGBHW4XLe4phD7/eWdDMgI\nnDwoAdJ7qdb97pxup7QFQYq41T7nbQIvQWWAuDYwLyMKlAeOFAVJ/7h172If\nEGrn8giJ9B8i1gQIsI/Ix4zrre1yVfaZ0sUBDYNv9ZywAZADpNv4xk8EndzR\nVAV0\r\n=r7eX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD0/Bk+1sK9S7YL+p2Zxf+y9/aT250K0zBDFw0R0uOLtAIhAKjgiIA6cypN5udAu9gs9HC+0UmaJtkQJxXI7Yw1agO2"}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.0.1_1624796815479_0.5371993973812355"},"_hasShrinkwrap":false},"2.0.2":{"name":"hasura-cli","version":"2.0.2","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^6.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.3","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^4.3.5","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"8b5424f3f0ddbe7434047f1f5a5016cdb5183fa5","_id":"hasura-cli@2.0.2","_nodeVersion":"16.5.0","_npmVersion":"7.19.1","dist":{"integrity":"sha512-HQeJ+9BoJtoGmP4cba4E6GCgs6azCSINCYgvqIKq9i7J6ECvARf6csXjjnv+ziNH/KfQ+c3dZPRYyy8tWRyrKQ==","shasum":"8432bda4cc8dbd6dd0ccc98f4cb97742caced634","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.0.2.tgz","fileCount":10,"unpackedSize":22049,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg8QBdCRA9TVsSAnZWagAAgzgP/RSdt6OKxuYmuzVSQK9s\n58NfZgHy1ig44g4YRejf+CvAdYW8yklQHIJBUarkDmKOmhACorxdB77njnF4\nrgJmJNoYz+ayDbknRx7MtUcbU87QmWgh9bsaVgbZapku6y03vAByIcEyry56\nLKuAWlg5xHZ//ob0pSIvkjY166MIQm2kYzswjOE5gWvY8/2+KLMVSjZmkqlv\nuUJKd52BOCCvBCuRY3Uv7jEfLyguQKzcpS4copYgTrIcIoe7CNBbLdByJYpf\nVMU1/9rhdP9HoihZ2kvThtiuq23ywFgytpZqPnzzOcp98WmAqDf0YvW48/PO\nqh0iSvXe5qUNSXYvqmKxW8XOBtCohOfCOkhriIiJI1VvEIvyH42UGyC2jY2h\nMohByLdyiBFinr1dPJvZly9Jr3SPCLWVR07mZN7cQ2u8/CcXizag35sY2Psk\nFHNe9BU0Mb99BJXZjztBbJKpfFwpIs4Pua3Q6jE2vqZ/vCqMEjkJqucAd/Vy\nYfG3jw7qiW570IlQp+tkmoltORKEb8V5yEceHWsTKu3C+yHa2QFUTBD9rWZD\nY3bdsfX2NRuQWYxcauJDukOyVKBqCt2Xnf9NM+azBtOOEmeIyXw4Nh3tMRne\nafErDMQk3cjgRZWgc6RvKfYFOIojVjwqkVqEXxdrjnnxy6wEpv1awXxgn6Zg\nJbDH\r\n=TUcL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDGK5BFLKVtmk+3f/KWgggmbe4KxijnljBAEz+jGAujtQIgd5U/icJYm2yYy5dgr08rexm+p7VmObaRrLXycIJg4oU="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.0.2_1626407005606_0.843896957850127"},"_hasShrinkwrap":false},"2.0.3":{"name":"hasura-cli","version":"2.0.3","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^6.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.3","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^4.3.5","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"e97f00d23e18e229371b76694648b7f1544eb1a7","_id":"hasura-cli@2.0.3","_nodeVersion":"16.5.0","_npmVersion":"7.19.1","dist":{"integrity":"sha512-OxPPv8HBBf0o5p2EqgAgn1XX2VJ5U2nPOkeWD3Y+YhG0kRzV0rJsn5/yXcPoR+5L0cOZkUVsMzgOUd0El5n8tA==","shasum":"f2c4432b89c70ab7a1fdcc2687ab942466a67032","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.0.3.tgz","fileCount":10,"unpackedSize":22049,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg+24DCRA9TVsSAnZWagAA78UP+wWzrTB5O7+icQxMJRHn\njrkDUo80bkNupzjKfoOLgpVls8BnLKrk2s3wMdg54xFLKQqHcCgFWwpYSoW9\nZdeHw+ISf5U6eXpnYU1Oy6Mnwr2+GJDijQ5nLdnwDIRAsoKRS8/pyipobCpn\neB8zUvvLt5tGCsk4NvraNKJwrgvRjyOH9qtEj7gbex4p8coTAllwBU5+jBMZ\n9lBruFSYQeRrd7CsvbndlnhWc0GN5TzDj18q9avizgpA6irh+0sCLpuSj6NH\nNUNj/MfbG0k4sZ71LNgDD8gjVuAOnG7cTyYSPXsa/UOIhPHavfR1UJnq71f7\nLb6UpCViek3/Oa8It/9+mZhMUumhY5rOR2mgIOE5d2fxRS8yA1LvbDqMX3Z0\ngfumwjHpoO1jha9TzOHpYYk9xy96xwY4YnhduGWLqQckJbJzZM/cAGSi+fiI\nBHv9yr67Ip2aLVPYxBpCaUodsCbG/yd+rzICFgUxBcaPgACC5NZNFfmgGrA3\nRyZPz7yxRXj6Z75Pr7UzFxw3jy1NOD4OKjhzybzWa5nAAo0o/x/sU5w97sdg\np8BMj+fnH/GMJJ/VB8Objjz/SgXjQPUZ+wbARRCmKq5u1yo0Cv90x7tHk1tq\n1O8wHFnqqjQZqrpLfDlTrww33VfaWStZXGQjhS9YAnNVCQOGb23tlo4z9Zx9\nOqYI\r\n=FqBR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICwJU9vpq6TwfKC473/icKnLTsF3V5AlDQVCu1O/soHaAiBaxGzBNGmXozbylXfqbueAsUWZ2dDeBJMP9h2mmnX0Hg=="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.0.3_1627090435562_0.7720692962710329"},"_hasShrinkwrap":false},"2.0.4":{"name":"hasura-cli","version":"2.0.4","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^6.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.3","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^4.3.5","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"26abb85f3f59dc86415a0864ec5808346242da4f","_id":"hasura-cli@2.0.4","_nodeVersion":"16.6.1","_npmVersion":"7.20.3","dist":{"integrity":"sha512-oa3tYzhtgYoEturqmAdsyk6N+RsXqT2D86c17ONiKPJG5qq6vTBkQGrFxfToQxlOl0a8ZWXzPZFG0HXictRFPA==","shasum":"081196fe8f41e3fe410b9e938affbb10272fd388","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.0.4.tgz","fileCount":10,"unpackedSize":22049,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhDO7CCRA9TVsSAnZWagAAg9UQAJraZ14TIarQiY6LptXH\n7oiBbMVn36RXCEoT5+6gZDPt2eB4zhFC1HVKEYyNyqwgln7AWv1iXqXDu3F+\ngBb3Xm131KowGsR4gx4guLRhNkF6dK1dL/NlzCwIebcQd7ghLeQkKKTgMZ2W\nL5qF34m1UH/XBMgcWz/JajsloFJEqIAxKp+Bkwax13t0V6O+uQAKcYjDbSSP\n/Tvp/gWwlmviykB6GoH3MqAFqXS7IItra9Pmn9B21dxJ9Sc7XtF64Vi7ujZz\nfbPK+yq++Z5kd3LYNq/RqgFnHdnrNBZzbswjH41cdkgrqQhZGh7b4fojXg/i\n9d/cHeVX1vSZTg3uxaVIwzaNMS2s+0cPy+LGm+SRGqR49v7aRhTHLahoJmwh\nFT9RmmYfNoWezjzS2+MTsfm/hhjMdgAqpBFbK8ayJC3hpZvMWCpWcDRkgas4\nlIXqv/n6DpFatrgOEfqDobHqM5rXw/qEE4PWiLfCtU4Wxu3/i/fo0EoJoQvS\nUpUu/Lw9FFBmLOjhSViRPLtMXEzyBo58NT49zvOjESrdRZyeYZPDDowNkUl3\nKhd376K7D7nZoCwFxhxrV+kzYG9H9lIyaMIfuXMvLVaTyLY3OsZqydZMWKO0\nMRGbD4A2baUHklahC9nI9Zg4ncPekbAHBabG371UeQw2Hd1QjV469XIbcSlx\nH3JI\r\n=6suP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDsxdG7K+OPaQEgnXTcd34XgkmF9SuSTPm3REqqCLbV0gIgVF85BicvR+yxT1QXViU3Z6dQG+F5e4v/k49B3rUPPQ8="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.0.4_1628237506657_0.6834256944811838"},"_hasShrinkwrap":false},"2.0.5":{"name":"hasura-cli","version":"2.0.5","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^6.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.3","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^4.3.5","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"4c21266aafdb1baf11028c84070d7ec2dd9d7428","_id":"hasura-cli@2.0.5","_nodeVersion":"16.6.1","_npmVersion":"7.20.3","dist":{"integrity":"sha512-1YqQyk7zd7bWNffrgn8dv9xL9AKV/PuklVmQsiJ52BEZOwrCZ6UaKYm5yo52hOIUExzxvjXJHJBpEe5iCvGU3A==","shasum":"69b683a1479030cbd216cf682b3b05cc66898f46","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.0.5.tgz","fileCount":10,"unpackedSize":22049,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhDPmuCRA9TVsSAnZWagAATO0P/Agt4AhBOBSqIsB7XTRL\nbtslHJuCW/QJWcQMUUpbKtYP4t8wGhLYCbW5LShTiSEGmVuGOJhfgLczIs3e\nhCMsI3triiRr44fMS1FTJryFtOSQsoVoIi01qbqk7qmXn7wV4PoIr5HuQ8h6\nXkFRAUS2wnAf5Ii2JDzja/cxP4GKMPhX7J364L/p+Bm0QM1dqFgsxOkW0/fp\njpjscxtDFW/2SnNvtZVjxXNbvmcZcaUhqhbcL0qWfWCPvLRx/AnPWifl1t/4\ngyKrRxpioNR0NwSc7o2lIK60uVQGt0c1VsYLcL+2o6NfhdDBKrlgpKF4yiuM\nIFGUSgRbfdkoT0QTKWaGyJ8eWIKi8yOmpIfgJJjMzZJEjNL1MbSY+yc1jTW+\nLCvKF1zNgJEbfKglPtlmXTxqIJw7IBkGGDLHbaQDHmy4Uwa+BMYcyvKGYyBf\nnDpsLfHKgweHYwDFJQeRlioKyXWzhKRmZjEi18yluBN8Xwa9mKlUHfrsYgjV\nUzb9DZl6iJX+xaVOE3vVRdxfbqWE6bo3P2YV3kCxqES7VjC7uoLsShfQCnWs\nb+3zKNtyQdrHHZF1p9Y5+k3YlJxGXHXw+xyN4uuGI7YRanEBPSG8uN1p2rDH\ncr4mBc4+H4BTmfnA2esyY5eEtfAK59l527qz7q5tMbw+pLRSGprRspotGKDh\nImgM\r\n=XVKF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/JKst+L1ivbvflR8mKSilLF0YjPnxBdX5Er2BbA4X6gIgE7CjNFYlY6z+U5E3nRE94VNx9VnD5ClcFxN1Zkw1xUw="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.0.5_1628240302860_0.10619405755248512"},"_hasShrinkwrap":false},"2.0.6":{"name":"hasura-cli","version":"2.0.6","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^6.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.3","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^4.3.5","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"980dcaed8c2177280e9ab80018dbd10b5f880c2c","_id":"hasura-cli@2.0.6","_nodeVersion":"16.6.2","_npmVersion":"7.20.3","dist":{"integrity":"sha512-Bi7ym9WAfifvEZcf06bFghUsB5HAoXZ59OcMm+7A+wOr165uyttappL8iLezAV6rhGIIHFaK52eYhlLCe9v31Q==","shasum":"efde23dab735ae496a57a0f3e050629272c6c7bc","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.0.6.tgz","fileCount":10,"unpackedSize":22049,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhG9krCRA9TVsSAnZWagAABuIP/0u7Voj4jpWwgcYdbddB\nQhn5nnovYyg1WkuAyk1/U0k7wetEccXjLJeu+xbO3IRRyafAeV2rqicAwZRM\nWRfd8fLmCGDEe3GhtWJ+Xs94YTxTah2IlPOR00tagcPKpns/4N7WojXSow9U\noFzP0dJSynJePImttGHEiK1ZzH12SPmrT0l71WFdraYV9Vh/tNZmUVjUl3FK\ndo/Bv4V5SR4AgkLaWv2cguXjDvwDSl0jTXaokRYJLN/qwZGFnaXjp+nALxeR\nIowUVs7+wpJrdXTZuULP/m6N0f6adeFLtiA9Jd+Eo8t2+Yup/5dfbHuJZ+iN\ngVucXxHGcKQ7zbXqYuR9BTwizKwmXWDkXwA+1QT1+QOribSgW1+iNS7hUZwx\nJoyJRtRUiHoj/u5+eoJCdoD9kr0gOrMKJxDFElfVkz7tNHRVMjlxADjxmRF8\ncxrjQq2X93zYJmIv/taSo471jR76THiXMG9kte6uq+yVfMxmakH6FJcRp3sA\nzpmtc1Z/Tfz67B0uQQmy8V26PF5Ja0R93i0UWdBFRzJAIdrwSpR7Y9oC38tp\njky6ZJ3r4Et7H0kUg7udzjOqCJnER7WkjEpLl7QAUVskbNYn0mDPdN/jDRTt\nQPnoN+/O0QMh3q4jLLjnmEKLFeWwB4221ItVLMywzzCu3RgvzYmYtOyykpKS\nLEYp\r\n=7oeU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFCW0Y7Uqysz5n3HjrZzSBzlmEwti1xG7yeyRJ92qiq0AiEAvRfub729d2j7c59ndCY8VatMaBHIDrgme8pouSXc/pY="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.0.6_1629215018877_0.09042708804338861"},"_hasShrinkwrap":false},"2.0.7":{"name":"hasura-cli","version":"2.0.7","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^6.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"7b2dacc5052d181913b2223b5c9b28a128fac1ea","_id":"hasura-cli@2.0.7","_nodeVersion":"16.1.0","_npmVersion":"7.11.2","dist":{"integrity":"sha512-P7K6tYB9p4AX245BDTFluklw6bplUWzsO5utz39l4bhwm24d9e8AOsmSXW/LX7FPBe9ooA4zfVEFmBpgPCWFJg==","shasum":"6d322656ca9b39a41db2680df85e74777b295af7","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.0.7.tgz","fileCount":10,"unpackedSize":22049,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhG975CRA9TVsSAnZWagAAVjIP/0/DIlwRYkV2IiAULXsf\nKh7BQKZe9qWZnTuf28pn0LsQrDCaRktjH9Qp+bXn4fKrcIC/DN0X2/mvGbsk\n6RL6EsLYD/R3QUK2pSMrQRN4dRwu3CdGW1VkJ/GmT8yHpMpbPFu+/Q5WnDsm\nFPan4kbMAYmcpR/4PDcV6Gf6Uckn4x1MWvXcC22I5jZWaxzxszZtlkv9O+BU\nq6coFF79iD8tSht35ayXwSq5Oj2vTiF71ID4rMG445J0JuU2y1u8rdZx8qpc\nZzUGYen9gdFOZR0lFFnoa7eAQSxdlpdk0bGaXs5iquI4V3yaqVrJHPiccZMH\nTwNMBxIKiirUx1FRCUhMoUew/6lFUFKyUKX0V3L3PzlDmaozQ8XEDDKxtK/f\nz4GWLEl/HaMCame81IkTuO3rJ0STCLw+x27uW704+fHzwwyuWsm196uzcuQH\n7RSw2b4gBAU8XN9BaYGuVr6qUHjptfGJwiGohQXEAxBMEAjG3EhfdiSCGjDR\nah/23ymsDhZojQSZgT+khKqNaOqnl3gYmo9DshLev9HYIaSPHMHNrrjqkyzT\n2bp+UcRrk6tAOJfqZyvDt83ptjfTofIU/h9mb4ni0aRhVy9eXWvd/CKq9wNq\n7wZuNGJuQnbaonmOgltrYYB9JOKjzakILWmqSzjxGwdejbHiCVACukjhfcfG\n0kRb\r\n=ys4p\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICfh9n+vdEsJmt6IwsaliPEfHODB+4/UpKRZrJsaKHHrAiAzD7283yu8tp6Y0twJSIk9wxGomULUNVOPNOJ8ZJ71iQ=="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.0.7_1629216505240_0.9331816220753333"},"_hasShrinkwrap":false},"2.0.8":{"name":"hasura-cli","version":"2.0.8","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^6.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.3","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^4.4.2","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"aaf7723c4295cb240f393a97ac6b278caa1bd388","_id":"hasura-cli@2.0.8","_nodeVersion":"16.8.0","_npmVersion":"7.21.0","dist":{"integrity":"sha512-tuRDsh8pkcQ82G30KRm7r1hUG3JW+0t9L6plCqSYiO1fM63OBc4JcEa8ORMWZu4Tnc8feG3sUKrgCRJH4PWcFQ==","shasum":"c5fbec1eafb70837165dd9a0180f3c244976633e","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.0.8.tgz","fileCount":10,"unpackedSize":22084,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhLa9yCRA9TVsSAnZWagAAOWYP/2us7gGnmoEhS5/1dt5E\nmD+u7359MFACtHfzEe+mXI4kHURwnhwOIYn23r410oQnEB7CrywhfLzIs74y\nCa38zZxynLTrz/su36zKORN1QIQ2qcxVyiEAtH4UPAM7Q8wtJObdV2SKK4mZ\nPUYFNQQhY5l76pdAnKkP+EVV5BxPmv1VDirJ3zwzqLrZspfeBlVGFDUsw33O\nPQjbLCpWbUL5OVxENH8gn24QKqEuAcY1VwQ0VJOt9f0v9fKgcH4SIAvdACr9\n60RQPkZ+0qj7G6Nb3Un216fuq+Z8RSLQiGFkDVG5/eyijcpWMSIugfQGj7V/\nbNC4X2o5OW8gyCBF6PJet1Tu0hKpvMAuiLizZgSCZ/LVDczINwvDqPxm5wrA\nA5VfB3PvznU90fRNicwbnyL6/60E7ebmN8B+xSbp63e6GaSfuEw+HYGlRUoC\nRC1GBhZVlLIIArEwSLDR+OafUPvWUaLsmEBfHKXIOWORFlGcdB9WnwgnSGM0\nNrVv8YM8tc/aWKESqwV/88IrzjjwJMHabdBkP+abV1QoBja0K5A16ki+q3/a\nfiYUgxBqbYaatlXQi9srajYOGZ/1/SEg6PHuchTqm7TCTFFp/ddCSjxsfAV9\n2/AM2fqj+cVEdhJEQ2ZPmsMZZIkah+7lpl2RO1JUsu6Hgir6Cw2xW1/QbQAm\njxqT\r\n=dlkM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB/rvR426uvjU3EGIbU76L2na3SrNr0dIns1zHWeQcs8AiA9TvIocRw4vIviqWRJVWJ1KgjMBSP+FR08QnJAC1AXCQ=="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.0.8_1630383985859_0.6632320876985531"},"_hasShrinkwrap":false},"2.0.9":{"name":"hasura-cli","version":"2.0.9","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js"},"husky":{"hooks":{"pre-commit":"lint-staged","prepare-commit-msg":"exec < /dev/tty && git cz --hook","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^6.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":">=8","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.3","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^4.4.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"d652940ea6204be454cd00665436959fe8b2bf8f","_id":"hasura-cli@2.0.9","_nodeVersion":"16.9.1","_npmVersion":"7.21.1","dist":{"integrity":"sha512-95xAxNFfF1nntncULGKGQ9UEbhEWsgcMHdqOLsreq9E1emh2CVu1xuY/WezGMaCe1D4ZII7HxSQZBIhdnF9vKg==","shasum":"d58b7994244729e82d96f6b8e3c7d6f8326f9411","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.0.9.tgz","fileCount":10,"unpackedSize":22084,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDfLYZPrfyi5bDVGay2a8Yqb6HU0SvWRzB+2GEtv6QBDAiBCF1ONSWCBoCxhQZWcgTvmlTzvZw4rhVdnnbp0A9GEOQ=="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.0.9_1632272610107_0.07116479562322109"},"_hasShrinkwrap":false},"2.1.0-beta.1":{"name":"hasura-cli","version":"2.1.0-beta.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"fdotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"77536a36c06c8bfbbf9b4cf10b5954e7d423851e","_id":"hasura-cli@2.1.0-beta.1","_nodeVersion":"16.1.0","_npmVersion":"7.11.2","dist":{"integrity":"sha512-YAR9nwNYg+bdeBjpm+ikvMleinsjadeWw930Qe2TSJmstHHqBxvpfIuguEU4um9heG1hcgkbUOL5kMqwG/3IdQ==","shasum":"49c92fc733ad6918bc95a8f98145b89ef1e234ec","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.1.0-beta.1.tgz","fileCount":10,"unpackedSize":21902,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDDodMEz0+w64CqwDU6OXPM1gPSvviQYTJWpdaeDEKhVAiBA0cn2LKEajkYT1RERnDUqWYXFYbDnqRJCPZ+Zu27ujQ=="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.1.0-beta.1_1633170864424_0.19574840660132264"},"_hasShrinkwrap":false},"2.0.10":{"name":"hasura-cli","version":"2.0.10","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"fdotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"58f6bf0158fbf0167325cdaf7cae52650404ce4e","_id":"hasura-cli@2.0.10","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-J732ckHza9HuEQg1r69G4ahSmoowgh1DF+Cr2lpqmNpF3b9QFl2zTo0X/aP7aRxzfuuQGUp587ulvU3wFJLgBA==","shasum":"89b48561eac0ae9c505061b63a5147ea0de34a25","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.0.10.tgz","fileCount":10,"unpackedSize":22177,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh0nwyCRA9TVsSAnZWagAABokP/0bk3sELmkVrKTQxf/JX\nnSvkTz51YJizazMSh0e0jj0U1BxUqI8WhDyE/I3FhTMom5CcJLKAYC0gIwoG\nVizf5GSbxfcQ7ZAfRcQjMppaEa97SqmZx5ARENFamv5gA4AoaCkmDxlVnuhb\np1XnlNVCo0nmcoSm4lBxKwmXH2XbT8ZRY16XMz5tv3CQEtg3Edqeu6yPkA6j\nbxGXj651YYBVmxxSnFj0G83PZxfevaVWPBWy7ShMjzRlYMmRE0yRr8J6RZ7I\nJ0KJZcVnL/SaCK/zhv3LvEivWDkzav3CH/RSmR1YZAT6dXBd/q5Ah71G9VBJ\nHQZ4IGPFHC1IrwSlov7rmJPyVgirA3ra2FSFTdAX5uIZPCZnmtk8+x0Q2lIC\nl6TWG5GTCVE+d5udvMpEILihAorh8c7MeNED54XPw4tFLdsuXQwOo8uOizRS\noCD1cmn5PUHvfHMn83hXTc52yWBQyJEg4Bj+2Rss3n51sEVdki85nx7H011A\nAxArhxCv5tOqzgLT0tMVxtWDhrKfIpP97fXeDQP4q6sbUBu4O9zG/spgDGWX\n48auuAxafR+dozHmZXcoQYEkpBfnnsmM/wNy1avvuFDMVEwMfE5WIj70N4gM\nExnZmPUhUl+3bMHXb2lWM5a40Pdkw1tfiWOTLEBnvuN0eGxLXHBrkyn0BkRa\ny/Qq\r\n=ubOB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDec8j8dVc5aIfDYZa7u52XKuMIjeQ4KkhjTCfivyXJNwIgFhqGvOFlffsFzmmH0jfxVA3KrxdgfqLVQy2S4F24pg0="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.0.10_1641184305875_0.9269447411744913"},"_hasShrinkwrap":false},"2.1.0-beta.2":{"name":"hasura-cli","version":"2.1.0-beta.2","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"fdotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"d596ac8e43c5ce69ddfa28bb3ddb67180f4986d3","_id":"hasura-cli@2.1.0-beta.2","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-q4LyoK1kVcfjm1pcozdfponLeYdfu9GzNm1ZSQpS6i+wCJROmH3iyOLg0HOKo2X1T5MYGb/0tGNuKx005V8t9g==","shasum":"115641c3047652c0ced8adf49cffd10bc712004d","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.1.0-beta.2.tgz","fileCount":10,"unpackedSize":22183,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh0rVZCRA9TVsSAnZWagAA3rQQAIYRxsj6jujgC+tFQ+8u\nqX5xjMl4DGXlnu6bTagonQDycQl01YkB6Px1i36CJbLftGqpu2Buede02cGl\nuiTiJpk4c+Y9B26Uszv9JkfE1chfRBC7jXNHce4WC0JHTHxIItCwicVD/0NS\nA63109pgMfahqQkHUABnjMKoyxW3tRL5BZiH0km3/hRcwlvU0hg4d4aViVeN\nixXj8SAiU4ERU5cVGTcwP/czvHZF/2CGoxqMpOCbYaShcaYIRo4STquownTh\nTx9AnqXW9vYv/t89uCUHX855SpAUzOJYdlCvXOZEtgXPAhkCVLUdbrUuKzDy\nK1IW6g0D0fxBy2Pw5nGQhZwSKlOzHK1Vr5qIGrjiWRUJJzBXZKtoJaueVHgH\npAbYixmsnfZ2tuTnzGY1S/m5y1sGOURLNrLyjHTA4J0XilzmXj+3ZSmhZ+JD\n4AVSl4q5+2FO4ZAQzRefdg9ThHtqhedQXSAY5mOJQkzAAQVTO6dmkCT33SVC\nzZfAlImacF6YjsLw3idG4mlgyYDqj++HXHSBS4Enex8EOimTcBgZc4Uf7zBW\n9AHPPF+C9HnnZ8VqRE7DTOEUcUIOnQgGmop6Fn29ExQE5GuCd5FGWrD3H31v\n0S9dDdAalLT6FYygfvm9VD0BMCA2iyZB6vvm4kuq9eBZDnVqCGBkCwyq8pC3\ntDVI\r\n=/IC3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGEF11J3+lVzem64donh7xCeHPZZIm1p65Ut+hwLRTJcAiACDAR/Szp9usZyXz2TLYh33t6m7Qy5douxEWaH29P5WA=="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.1.0-beta.2_1641198937114_0.23802885264670293"},"_hasShrinkwrap":false},"2.1.0-beta.3":{"name":"hasura-cli","version":"2.1.0-beta.3","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"fdotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"8f7579e4aba7bad35e4a6950fc860056690f0596","_id":"hasura-cli@2.1.0-beta.3","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-9NiDVz9n5lPo14LYZcpkyV2GMrAOManm6ddRuuAu+CGBn4dBrRoaSNjF5p0bPlrFU9BCChaI0broNkGRaqbDaQ==","shasum":"e175be7d8fc5ca4b202aa6ae4b0df84a29b5bddd","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.1.0-beta.3.tgz","fileCount":10,"unpackedSize":22183,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh0rwCCRA9TVsSAnZWagAABz0QAJ/tgS98rB0UkOnMdUEy\nV4NJEvyTzQOVcsd7cpe8/KX4273itYToRjwgFswlJcoICkAFqs6NjkfrIYUt\nBShf2FD5RW/81de3KID/NzpYv9EhAJdhS63nHZB0fpVMtGxJilPNlAqAuujI\nFhloUNOAle1fnyW4TkgAqi9YyGqQmjdWYRc9yB3hcLgZOD+3zvOh+nObLMQN\nFUAn3e/2pVGgLvXTZxVWrXMQoGvWSQXQ3O80kcDWf/pnMOnYErWQZZpyIK8b\nEWLVxja7sFZkyez45AamwFTApEJ+Ht0nbvFeiopBin60IkRFVop1bSf08V7Z\n5HwDuZ+/uy6n6inE3ZOoAA1x92zTqRbyNghnsojrblWwYkvBpvtHeLXFLE79\nbi0U4VqF+iwx3Z8qVvtggj8gZKcLbGQzyK+Nez864w6nwWK9jCv8X9cNoBQG\n4njWzwMwfOrh6WQqnO0NzSGQyijwb4mSbIIYZlr36aJTrlbTowL0JBYfB+rd\nDysyKcCBSrmBQ1mN3wvyZ8ZPqtyp28ElYkQBUvwka7R4/yoqbdtX0rljGpVs\nHaSSz0FsihZLEqcZUaLUqqeA3cbbgsmvwpM2tTJKA4ElBpCfHmzsJGdQm30Z\nE1Vqog7o06rm9Kff33oF2Uurfe3gqTwYM5Ux52fIBRTr1P75uhV3t+PLYdhG\nb5eN\r\n=OsXx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEAmgWP7hp3mGkkeKLiIOWVIhYKw6xaVkE4Pi6Ed2EzxAiEAmhQC5hA2l1KTmTGSaV3CHKA46jcSIUWWFtJpHjikSq0="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.1.0-beta.3_1641200642671_0.3493144096548355"},"_hasShrinkwrap":false},"2.1.0":{"name":"hasura-cli","version":"2.1.0","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"fdotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"3e60f5d5256948d54bf875036b00b34efdde5cea","_id":"hasura-cli@2.1.0","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-tJhM+J3UYFq5cHACm3L7V+oW7Gw+PanLWTEteVNXzIUbit0nIDnj6vnwgnCBxBVI+STEkL09IrjK3SZj9UPBAg==","shasum":"1878829a1657fd588c2e62dd1880ac0dbf5bea5b","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.1.0.tgz","fileCount":10,"unpackedSize":22176,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh0t/WCRA9TVsSAnZWagAAUxEP/AjGR04HDOavT1pog97P\nchJbafqrkEH5acM24EgMlYCvYcT+yJaY9fW7iwRcL3ersBu2tNVVYpuUJVPn\ncJ7Vk/s15Mqbh78Gn6b2MMVkdqRkM5N0tGMEaMkLlyVCFZezL/Dx1TQL7eIT\nh9C8QpAlKWI+2aSKiL2Wfja9kj9JbmJXWzHSxUdD/oAkpIa/JXq0/38oFUaK\ngQXatC7qyj8+rDDMVKFuZIMh/N0qjZfJCgzIJHf/C9vThwGSd1LYoGwuaDwB\nl3S8iW4Zx3gh9cSHARhsXgnSN2LHzi++JWkil6d7WD/q8kj9CBqm16P30OPY\nnkuV2wwOBPt1jp7CNbHjk1dl0Cf2C4gib2WU/3TX9xVTWsyhd1wKG5XmCgX1\ngNBcu5i0iQKy7lfVafGrOHIxtjmnGPME+UKUoTRv0opZTZOZopj7Jam9AphH\ng2p/y5TAG+fexDAg12/7O3TUp+ZgcJ4b4Xj3ZWk2B/btobLTb1+qqDPCP3ss\nk9x863O2f8REIKFE8w1RjrPLuETrjf/a0pHhYESOXB/SQTs9Dp9QgmQjf6hE\n5iwZexWcAN1c11V2DrPF01Y8AVMCz8OAOCseWpd5J6vSaqpQYDWXbfgV5fQZ\nUGYUzAP9LM1ton4kNNTcAl1AUJAF/CM2tv+DErCCJAUcb2Efxev4huZiUbUf\nk44K\r\n=JlBF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC9cZbSaIhg5dB5co7A+/+38So+Aq6lPI7XtYxSNwfsswIhAPWa4aWVx0JP6cgtALRHfXexKs3BIieYRYlePokK6S/0"}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.1.0_1641209814717_0.9161916911308465"},"_hasShrinkwrap":false},"2.1.1":{"name":"hasura-cli","version":"2.1.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"fdotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"7f8e27e109db6aa8c544aa215628f74e08cb8358","_id":"hasura-cli@2.1.1","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-ts6h5lRvxmXTaZa5XRD4KM65eH+zQPXAoYJN/glGog77ZEuiIZD+g/U1pnoCNejswnawKrzLF5AEFvmr72SyVA==","shasum":"20495ae4910d0f44f30a5cb360eae15ba37d0a3c","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.1.1.tgz","fileCount":10,"unpackedSize":22176,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh07RRCRA9TVsSAnZWagAAtqQQAJ+Rk9enbBU6XCpJsWsb\nz8p1QYlIVyBprorfsq0K7YH56h5CG7H4M95yyAb4qea0y2MaDLd3ipD/f3zO\nqdkG4LHLsYEcsHrlsj1rv71ETmH10CRvdhDSHLJsOfbiWOqLlIvQoMls5Y5X\nG0Pt7cwmRbDk4JdRaTsBaKYMCq2pr2o84uvMAqU0D1Xe4nZgosNIJYzlU8VZ\nJ4kYQWPMc7Wit6JAt/nEv351HT9BmxSpinY0slJYDoW6S7SxXP2uPXB38h6o\nebEktMfTENm36Jg37Mge6MLYMaDgt1CfBfgnwLosOduDddYeIJQjdjyzajQF\nqifh77SGmaJSlciOXzufEYH23shKIMCmwUjQzYJryHlJK2LgjCmdLJjIV6pL\ndp80rIdk8q9+HDkuZn9qv8kFSsid1tl55vLQI3REKBnJI/ISzqIAbVXxnF/v\nK8liqG24Z2f5HJOFWv1opZdL+8p4nb+jh6Z5A7YvIAkKjpd0dvsH/EcKNcgV\nsYxkAvD82bBEvZkwYtbhtOdyy2H6sB6sM4uYVX+f9TlLqQTsDQxL352iCevF\nsmnKa5xLeXlEwWi0K8my4YPmPeBGGAnw8roJA5+VZirWlTEDM/wU8H69UOia\nqxUSbAdBTEUIeBlOnfDka8mwVNmIIci6tZWDZiNJjjCx54ZpDq9bEZvuDO1X\n7K7S\r\n=qwO5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDoCp0WgE/3AyeiHu2o2YWG+m7DEVDFUW9WYqqQQEgAyAiAKD4pbSziPQlASZek7iPXEIu6cqvNQhr9hLqI7upr7mQ=="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.1.1_1641264208979_0.37286134245781066"},"_hasShrinkwrap":false},"2.2.0":{"name":"hasura-cli","version":"2.2.0","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"fdotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.4","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^4.5.5","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"41351bf2b1616310bf24df1d166f92b14cbf9517","_id":"hasura-cli@2.2.0","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-lBpEt94CkaLbn0iqWx9TNnnuET9prz067gKUuTzm3y8PtRw1T1dZV8t/tfAZRRG/WNGNFp1d0UWs/fpwO3aJdA==","shasum":"f850823ae07c6e5efbab078e9bcd0f31a2bbc8d7","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.2.0.tgz","fileCount":10,"unpackedSize":22211,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiAwk1CRA9TVsSAnZWagAAvrQP/0Xn8GgRQWaOPFvajzt4\naj+7W2wJvciBK95h3JXn5GS69LGuD4zppPCzGUuNcXG6BNX9cH8WwODp2/OW\nkw1xqZ7MdyULm8ug3MJjIkplY3JYGvJBYMRvpwBbeK21Y4S2zwD1K9hdUow3\nGTeDvmx6PaUYkBWPgDq6Bhjzc/GJwQPAy9HqvhwImkl3bh4YlUCu7OSd5Xlu\n4vJoznQuMaAjoTfG3ud8tzKXNjpLMXTUtNHkj1gENAUx8SzZzuItu5AyAZML\n6DWic3YcV6RqJ2QPfUBUJEVcepq5tJcUZby6pgUTJUwF3Fl/OIukZffpZdTy\nbxOXIbUwd4xZfpla7hSp2dWME+iElOcXqYJfntgRkahyRW/Cx58xErFhZNk8\n4aLagRAxkO6N2k2lWUwsj4qhUvYQctqT+/ctz803/jTjZGCmSswzjEromBB8\nVzvBK/aaM9XYg3JbFn7EkyOGBi/ITsLx+yaFgaB7fusB2PhR0M1PHX12inFj\n99mvLT2u/RZuWOTyK1G8OHego9skQVsrnckjPAI3Rh+8CW+E/BINtxjzlLRR\nf4Tec78kJPWbtvsJmX+zT0vttcrPqQNNQXmETeM++boy5vkJDsa2+2mwx1HV\nWqO7vHuN3D3qUN3+0iW6wEWnq9F0OXjYgQKvcTXS7oQTgjEIYvJZSbVImYOq\ncoM8\r\n=/oDg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/QzqoiXJhsrSX05D1WDS8GQH1H3OefWWFhXQ4mQG74AIgLgtEtMNlhV1l4GIbh6CRka+3gAG5eVJl6CoZMRCCoc8="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.2.0_1644366133155_0.8480768923064226"},"_hasShrinkwrap":false},"2.3.0-beta.1":{"name":"hasura-cli","version":"2.3.0-beta.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"fdotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"d8049da27dfebdf74b9ad62911185989fcad898b","_id":"hasura-cli@2.3.0-beta.1","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-+9Na/WlJhygx+YJAOJLgRYsJVMCv7NOp8qo/ECUCsE/yS0nXyYZnEQh5Vd+E+1gQgXgc+hGvKY3TRX6uxuulNw==","shasum":"ebb0467ef12e74934799ff108624087bc897d78b","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.3.0-beta.1.tgz","fileCount":10,"unpackedSize":22183,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiEmFMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmosEg/8D3IRQeFtAe1XBNnTBCxIyJm7ho5blZ3PwNzd+s4sd+oqJxEY\r\njPq6zaS4F371irBVIDaoQh/RDIwz9eUxyv28kv5sGUV3SfytklLg4/OMJdX2\r\nSp0+fKxIlAV5+7iVtj/YKvEeGc9hl82XYpDOX0Fie59sLz4Org7267xFkZoS\r\nsEx+TX44QXcCNN4+vsZMz1o1Cx4w8XRPqAmR1mCh+uq8csPyh+euYhM5viT/\r\nssCwcR9GjByRqoh5p6SULGR1OiJ8RYDAHJPRIdtM0fvh+XXB8RlySC1nOw91\r\nn9jb/1YluvaXDEOKprVZzH4WebKxpnQILEGXueBufM62vVoGIJUg/zxWJaXH\r\nKtAnGnoq8oSefNNKiQSskaTCX5+fp4pljDHaGRe5lngAp5rAxNuuk7DZe8L4\r\nWkvAijkMMkqnIZ0u89GkcfGx2yb7Zxcw/xsRq4C4u7KSqh9JEyhVzw8tWDbn\r\nkq1p6G2bUcsfjkS6hQSuo3wNNoMji7Gi0Od8mZSUvo2A82C/PEGupfJtZ8Ui\r\nEZXVxPOd95J1a2D7GYYzNzkYfQi+ZXhIlAhQq7/vLmc3ySrEHnlD4ggsoO/T\r\nOj2ld5rkAjzX/eVgTx8IOKxhLMLOBqaGjSW4y29NsSBmVo8F6puYfhqTsbAo\r\nvUAAvEEU701J/0pQewT9X4cbCVG/pAMZDzo=\r\n=EayZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDoUpt7+I2kkPZOb/fYQAF7dhJuArEG/R29cBUQ6brFLAIgbg7SR6XIPc9WSeaoo2EYQRpAZHRb8KpHaYA0bR1w3FM="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.3.0-beta.1_1645371723969_0.36614660758431117"},"_hasShrinkwrap":false},"2.3.0-beta.2":{"name":"hasura-cli","version":"2.3.0-beta.2","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"fdotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"f954fed3a5f7a632617ac142b5ae14f38625855c","_id":"hasura-cli@2.3.0-beta.2","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-1oFsS6GHrOjp6vZRb3bQ89Z8sSfYlZw0oS76KFojai3k3m8SWAt3TkQkvfIQH/0e4dYAkLIJ7sKgN0dNzIsXPw==","shasum":"6f2b246c726905cfa7d817f8842506e1667fb43c","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.3.0-beta.2.tgz","fileCount":10,"unpackedSize":22183,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICxpxbCesJr+Iah7/leapvpXqz9K/jvj7JyceE1icOfXAiBUvC8ibZfuD4pqToqYGHaRqwQZ+1jirMG3KSZB+AVjEA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiT8whACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrxRg//UgW6F79erc5E6Yr/MbqmxflgGVy4zj8HjKQH1E/iUntYILpj\r\nBqnWlxs5QXwLtVDdLubhhvL29VUKuQXjFotnCBClqNFudEjshHpOss3l27nx\r\nc8afKY2esRayGE0EFLH9BKxeg7NkuEFELbEr6PobRBmfGQDMhSzkDVcgESr7\r\nFM+2HXYy5y6cRn4bLxMZ4cji0umU8WpYW8qdh82vHI49sSNAZnv+1UMukhKE\r\ndaNFgJWlm2nT45MoIbkCAQV5fd8q17ua97vMboubj/1H3ZInwcWtIyuFSW1C\r\nofAt50V2jeNUnBxzihW88PSnoC+ndLOtxLoy62UXnXD8KrHJdiezpA77U1Of\r\na7QZ8d6pz7IZ7ELRVVjwAPJc83o1yqVty9nD9n9pKvpb/S4txZnKw3+pwyts\r\nHcWoAAipoWc4s66685Yz9oChw5/e4XPioUrDoRdNdwdufnrc4rRAsBTbKhGE\r\nuXRr+W260WegcSyBrleHdXTp/J65IXPG2VA3r0CBp3/X902u2dQt4IgDJsCK\r\nHcMfRc+fvDgUK7x0aO5Qo1MWwTzl7LtcPBfH7UUPMlAQr/1eGcPnj/nS4XwS\r\n7++tDIfsFAg0MomY5KvrW250MLvsrWJzW+xOaTezvLKm6jL9xL4hQXgKiSwd\r\nr5HF7Ne7JgyqMAJt803wvrAfVHPehCuuiko=\r\n=6CjZ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.3.0-beta.2_1649396769078_0.2656067509490041"},"_hasShrinkwrap":false},"2.2.1":{"name":"hasura-cli","version":"2.2.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"fdotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"c8e239ed5cf05b7461b12f761af954cdba1f4b8e","_id":"hasura-cli@2.2.1","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-AcmXxyOAPlO3rvtrMt7vgZdPP/e0CnDvfu59xEIEnpcZAbaxRBFm2fNYDIvgOGLIi9RtVct5TnbP4FDAg2onfw==","shasum":"a2f0b2377ff2b03a4d703793adec68bf9f140a19","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.2.1.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDsFJolBHccOYc+6QagzuPGZw69jcE5Bdr6EhaTsJA+hAiEA2Y662KedHyy8uUrG0Tmhc/2rrkZow2xb+C04BU13hyc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiT8zbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpvIw/+MXmDNtwstlluxEf7T+gaTQD05oxz+YzuSpTGgQxZjacmrg3X\r\nbkQfWPumdpC77/5BEfZR54p0GNQFunDqu7Jh5svWMjbmh+gPLo0Uh6tp5g0W\r\nD7QzwwYFast+leBFX2qS9hMVkX6TliRTY1mIFBUvcDWaASzMIe/9nEQQm9qn\r\nNgQcf5NgHI4UIysG8ZeWjTzfY0mtWKo4MqCM6L7DXY0HiHmYxpAdWdEm1Lz8\r\niNQ5Mvc/lpSDEK4dYcbBu1zTv53g2on5cbgJmciC0IJTuhe6Yx+llwZ8+YWz\r\n1bl0r1XfFOquzwpOx48Km3ldRIVZ/JjXLV0gyE+hfRKOY3cltwn8cxZK3YMl\r\nTRrs2cfuyN6CQ5WJTR1VANs96ljzvFzhKGtbFw3Q+MnvXQaZ67U3HYKAgsrE\r\nohYJRAgJX3Wn+zVEmA0FxbTUw0ZLpEH0khLOq/P9gqVrW5pat+GSP0c+Eeed\r\nCsk/OyzCsQl4SrHwlH1isuKGtcrGo9zr4kUwLqdzZCWrBC9b9LIO3gs8ZODY\r\nFBJenB9qnel4fGgxlKU05j+HT0ZR0wb5Bo+4lCahk/a8UzkwogPKfMgzC56P\r\nuQ8iamu7UsTA9XxombUqJgdLFnWQ5ZHdvXLjkvJ06Wh/DoV3iy0LttLxOFZj\r\n/tKOWaUJ0/AsEpxR703IKsu4donGA9Zc9fM=\r\n=Xtd6\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.2.1_1649396955524_0.7901802895293351"},"_hasShrinkwrap":false},"2.2.2":{"name":"hasura-cli","version":"2.2.2","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"fdotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"927b26558727d29e93776c10607d0505dcf7be90","_id":"hasura-cli@2.2.2","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-aDUYB37SroVicRm4Dsv9AL6NyiDw96Byaeu8W3blaWyQ3ynB47NcU6+XU2mGqoWL9hYmIBNqG8CjL9V3SWvHRw==","shasum":"0eef59dbd2fbf4c943454ecb3c2a2ad742d41e89","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.2.2.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDgHWKI4IvBFNekcin9rsfm9CbCT7Cfp2+tGClkTPGxywIhAJPkFZ5J6KX3+bCE61wggCWUjBkJBdPlg4kQbfe1MHSD"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiT85KACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqkVA/+J4MCbskTaIFUVW4JEPu95K3Ir5GJIgZmA2GgjqCZVP0jKmVM\r\new9ZDIEq/4yuWli28i4I8vBVLhQd3IPk03wqEvpcmZAbI1XKzj/HkHFmkiDw\r\nDO97USNt3PvWI7stjmdnpJq0SUqMTnOLENlyMZsD93RU4mFFjXf8TnOD4oeE\r\nevkinQgJu0qOu7tXzoHo1P417ja9PgUY+NMfx8aSvipl1GIVeR9narONH0j0\r\n4nw3NQF3D6fkslf3Y0F/9nOB9SXbI0BWQFakwz1MedsDhXRCyNXjQpUXlqCr\r\nYyAzIcJjROdvSJozuGv2+XWGwZwfO5VViNk3Hx/7hko0a1fVyQznvkOiJUri\r\nxLvWF7sJoEb0CaQ+lUJS340zlmzzudTBXdtzkdqlM6R9DrOlii111lcjz8XG\r\nAZu40S4OOdjl53fW8+bObcy2I1toMoWlKqjsyyhY6E+miKmpL6gWflUp0PSN\r\n3ilqv0y90Smoo90omNNuyD6Mo5Kigg7FbmUxm6hXFf8ocB00BNJnRWO9iQVH\r\nZSnxS41SMG6qx1cjQNi6cxWZObVsmUe1lIXKbBPO8H3IP11VoOPjBxZIAww1\r\n/Fmb/zQ0quW+wM271GtneyA/tRCIEwXK7tziBa5gsKD7OUSUGMTd4y2z/Cz9\r\n+kbv3f2FOTe/RG26pGen4YbgJRRVcqW7Bps=\r\n=roDp\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.2.2_1649397322209_0.876025792319097"},"_hasShrinkwrap":false},"2.3.0-beta.3":{"name":"hasura-cli","version":"2.3.0-beta.3","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"fdotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"b71505c2b78fbfa57014441d3320011070a3a00c","_id":"hasura-cli@2.3.0-beta.3","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-+abYPoX85OxhSOWWId6RUA67eBtBmlUHsTjhIGjcFepZRc+YjC7JByJ+emfuC/+kMS+JEH+ZF0/BA7FHU0kJgg==","shasum":"cc38317c9e050c6ea04ef8bafd8703a66c1f0655","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.3.0-beta.3.tgz","fileCount":10,"unpackedSize":22183,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCdheli/IGskHGkpGHjumwMktN2CNXGKOiDUGH6JWm6CgIgFgDz86+ZYofuwcmbw3EEVoWGQykp7EfZuwp1yCznbZ4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiT87+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp/pQ/9G+JSQYReJo+S7nVmezvMdsqI1kEUsgZq5h9LzzDSBe118qri\r\n2CRfzUWEm05kWLVMYgg7myiRgf+UtvSNsoMHtr2KBuI+sa0pg09gxlvOIiix\r\nKxJbGnZCeeR+6ZnDMyDSAIma0wtkHtGm77OzimohmbjEZZoy/0qtolU0YZ7q\r\nTh/NPXiAhWVr68xg4lv6R5Pljxk61GTdjv7w+79e0mVPD0Qma4tiAgRbD9KP\r\nI9E6+NiyVzMFX+jrbLYp61zn7wAJ4/9+Jxt0bitfARE1gQQrfpYajOvlrX3M\r\nnvwylSPrrNp9G6MJSHPU64hNdAcO3IUReNfVqh5QiDjzy4OmXKvE30CpImlF\r\nkdrGpDvK44Yb20Qyza+MsdbZDbgxlIfaHs3GAZwROGGHhfolmDUWSYB8dIrb\r\nLvojNuTisoPL0w1l+R2CVXvgMs+XFiJyXWteR4X2EeNxWrAz0X1R2bUls/6y\r\n/WMHdTQzKd2S+ko5LlHaqTzuTT8iFuT9SCLp+WbAeZyO2IADu+k4cyTs7/Vx\r\nYUwoe9Jjd9hXVHNcHZp13GbCf/o9FHN6FxJEVVUUoLT9ksKumOfV6AMp5L/8\r\nUSSSzHDi6h5bDjnUxx+aRqDcYmqgtfqa5fdqvYtUK0pn/UTUOm8qBqdMJwSN\r\nHTLKqkbN9UqIkVqPBvgkZcfQg/tuL6UXnWA=\r\n=cJqV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.3.0-beta.3_1649397502162_0.5827162864776849"},"_hasShrinkwrap":false},"2.3.0":{"name":"hasura-cli","version":"2.3.0","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"fdotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"13c38c196d6dbcf0c6c31d41d1f5e56acf53d66d","_id":"hasura-cli@2.3.0","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-VRnVqHYaWqfl2zhsWEuJhNSpdFELELdyHWJ9mOw9/kflcRBLzhN1YdQsEWVYKipOVE6LaDJH18wveNE2xLhjLA==","shasum":"80630d8c7646f111a74cef391f710b8c23c5f4f9","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.3.0.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBhdOypPLHNDjOYqEQxlfkFz3cJTy/vkZjMLB3lhRkUhAiAFk2ye0GbMdj3OZmLNmVKb3yz5itm5yM5kliCXDCP+Xw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiT89aACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqn/A/9FQW6Q/T0QPG3rGe3gcdcF0GrR9jdIz1ns25gFsUKISdK1pUT\r\nNqAw/IPeNmmn0netazvCklXsO6vzRKtrjLy+UVmM0w7LTxBt8LazD2F525tv\r\nltowZVW9MAHePshRhZFWg1RhV2rZiGtCuNGyFnMu/dWkP6VpVmbDkGDeYEIV\r\nmOIUVVArG4TFykGl1OyUMViw2ve1C1TSCIW0qmX9mjTk0+AhO/EauXG1WwWr\r\n6IjYJhIs+EV0pds5LPT4A6OiYbJzmsYHMvGzQNI+CHU9HHhKcgHPkzuBRUh/\r\nnjPc3bNrbUpdZEY3nENB1uIr/mzCY6TpPfAyTTQAnZ8c9PVVJtNrkMH/cu2V\r\nON6zjtQYcr6/5hD/8eHKnOZFD98Z1MOb+jbrPBStQI8jWC8/61zsTirZQKes\r\n/gNfskOuJ1CoU5B8jXLb9TZ277kZjxT8qFCcX+Q8vUZeBo1DN0vbrnWXoeHE\r\n+3yeRgPbuFSI3fLgZDAyyRb8f9X1F5T/U8/3qFa9359MWUjZpgxwp1KQnOOB\r\nVY3v9o7GXC75rr6GkzUDL2vzXRll+z9cFqOryPvKWnvFMl36BjOgX0HBdJM5\r\nvZfo/9ZxluDyAQxSWKkyUlrJ/KnDi61t9Nfs78NanqSph7J2XJG47MCoJFwU\r\nq/8H91utrZ58keynoP9G8cuaSefFY32dn3w=\r\n=qO8x\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.3.0_1649397594519_0.8913640503042255"},"_hasShrinkwrap":false},"2.4.0-beta.1":{"name":"hasura-cli","version":"2.4.0-beta.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"fdotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"266667e75c5d04ff3c1440fe249cb9e25f070d39","_id":"hasura-cli@2.4.0-beta.1","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-ynev0J09wsrYI0rK2BPejq+CEEZOHneNQW6AM0Rl8PsSA2avZ/9J3MFZxNISuwsqwLz/fcNmTz5486IJD4mDrQ==","shasum":"9cda90032e191158c5aa901604239f4aa38e384b","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.4.0-beta.1.tgz","fileCount":10,"unpackedSize":22183,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG8lKuJhpRy6GfCd9N5I65TeFWhKwJjF1HUTEPU53AwSAiA4PezwkN8kG+8+iTHZ/GD+oiPRWLjYm/z9gBQXu3uonQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiT8+WACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqKKBAAn2iobHLCaKQadRzLmSacgV2lwtV9IhkAuQ8Y6ZWQ+1FoWF2p\r\nfYFCbCeHnVyrcFanLMzlkPuZcoSMhjBa1v5ib2/66UNUboG3730QlA9I/FKv\r\ndguRnYmyDzqt/ydzVJevdVqDSv4/RGJIsS+kb90l7AGXU1rjiZQ74mpq3gjk\r\n9x0xcoIZ9Y0OuUtldTmNVbNCLbYnXSQ3+dFZHA3aFqWBW3VECLLsFh2Z6dlT\r\nqkT18fC2txpWtaFcxdr8lu70QZBMBXE9+CjTJXepNdxBtPv6OTbF9rnjqrY0\r\nUPZB5b9t8CfMfEoe6bHzs8Hnd96doNh2CU1FOOwfrqlv3bqQD1senu/wdGyj\r\nU/grPmuoc5qkEV4bpH5OLdfLUk2fAylsPhebxBm6VhTpw2mkkzKY/0K0oDyo\r\numcDcLqTANn8o6rj5HJN0GB8m5iRFrnrQ0CNC8mFwX+HhF/gRYR70b+g4uPO\r\nBJqkIyUfkbEFXDmWH2KfrQsKpuYxOu8ar9Hkzx+R1l7IgWXopNXft3KygNcb\r\nPmEB0zJlbz1WaYuUyW0EBYCYQc1/VbPxq4/TzyzWnGzjZmYC5EkxwhviI/Z1\r\nlRurTRKhA2i+BAQ8ZBVz7Rjg+OV5Rdz+PNykSWuqc6Pz1Z3lPlQuQYj1s1yw\r\nvW5SwWUun1zOQ/GG8pBkvXxXBntz25s3GWI=\r\n=Z9FW\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.4.0-beta.1_1649397653939_0.988497353168547"},"_hasShrinkwrap":false},"2.3.1":{"name":"hasura-cli","version":"2.3.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"fdotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"c0ec66ee674bfae8b29891bd8a3c7d3396c55fe8","_id":"hasura-cli@2.3.1","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-4zPJa+orvI1i4Pp3htFa7rd6AckZEBOxOHdAkymnOT2q7oqnNZT8Pk2gcdBhsDoLMr2zCpeUp4Z30gHflxMdtA==","shasum":"fb53c945766309ee81ed51c8a08c5c5428b83b84","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.3.1.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBqD5MTN0Pc2+ZLx4mzTVIyRu1xDDOVJfNJ8KGID7osPAiEAkinEvOy27joZIlhNaLp4GQggza9dtIZAQ7TJ1ngXlXE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiT8/oACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmos/g//dCg+Nzq8RP2IgrRC9Z0miqqUbeHEWvfgaNhYaYnsnTpwQQLR\r\nHOzTPOJj0ikXsqj6byilHY8BUP0ZGV1ArGTEl/Wu1GEMfbiAcjlair/lcAed\r\nCWG+KmoNnPBnDy4mHJaapAj2a4OYGMXbecr7SzgorHTMYHtaIqYDqhCuF66v\r\n3b71GpyLv+970Xbzeo4VVN5dTgXLO5VrNRGfFHv/lPGJFcDMb1u/r0q2l8NH\r\n3Janw+unbAKMUneC/Yqz7lAZMGPYfofC5hBUVzlNcvgj1PdUp+cNZ/2eSkuG\r\nrZFOKaHLH5Cl2Oyn61S7d8mjsTtbH/Sxpb6j8Y5cjNndjPh3nTQ2TnLiR+Hh\r\nz7ETxuAY48GTjbAeJuSao8u+ZmIYINCNkOutYn9DgF9v/TxN72OBbufXHeas\r\nznycNNu23FXRjBRruW8wWghDtw98SE8D38R2DL8PpSK+OehwejJJ9fWYzwLl\r\n0/Mqmk8jM2z4Fy9/1wwhunYSNHioA/5pFesJ6WFeS9+ZadlwX9GnnV2pz+A1\r\nBhiMlGkUYZrIa2QMet3qzssrnJk3c5BUmfyl40OGxi3Yyzhlh8/xq7zl+eYS\r\nvFWLQ5lDkMBrx+k8quSiDooopLK8/hbDDrNrIQeQiNePoae8VJffUgcvUevp\r\n45SHFs2MITh/EutveAXC3JkTgx6sqDUjYvA=\r\n=umwW\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.3.1_1649397736830_0.4472152067067563"},"_hasShrinkwrap":false},"2.4.0-beta.2":{"name":"hasura-cli","version":"2.4.0-beta.2","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"fdotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"ade960bf8d8eb3dfcb97c45a1bdefb77130c194b","_id":"hasura-cli@2.4.0-beta.2","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-zIYrZNgrLsZFHumLuOa3RSfEi6bYfJEypDElBFMENPaKmzvASx3Q23EIykICHD80wOwaUwlntubOXBhGk5S58w==","shasum":"63cdc89548317577da133d40330fcfd8a6447946","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.4.0-beta.2.tgz","fileCount":10,"unpackedSize":22183,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCEn1XCyP2QwteecdURicIue0caWa0HzQjK24HTPBNBZgIgZsa0iy5KiUlBe3+nED1wHJ8uI1BTMmf3xAQSDW6pkKE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiT9AtACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrNwBAAmIoptmX3UyErCYJ70yoUv9JkDXtFDycVMOK6G4yiNNjYnI5X\r\n4jqMqbPcrR0B5S57aR9cbsElSasU73OHhcMaJMDgiEIxJXx9ZUbHgfrDhEU1\r\nDXfmgy0wSMwWe+m2Up298wKJO64vg33V/iuDW7Cuz5X7O7cchelmpAWIUYGQ\r\n40x+6YcW1WBYefBhCL54B46qbwc/i/WMe0AjyIaerZHCikihlIhi6tSdnWa8\r\njD/SpLItKDg41Fta2tivHGVBWPGepKhE7tEHw61BPEqJXwhUeGruuTRQVeMk\r\nSyk5PbHRDjFaH7RR21n5Pbwy+QLGFhWi4ZKHri2FqqMo2CbP4niXPMl9R4LJ\r\n3tJpgCgQfnFurdEVuAfEToJOgKcnS//gXu05sUQiKwgxN+zFfO8Ckl2fvnJ+\r\nN8OVYzn1gaUhvvKHs8UhONZXrQUfOtT/qXFvkvOcitsxiHRxU4PT4kjbdyHp\r\n/sVL9mCfcvY+5ZvzS/wWRKNW4VZU8Jbj8mFmiKdifQfYmSHaqE5Nfi7BhMyZ\r\n5p2UXedW6bdmJ04pdksHpyu3zApHIcfeKSjVb2sXPhbxe0yaPiScE5kEzfle\r\nhl+UzCLcK9Cg1tZxZBiZc/0cMKTys0Gojqjp4BgPxrmSb3OTgQ4fwres140w\r\nRZNU23WDdW8PUArvBR8ANPbIqx/LXicm0XA=\r\n=uF/B\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.4.0-beta.2_1649397804929_0.9520459553284686"},"_hasShrinkwrap":false},"2.4.0-beta.3":{"name":"hasura-cli","version":"2.4.0-beta.3","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"fdotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"79dc712937a6a4b6ad0eb3ec927bfb6c41919400","_id":"hasura-cli@2.4.0-beta.3","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-MisuW6EnkfKcCF+wHN5tfmL3JNyxs4mfg22KAN+NKMz6fV0J3amqCDCPmP2yz6E6CBm6L4p8h3ltp5EwOV3lmQ==","shasum":"3b34da44d03aafff41ee0ece76c453606abda36a","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.4.0-beta.3.tgz","fileCount":10,"unpackedSize":22183,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDlAPv9DKT42ApaDRrqMpbBW2Bqw1HsKS0hkCUi1yFBiQIgNIkkanmyK8Q+kucupsaegiLOaUubTIwntOOrtoT4yX4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiT9CPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo5/w/5ADe2bsDmk7L3NOdB1qln4LurzOKoC97Z/w+VVqlTGReKT0gK\r\nQe4bcKKQbtGEKsSsAAroZyfb+vaMAve3VwAYQO8GQ+14xgfUhva0k/RqznlG\r\nLO/+esBFyLFSXVf0fk3I5Zlagzt79aQ9uW/SnuHwG1R+KJ3meMyZQSJRyWXN\r\nLYubYV6nHUU9NEs7JAG6bmfwR5px4VC15EA0sj3MYgk/rwC9beDDfekOKf1R\r\nmGeuyI9KSKM6lKavV9jfwKV2cB0tZyGy4B3dAibJspIMJVGYDan+IqKmmmub\r\nrerPdmzdrBrrXnzE/sHKFgtr9hO5pX2g1Y6dUeNjtO9IqAe5lc+0c0yZ0FxX\r\nnGyNZhU+nZxTZeY8IyZU6QttMS0Mynr80I+qxLVzkRuSSYfnJZPXMOwuD2In\r\ns39wP3ABbR5NDY1w8UkJZkzpw3o2Z2ZpcHt4oL2V0w7htIo6n5bKPeqZZpLZ\r\nvWsCb7Dj5x4NiW6iZ4mwzbgWzZyJ6MuG7P0yFdktrx2EGchZrWbBeglAkxhe\r\nnzYsuFIjQHpLvppaP4iK9Iw/m7a2Lbh5rsgyxAHAU1dozkRd3lknILJZIjq7\r\nZ5JRPOThOavCiv17ERt9GGs1j2wzyKW6w6ZbW0LgfpRtmM3f01YgC7P48npJ\r\nZGf9bUgFLFZX6rhkJSvg0/RpA/5nn0PTWtg=\r\n=tEyF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.4.0-beta.3_1649397902748_0.6641940593346491"},"_hasShrinkwrap":false},"2.4.0":{"name":"hasura-cli","version":"2.4.0","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"fdotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"857bb20562e478b6dcf568b82e9c96cfe375f1ad","_id":"hasura-cli@2.4.0","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-xLkaFueav/qqud29B9MrK7gu41Nh0ujEX19M1CGhs3Ae2BQ+G/pQz7ogwoMHb3ElfQkMAqfwXB8MliE52FNU3g==","shasum":"68b3e50169b5a82e4a990ae8be886d7612c91511","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.4.0.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBEJGOtisGra10ev9nk2MQD4eS1+9lqx9C5EbhkmmujYAiB2UsnQrYpCn6TO+Uv5MzoZK5zYUgwgJCZNCEhAd7o66Q=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiT/08ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrr9A/+N7e06/Ewb32WGEP2HrdliuU26dfzETMv/s+wStuAVbi4a5jP\r\n7uKNHN1gQHNjPrcE/uYe0Bup4JzG3OnHbZhgWazIekwrZczLDn91SLz1DvE/\r\ne3S5tWaXDl7Ybnp71xyzpfYt4sSaJpZwS0ow92T5qLG1Obv5dnW2NTtCRe8B\r\n5hZ6FvIQJXK0cAqyzUxfBQvLx/MItF2+099oPwwsBmIwul2121ehL3cACMkP\r\nxvMpSiMc9e/KJgg+sbuK8UNZhjwr9sO3967CgxErKlOXz608j51t6btFXXca\r\nfGweNIE2Io8EsqoR3wJWJdAg+hPXCWlo8VcaPPmwquSwY+pvGaOti/RIBHgI\r\ngwnNIGkMfZW7AS3uQilLpGhr1uMUf254M7CPwVh2NaG//qgonh/2Odp4hay4\r\ntjeRWd/inwk8ziMNwfXXwIQ37cFV9sjizEywqyP4XggfXa+B0x7mLjvWeG9M\r\nuq+A8V1aYkmPOCdcb+ZbLmMnfcBLfXP3StWSQGhbzlSYtUo+1/DGZDGxk0vk\r\n0B6M/hThUL4I5yCZRI9SFYPMZsp/6e6A/jqiV4/rufgFXaLxt4+UFMPTpJPI\r\ne3d8bU8ERk7wPKVRTciXEO+rTuFDDQzmak5zvRB3X77IqsTPRa9dGtc3mf+a\r\nLoYbRaLPFiqf9dtXjOAijH/RL97dwt+lEQs=\r\n=fbb0\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.4.0_1649409340033_0.9101582639407158"},"_hasShrinkwrap":false},"2.5.0-beta.1":{"name":"hasura-cli","version":"2.5.0-beta.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"fdotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"857bb20562e478b6dcf568b82e9c96cfe375f1ad","_id":"hasura-cli@2.5.0-beta.1","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-Uw853vaAEhU74mIwYE7ineofvgSwDtJlKTGz4Vq5e9XPW2SIT3zDf9vHbq6eWmn7Vsz4NLZH5bE8XUnoHRtxJQ==","shasum":"474f3593281aa1b1a69148950e6bc73cbdea9753","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.5.0-beta.1.tgz","fileCount":10,"unpackedSize":22183,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCyW6D1ecTQ/T2CFbU2+fXC6viNhRWQrdWd1ug1Ia7+kAIgY0kuljgcadJ+5+0FiVirBe4diO0VJ6bcuvWU0KGEK+g="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiT/2SACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmquYBAAhBVhEtv7SXc/P61pzD5/Iv83lHG77GtNub7+SesUWdXGAdg0\r\nWMLZq0sbJaDqsIjD+oRKWQwKUEZcaLdjhQkEriOqlc/cwhunrNHs6AuC+i51\r\ndIO3wrb301ZwpSt2Tz+3n4kMO/bRmrPIq7omvoRZfsGEjuo7FGgSTGG6QPcC\r\n/OWz7z/Mys6fpBu/EvKtMnzwpWE1/aLmwpzpc+Wwo6iqILZ5c3vGf8O2dUWR\r\n1M6C62vzHHyPnuqQNSWyUkr9Zc3YVSd7DS5Df1lhrIMnfSgdaY3mpUFME3oz\r\n4dvF+DldiQrj/UcFRCG1mvYzF3Cq7vyh3NrNojg88EotWoMRrEJiu2xTBnRp\r\nZPAA7JjYx/v6reiF2SSeny39ZCKHVSQjWMcOVeJ47mYlkVCbUEhRO2trnXsH\r\nPwZYMOYQztIIdUKNjdxBtYfTPXYRHVFkIglhGIaBr1BARpjCPUkR1L70MPND\r\nNkAhBFNbGdabyGCJzhl8lQBL8obeCQmOLeERIBS7GxzhokHnoJMduIGoI+aG\r\nIh9BiX4fKB2dBSX/c+5fN9ZpROWjCfOnkz6fZQVYisPYkCuAe02ww8bVJMYH\r\nbOjz5VmkNButPVpZfsym/HaICW1GerO8Zb/HiUyBQ2pcHj+HCTf3iHeKceoJ\r\ngHakPt2dJ4E/0piqnOGB4KC+njMQDKX0ANA=\r\n=ve/l\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.5.0-beta.1_1649409426251_0.37865288646436146"},"_hasShrinkwrap":false},"2.5.0":{"name":"hasura-cli","version":"2.5.0","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"fdotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"e4b2c99eeb2e5ce5024b11885837c2b9bca17c70","_id":"hasura-cli@2.5.0","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-lYUOVpfv/cmqZhGs3J7IvAegu4KvwRiLUzCpRBRyUQrCl0IyzhPRa8rC/HxMxzwOa1hjhqZGwrrWCZOJRE+W8w==","shasum":"199096772bd7551aa505b9d498e04b3774568fd9","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.5.0.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDjNpXN+h6qMSVWFAUyJ/wLstnpx7FEe9s3mlaQrrK6hgIhAPJPg12/+tiYMwPbMSk6kIZU2rvKqGk/mNpEgCwNkHXH"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiWDm7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrchg/+IhTrerpeL3ULAdQAPIjcNrlpvwJNnls5AhFEhYLDjawWY8B7\r\n49jH0WIrZP32s6UovHivTZYCa7JAdBex1DcOXW15RWBJlN0gnUjsvytx2F+z\r\nr14h13nX34iKNKe+4NjoYvAgfAuLCyX9ngTBsLGLmttGmeXUOnS3DpMfHSG8\r\ngQLcWL0ML/7D7nC5n45kwP3cH+j/hyK1iEe+6wUskEVrWqTUgcKhTaNM+XlG\r\n7nCAxZbHWfxCDdaZsa7BveZMn3KnrDLz94m083WSLROGuE+ZDkgadbMOM+cs\r\nryhdZJZLOI0h9Iu14m7LWAYw59ECUMrC5/LM/+8HHPAFA8tgq7ht6XYmfFCa\r\n/L7uwpb22o/z0eDzhDS6pFQlxz1DhmY58a3bxz+QLfmYHVpb3UaTPhcc6f4N\r\nxbgjjswFUL3Pu47mw112HOAZfcl8gc8t+KU2C5iuxs0t+8PUOeBynH5wbiEY\r\n5Qt1oa0IfSlfLNCaRRtW5l/j6TkC8yTIHAKRNGH4R/hD+cQUe+OTArHC0pDg\r\nXijw7Qfv9RikySR7HB7I798em/Tp8AI9aTZvgosSE2ix2u1b75OjvLLXRkpQ\r\nd6lSuUUoD7DVgtUyAqHANWWzqfFT+Aygs62dyPQ+yJsqRxXBcSwFE4/DBTme\r\n96YruqGJnx1uUbo2pfTbvitgiCDgB7lHBdM=\r\n=guCP\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.5.0_1649949115324_0.8861560398829065"},"_hasShrinkwrap":false},"2.6.0-beta.1":{"name":"hasura-cli","version":"2.6.0-beta.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"fdotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"4764427061a643c7237af2a65e8c5467a61b31c0","_id":"hasura-cli@2.6.0-beta.1","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-LeUkv440tfNIrbilta5ipiZ7v3nawVtT6a+ZIqFRzJnBXN9XfRX6iXpwJq7BG0JErgX5NNJndZeARe7i58iesA==","shasum":"5b2351e6484706076e230ab07441c054bf600ff7","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.6.0-beta.1.tgz","fileCount":10,"unpackedSize":22183,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDsNkmXgJ2HtEgBAlx87kJN/eDu+IM0g+QU1ho/0IsJQAIgUMjeaHYEwrSjQDYVIGoPI90dvN6vHHDOW/1UqegfdYw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiWDn4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmosjRAAg1dVwxUSne11Zx/N7draKi3wdijF00AY/p1fhRP/NkWoNP1k\r\niiKiCFR8SeI5NcQA7ScB/Ps/wNv6O9tUWGdmT8xcX4nB1J79zPOA+nfOlUHe\r\n/Csf24vQKX+k+AdzE9G+FtXsNpi2PuoZZgMQbvd69B7/rbTOCdPcqq8g3rVG\r\nQ0xGqAIVElLAAwC6TV0oeUzeVNGqNBQLRCvGKapyhVA4lNT9S01O7W/GlQNX\r\nIlNP9jV5WQEIN6lQ+f8iQ1mYU8/4+ssiNqPMok2X8SDblAiH/zmEo8AyBIfQ\r\nKQCxdS3ncKZRU2An0Ye1dz3LRMrMVrgiDXDVvphmaUI/Z/ANEB4HDY4MBhcQ\r\nIvkeVlDDaSYgqlA5nUcQU4ZDV7g9EsfJ7c+7sM9XA2ooTVgU2gCl1sXyMlIP\r\nDM+4tWOWs9cFk9Vx6fVwXQCz0ntk5adBS4wQ1BEPaEl7ax393vXbUcsAwFHA\r\npzrthC1aFn8/w/OTq2f/cQ7+zcC78K2IVgE7sssWkYvT6S1TzhWcCuSUuIGS\r\n3lZDTQs7XwGOeIbzAQ9Y/25aX14gtJplAD7B8jCqwBgN6w78LkYFyK3N9NyM\r\nLfpFzOZ8R9IZtEA9wwu+3BZy1D9nvXoOaYubpJ59OAOb12ESPjcS+3McIWrT\r\n3zuiHlTEQRQSMngL7KwQHNGL9NOvXewMwV4=\r\n=KXE/\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.6.0-beta.1_1649949176816_0.6043205544584993"},"_hasShrinkwrap":false},"2.5.1":{"name":"hasura-cli","version":"2.5.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"fdotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"1b1eec197315b92aeb5b3732a71686372a09f3c1","_id":"hasura-cli@2.5.1","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-PG75ueEjAjkvkU7WxpiBwi5/TOfodeacdKOtWSa5VFYMIhxBXIx4KPCOyZTLNXhLlWK2KZcEsLNTiNlR7jwLrg==","shasum":"6d0e7c289562c0ea8e34a0906292378f757e7a58","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.5.1.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2kpu21wVG26IA4Pzcf5wN2T1pl4PNaEOoAE6ozE0s+AIgR1yp9thtBwHPag4ygQLjK5QP2g+DFaMuONa2mUZOgSE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiaOjEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpWuw//aM28vMzVLduyP9Jjm5Ioiccm3uYgMnvxN6nwqsTGyV/D3UuO\r\niC6AzOAgbsQ35C9+rE0Xg85E/+CcvoQbUGtVKl2ukn2f/PqjrYoctJBOzTq1\r\n6ORoXMe5ZF1sYU/lOk0jvsut2fKccVgvRM9dQLJu22yBVsBCXEhx9nV8zV7e\r\nlGMoO1Sw4/LQRvKvWtF2F2YQMe4BVzG9FmL7hbX82pcTzgYZwnob51y4CIwK\r\nTkGou9U7+RGkDw47Zfw3VLpUxWLwXT36vuVu41gdj8kagYS52p+JrXhTrQB0\r\no+uRjetOhw0xEpaQCCc/xQZeCnVkwE8aR+hejFBDgOvPNMomzndN0KQRv3ko\r\ndqOTkdj4iaUoBZ5mXYG6seRlB51WUHO7D6P1Kv85M5YJH1gbFTl3HFrsR/8S\r\nzDRlLy5uqqFDNwseBGKql3OcahuvnKyjzEwCMw8YA0MHbi2x596MPD2XCWSn\r\ndvVmnLCdlX5tm2KyaP5UCLu3+YhySzUpt0zBeqt/dlnDOMIy0dZ9kfsQhQOj\r\nPxPcbaX1ycWxL/fj43KLE+QyfCaY4+dbynaZd0ZwwQrU+QYiErvI/yLbBRSt\r\nRnFx4nq1ya89zAvMOAutTaUUH25hf2J2DzYOSd1ggsAJhPJx2OVgs4xddP0M\r\n6WZsUW3ntS+QKcmzMQ5xAEI9Dp2F+GBphFo=\r\n=caox\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.5.1_1651042500173_0.7940400567574275"},"_hasShrinkwrap":false},"2.6.0-beta.2":{"name":"hasura-cli","version":"2.6.0-beta.2","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"fdotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"3a5909ffce7e7b0944aa566f2386b077b97143d2","_id":"hasura-cli@2.6.0-beta.2","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-eocjHzjkmpEmrrQ1VmsfSqbSlKvRsXEk4D65km86xTpizGOtRaoHdURe5tU2LPNPgwefURQcYIFg/kmvI7nxkA==","shasum":"70b03ddf87acff9e972eb57408b8e14179d6e2fa","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.6.0-beta.2.tgz","fileCount":10,"unpackedSize":22183,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCEb5wyS+IZbEwarKT59rsPhtTbfk5PSHSrSU2RHbXdAQIhALgXSwx/XSEB8XP68SMXwvsvELM0bRg35emCIBoRt1WI"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiaOjwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqn0w//VrhzGxgv1PulW8/u1mTVGLuGNZdS7adxUKsNKjRr86PzsLWy\r\nOfXWrHl7f2plRa/fGi5cXao05T+uKSyymFXtp7PprRjPX75oml+6/7doJFuB\r\nvxIAQRri52+IgrWzz9vY0cTgnolme3u0ZnptC/G6Ca52rJhOjaJgWi/bn/Yk\r\n8SFRNjZR98QocnSe2oLoPwaytsrSg44cKh2miFVeTXu1xBxBHM7oZfvFwBql\r\nM9gLsCNPjrfV0aWpOdjsQdq5l1z2cS+NRlxeFU68bKAhJ/IyQNf5R2IG2L1J\r\nvM2i0fsV3KkvoXgqLwb0eKpmrIot0vqDinfN58yjAuyU0F1hQAsxkqWft1uN\r\nfDtQtxS1LK6zTSMmXkZ2n/I+reI9kEnFMrbqD/lzRzi62Op3sn1CD9dYEOr5\r\nIvSB10PElwcUD9pfJFGmw+aHDM02S9uN6DyVi7j80oVG/XQRoTpYag/3oC7V\r\ntyl0J79sFapSsutUwsHafpMjOA2S9qqf3N8jRCZCvXauovZ57/QnkLzQSoa7\r\nHDa01W3WLepDqIvPz+LJmFvKUbHgQ4wKCX1hl54FFtcuk02ahDvehSBAbT1x\r\nyn0IZOEi3i8HKpIA1EvBKFgqnqJRdBVtwt2gyPtEVTREQlImLWg0ChRYqJ/S\r\n9Vdyj6MvK3lOipTbhDelmtn7tx5KHvV2W/k=\r\n=fpIP\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.6.0-beta.2_1651042544017_0.4644420534315654"},"_hasShrinkwrap":false},"2.6.0":{"name":"hasura-cli","version":"2.6.0","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"fdotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"e5776e64e62931476b147ff1f356177c6bbe8272","_id":"hasura-cli@2.6.0","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-nohlfU1pA2pbexUG2sfUiRHGAC2MPv23rKXFc4N099DeOz6/QYsDW/idlt0r72NRM4ddusEmaMiKKsGM/OVDhA==","shasum":"d3c07e308ded711e556a2a434419119c636e5cfa","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.6.0.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCjZXyZ7l1JpZSvutWDHDcL0Ooxt/OCzqp021Cip6mOqAIhAI9omd8Uuwl4mIeLAnPNfuhF7C3q9WLzNHi+u7vc/+0B"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJia3ALACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrFkw/+KtxE4tGHWgU+UfMEtQuNQcF10pQUbcH+F22V/nq11SPavWD1\r\nw88dWDN3tYVjx2kz27viEDPGyJByPAbPMNG0pcQugbZvH/fRu+YW+KnSyick\r\nlEE0H+5aLd8UPOiPLdJuCi0JMC7W5Jwo8hFNoZOWOArY65uLtkfKLPl5R6xf\r\nm0HfEVqKF+sEp6X9AFdxtERHL2rVNrhtfvsA7xX0aXQRMd+LC2Z7XxN98A+N\r\n1g743xBaCJlv5N8P7LOf5UGTTWDMKZfIoJCsRoPa+6Nm8w9wng62M/UykuVG\r\nr/TNWYv84l4ihWPQsQnsrKDnjLW3ouglV7WeNmOd19SnNnB4DeommHTnuuG3\r\n5EK5YOKfbN7zpR9j6F9VUCvsqZTU6UZsX9aXnOoLW/PL506YZUOB60SV+ZJC\r\nE7gpZRDGGMXz0TCI5yAn1PRxTMyUae2nfvHUn0a83p379XU8KBWrutUaXYzU\r\nXSCBQHQb58RYF/DRTTu0Gm7iEkAiw/bvssb/w/PcImTCbCzZ6H0lc4USirgE\r\nvJ1TOYWBNGjyV4YHNrSC/vK/rNsa6ZaoBv7BDVYMno50ag+0e1/G8Pn668cz\r\nS7K6t+8tIDB2B3reZEGb8l51oYMsu8jBRO1Mw8FfBPDLDVeyUorweZ+k24Re\r\nlVgkrQ/Yco1FpRRpXpt5h9y9IDOHbI56JK8=\r\n=2OEx\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.6.0_1651208203751_0.913608678796894"},"_hasShrinkwrap":false},"2.6.1":{"name":"hasura-cli","version":"2.6.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"fdotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.4","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^4.6.4","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"c94d4b2abe9dc10dced89f556f5f11c7d9ad206a","_id":"hasura-cli@2.6.1","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-0AdqIKEsXQ9R3uSykFzREfXtUF0xaxRXmP2kBNQbusaoDUO2VhnRjBmhCgu5DEKaD1U0Xk2jptDubZlxQVFI1Q==","shasum":"b81c9a2ab67239e0621612be9e438379d60b2848","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.6.1.tgz","fileCount":10,"unpackedSize":22211,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC4hbBfXziepeg86rmS7red0Sy+1HNbMpdA2i4FpjQf/gIgOYz6JbRPbbkpuiCud/70lvVE/mPT4KXC6Tbr7Ev611o="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJicksGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoJEhAAjPtXxMzR1RTn52HvKaa09w7/ijGCI4D2cr6xiThBeRT5QzEF\r\nY98X02OkK4q0mmIRLEhm8DBzc2K6pbMoWFe2atoHhRwPDdF3zwcWvybvaBIJ\r\nMzW1gA/4uNB4eSgKVR2F9PLqAg3abkXosuFwvKcI3etdz+LmzH6t/i3cmece\r\nJUsmJzEmyZXzlbfXk6YYv6du5UsSTCdeG06oyM2fT1CxNKbq2FLLBFlVTvFc\r\nadl+7H1d1QZ+j0FEGwxL/2xwzz/78FZGpfiNoZnsitHZKnGve0wyDFuaR6cy\r\niswkvO6n9qTWptRAQ88trTf96mehHG2GzSWRUD4ausq5DVcyWSNP6HJ6EBv/\r\ndpdNLR6ALVlMwSE3NVt1t+BrOmSLEUkOPHtLRg17H1scymBwGTBXOaTEkwws\r\nCsoSv4lN8CAAynSZ6jnnWSID/940f7DSJYflMTGi9Dz8kw/LQbd5OEwAQRdL\r\ngRx/tSOT5H03MYzmLcwUfjjOiQ5E71q4oMSJxiccsqfRBdWQSyyfHK5gOo7U\r\nekrEnQg3DHYkoo4QZHHJoWG7yCCjwZyDFcvKgtZOzPMyfiOM9B725msOhw4X\r\nOBkmP8qU7snxbHtJrB/ucI8LbvP8YoWHn7zyOsjY9aguI+KHeFRyLhVTkQ6S\r\nhXxkbVN+Ufh+kOnMonib66r8dPx+rIZDWbM=\r\n=pf9b\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.6.1_1651657477895_0.6415573270951578"},"_hasShrinkwrap":false},"2.7.0-beta.1":{"name":"hasura-cli","version":"2.7.0-beta.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"fdotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"0f1082087fb9bc8e18cfdc3ded4fca8608d93688","_id":"hasura-cli@2.7.0-beta.1","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-saqWkKfpMEt3kEGflmbuIJHhazUkG1vJTWH6hTerNMa3iW24vg6YtG7tc3WMSofp7AmdllqCIc7/8HZZWhMOJQ==","shasum":"48725b0dd7ae0cf5b09467314389688978f6dc67","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.7.0-beta.1.tgz","fileCount":10,"unpackedSize":22183,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDOM1zOBlmut9mwZTlm5bOZF518zrXduUaRa/sHlbeWXAiEA2dJ/9Oo4opOsnEEF6Bvy7gjpuSQQkJ9JntXLhYEAJXc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJifcjsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr0LQ/+NFnRHS3LNn0vmDmomTaBAhI/UPycq6TFx3b0ZsF6djolbWEm\r\nOJn1hKd3mFOxUehUh4n+ANhj7PDkzSGH/uEAlXgYHHpStWlUyLrF2selUMrR\r\nLz/nZcurIJg9dJHhDjGA/ZVV1f384eaTZUOAscYZxS3ov8hU9SM/BnuhjXCk\r\nI2Mv3QTt3RcZRGmJvzgu8ddwbgYuKBgpi/KN1U6MoutysGQg1NSz+whfXo13\r\no/fnKB83tV4tlWhW8wGOGAOp1k3bUDiydiAHNkIk6P3RdQuEIRQGiVkoGPfu\r\nGE6HGO7DURM2ThTxhPXMo2m/YUsV8JSvNUWHpJJAqMsx0L9+tIYgFdtmr0th\r\noKmVgJetv7hwxlnO7Yrq3lcFHG1AIGrc3x1iNvjXfAlBQD//tdroEujd6tQ5\r\nhvZyEgVavYiSMsi2vr5oUc1RZ/RH/kqjgVdXqbWggBJIn8dgctY7T+7MRxSo\r\nKRdM6GA0KTDRxwmsxdSXcoV8L/Q7KtM2Pu3Wl4jrYkIPAlhgju1KUd2BGVOg\r\nWiixbkCQ+jivpnrTcyWIlLfDqCN+kVFyTsYc58cemHgiEYcfnJUMu7X2Fm/+\r\nGhOklqjRvSdvRgJlq9zDBYLSHKSugyl5j9kwTqlziOp9YtZnO6x2XpX5UJfw\r\n3KGsnat5kc5V9XjNiKoy1RcU9X1g5dO6TS0=\r\n=5ueV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.7.0-beta.1_1652410604041_0.24836338480605735"},"_hasShrinkwrap":false},"2.7.0":{"name":"hasura-cli","version":"2.7.0","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"fdotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"83f8f59d4981dea656b95ca57d47f2da009284a0","_id":"hasura-cli@2.7.0","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-wxoZE781ALUV2KWwhe/ezmtaUCtK/XMVHdCAkAGJWjq1dQ4r2/nStk4RMBxRLFxd7A8YQQvd5A6CTst7S45BMA==","shasum":"981f7232dfe5f40ff6f0516aa74c674ae436ec2c","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.7.0.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAUxQkHaoQNdwq0VYmQj8J3ryRqmFEey4yx1/BHWQrPYAiB+Xrqg7kftifItHrjI92FYgS5xJMlrEu+L1Wh/TLMc0w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJikt96ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo2dg/7BP6xXawHq9Z24/h0KO4XsV5w0BnCkc6DAcwRX1I8Q6XDVP9R\r\nNNcxKcHmaYBf6lfMSGK4okQPQ6uGQ+NRm8RAjYgAZNOx022MpSlMkfY0uAVf\r\n1l3aZvSG13VEyXtwqS6237MtL97RxjQsGzomRrDfFVfGXTv65yf9TO1FyG9V\r\nA+ZaWk4Uqf1izYq8A1bErErjPg0DZ+Gl6B8ECsxPUNTZGhP1FHps33rZpmiu\r\nSX8OyhoEoz4pysvO5aDfsCcQKwJVU+x3x1cVnSH+WVnNZTE3zQ6iHnI3HOWl\r\nAmD1iNe1j1+382x53e0aMQiFN1x11f0YQ52uXH0X2dEjw+FS8TkNZ5yzdATl\r\nEYlLSiUu4p/k2xyDhJrP7ZFwxGCPxkfwz9wxZbWoRc2lU+eaJwC7XxskAiOe\r\nK8kgbyJ9uqyQp+vFfN6BBKbflQq1RXnS4H3+aXhrldX0nsrG9w/PGLpcd5jb\r\nbH6Mc8Lq8mtBSI+/wWt1q7rxj45BHHp2CpcL0Luvb0b2LQxkPNhlXNE3bAq+\r\n/moojbQG7F9b+NJZV9zPndVVdwipRupvgJ3oeftcimvY2G7Mq5xunV4Ne4R0\r\nENbUMbZWYKFJD02BE37tfPGMejR5sY992vMVNKpXEv8oZpU6O/DaI7b6PHcc\r\njwQ+NbcKVQRmHnhoZHUE0QGt3jbB2II3p6Q=\r\n=z/ix\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.7.0_1653792634638_0.28758008273822555"},"_hasShrinkwrap":false},"2.8.0-beta.1":{"name":"hasura-cli","version":"2.8.0-beta.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"fdotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"308b7cec6d96ad2ed766bf896301a107f1c197cf","_id":"hasura-cli@2.8.0-beta.1","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-bzgIjzv7XYNkupHmtSsqy8Dp1yzynwBzQLbKSBMPUPggM3qdFHRpLEPxdAnb22Xo8N4lkia/C6Lop/5gooWHtw==","shasum":"2f6f22b7cc7e6e839e559b5e93c1fde4b160be99","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.8.0-beta.1.tgz","fileCount":10,"unpackedSize":22183,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH6sqU/+q/pDSUvHAzNHtZQu7+HuRWO9yYQikALBBw3mAiAWnb4xAdxlOGFjFDsVkNSGme32W+kfBx4gurVLHJAC3g=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiocHLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmonlw//dgPwIn9s+wXBh51quThzrqCtj6gX3groTXppA8/eeBY8qzdj\r\ni5s/QXBZf+AcKblHu9D/7B6tc1YB/5eU35Nj3SGx/OhNtaOGIWFuRf5OgOBs\r\nUFNePY6e1cBjcEzthU9iOz0u6GfySTDU5UJ5dtCSNrUpK5Mrrob2EF2oI2xW\r\nG2nVV+ZUJh8wmWljbU9bCBYp4tRqo570MM9XjfT0tQzPZcTfQBh1h1pjdkH7\r\nIMUWRt+UtpcCiZ5uMMnsNVCasf9fgfvrajP9HZjgZVHHZ+YRwheILuoIcGsh\r\nRvzS3a7cquaszBzC1E2mo+NyVjHq5N5xfReN+QTYQOFKVyQgBE8iA1V7hv5V\r\nOPUKPtxZHUMjL5K7psKe0t0kXISnyqzmesiOZcFHESX12rkOVpDvU1WenMWX\r\nFihiWYYXVXUdS1PIhzgOBZs1EurZZh/xxo5j9LWKBWmoOWh3qaswj4DcYr+Y\r\n/gKEA+2RjQKjff16zobpa9Fxc+VQmvu4dNrvX6JWWnd8YZ3UqizNXq4FNp9C\r\nduqksUa8D/dlElDWz/Dz+UDL1XNJhOhw8JJaZ+Ns7FHDBTYUjSHcTFTE3wdm\r\nDM6cuTbqjbN0sDx6RtnqlWcl+HFa2hnVDatVE4KJHSI8XpHzly48rpsFlTPh\r\nCALpDyktgrGXdUI2NxRdQYuaweYqzOxb1H4=\r\n=9mXe\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.8.0-beta.1_1654768075080_0.6257071375000269"},"_hasShrinkwrap":false},"2.8.0":{"name":"hasura-cli","version":"2.8.0","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"fdotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"2a21c174b52d78c352cb38ef10de9584d0e5f540","_id":"hasura-cli@2.8.0","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-mU9dfi7PISWZz7+VQIpm/nbUMLAMILlpC14FceoYM8trpjxzDMjokKRtFXi2BF32wNXtAB41bztBi966dBMSOQ==","shasum":"d8cf83722a31f937cbad93336c5efc8a3ca31bdc","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.8.0.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG9Sx+kpeF1H9VaL0LaGDa0jJVmxiwuuQGs7dlFx5+VgAiEAiv23ftp48xTX3TRMCD9WQalVU3fWxQSCCMgqOiRrRDY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiwr1OACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrlQw/+Ilx2oVOMvUm0aDuj3L3uIq2GNWxXVfd8WiJgb17A9R1yOWXT\r\n/DiAdHo7Y9yxKtqYfcSgNhv5KuwQmW18U+woqNa5yVuYX4NL3vFirkTWK2ek\r\nc2+6IY+b3mMcLvw47mvEDv8BP23GzweCVpG+e+Eu3fzBz9hevEw0IEkQhxZX\r\nUUUgeD3HkDtz6aSqsXeepYnoe+DHKm1eINxtSpKxYxQi2TuOxiyah9a+m5TP\r\n0h89AmxJqvQpNRSPwIhBzl9b+XdlNFi4Jj7D4WBzIu1HeZSZh0+OXIhbwdDl\r\niOX3uA86bC3NvYZ1q4KyBIIJNbrF8pvnX6htjgrrR+Eg7W7f1V1foFIdwqnd\r\nQx4D55saIhnMjh/kJiG5HOByIqjLGfomCP6hyFCA3HEycyrAEOvz2JRbfbv3\r\nGjWu2wUvuMXnd8Qe+ChN1DS0JGWh0Xc06ba1pDMPnZWkwXgfqFhJ14np2vJL\r\nHsj4VH1Ztr5OxOserc4Cl9sjeec3AHmXGk15rcOn+oWHVldJRK/Vx6Nn9TdK\r\ntOkojORkuzDpPY7O344Ck34S2ISfTxTMpkF8KKfjb1i12m2C9Y8aIWmstDnN\r\nG3sZ+R+RO6k2QQfvSbnWo2GwBDPA0NsSMgxsIxlcHy4jl/ffmlMfDeZV7RUq\r\nwTnv8Ge1Zwme/47WXONR/0p1DFYhvWb3zPE=\r\n=vc9Q\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.8.0_1656929613958_0.06672993443230357"},"_hasShrinkwrap":false},"2.8.1":{"name":"hasura-cli","version":"2.8.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"fdotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"21cf36333c8036b4f7fac6a3c11822172379221e","_id":"hasura-cli@2.8.1","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-vz4SD8l3to54fEXZuoO/xqkdt94cJgdjpBZj3wkD5IjIDQGCXs8K5Eu49y+NwcmYahYOvgUCagYzN8RuFfKzvQ==","shasum":"d92495236e7704d75aa21d4d401a0ce0110e03eb","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.8.1.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHK2GgOJTbx0jjsgX4I0degXUFW5ncN9EN0DrUz8QrDOAiEA7MAl/XZeM84WodJVJ9UTF6iIndIwaYD5Ni/PaJXKxVg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiwr2fACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpoiQ//cyh4SEd66zi7thQvyj7QvBdiny/wmaHhqIeGo50Lj60I3Xjy\r\nZOgJxoP9DhaPfEWWhfHlmWObslBSa+1ry1ZmvkYrjtzivx/UpK3UKWqEp6bn\r\nv5xe+pk4NPARr+UaziFCus9Nk+1Oic/dv/4uKuqUfmryhpPu7jnHd/5iHxik\r\n2hyBpcByvKgY/kqXNPF71OwcxHmEo3ox47+b3UyMHQV8w19uIpQH0L6JMjR2\r\nSJDAnNHa/pwnSrR7Nb1waafwpnWiJUutMCtb6Gfqu7C0BUW8Mi3tkS/+0lgT\r\nRc3sARMiG0VUjxzgOiYBkvd9xbJ0HlD4kkZxbkCwtYKqfYz9zBmEw5ldtIhe\r\nV8ehXG+1/kVd3fq/ph/S6f3CTOaT0EDxVSe1Y/oXOqfJitw+z/1K3SrHMGnJ\r\nbZBfsfk1EycetZQwFsK1SArUvC1bZJncNjCVPxj3zN7OsoXQNzyAqbCUGxSi\r\np1Xu6OhDYFwRcePbjc+uNkyTeFJc7Jbtq/1e+ktyUDWs36aVc4YHO5nwHUow\r\nAuIjKQ4me68Xoy8B/8p8lIcaJIYVN1s9HQf66W4+VZQXy1ajov8sb5UCMHu8\r\njQL+KnARb6LNSuipqC0iLVH1mxnAej4OaKF+H/NoRDaf3S3kykZqxJtrOGB/\r\nLMzaps1gDjmYcyLK/YwpI9RdJ7uJ9fatPZw=\r\n=D9gD\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.8.1_1656929695331_0.39709844551168416"},"_hasShrinkwrap":false},"2.9.0-beta.1":{"name":"hasura-cli","version":"2.9.0-beta.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"fdotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"7aecda3fae785263900258f74c12adb8e43dd68c","_id":"hasura-cli@2.9.0-beta.1","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-YuZbJugEBsOn5JHzWvGrPNkgBTZ/x4lYJMPIb0OWvoAedaebFrGmbiF4PmQdZeaRfze1oOPYp9cITp9Q4ftn0g==","shasum":"6c0e136279148e0f745c85592ba447c5e8986101","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.9.0-beta.1.tgz","fileCount":10,"unpackedSize":22183,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxuQZNN+GfWCgW1f1smUlLi8h70tijr8qbPui8oT1DnAIgFBCMqxGHZA3CgiquAYZ25MnuJo0tYtRRgnCfKUbO5bs="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiwr3hACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmooWw/9GpamXAjA+yfFMD4F77rOUS5vgY06COm6fngKSFR0vELPb7Yf\r\n8907r+pv6MvDFIp3enBFlCyghefIo0Zav3KX9THfuvJzesUgBc1ofoEeYotL\r\nQKNd6Lx/bd8vuPvE7XjtzR9OXfzfK+gAglgdBGnld3INB/6WS974Na3Q11dL\r\ntyfgVqiNT296qQxweiR7xBdMOL14SdG9Rj6y+kdnuhGdockkoSpu/+Ta7B5J\r\n4SLbJkNr/pvqoOd7lxWog8kn1rTrx/uCHvYiKQ+DRosrrye54q11kIqb++rV\r\n2UH/WML3pRI1ZkSFgYHcw3A4WF3OLsvPrZOyf96jS7dUcpIQiXojY/CMderm\r\nNSIe694KFRmT62F764C3lR+fMDzvk2K/sRHnL0QoHUglHCAisWi15hvSAe3A\r\n48tEGEkwuhZuTgTJRF2dG0CgQzBTOqrZMlQriq9+S/aPiFGvFLbwwlM53d/e\r\nZM3fwZ+KsqkWHBOWnfuRzCTILHOsRXDS1pnG+aUyM2P2MCuRWGgpGucwN0gT\r\nRr6QykXXxB7770fyZHG7wNqVRLxoeT4CNMTyjGco77hDHW4ClMawDEzzh8tA\r\nKYUbjYkjnHopWwNJ9A48u5Y/hbDl5v+JfFY3ZD1YpiX0+6wTVr3W2VqxjTKJ\r\n6ZXWP+IbKBrKOwAZ1JKflm4U0BF5FGsgm+8=\r\n=mKZ5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.9.0-beta.1_1656929761389_0.19755965230744454"},"_hasShrinkwrap":false},"2.8.2":{"name":"hasura-cli","version":"2.8.2","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"fdotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"19e5c7748a165335e5fcbb49936a04e3731056c8","_id":"hasura-cli@2.8.2","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-Kr1M4XQjfyMH7S/EeRQgRYYUZQ1PMLzeefT0Ca28TRqr90oIW7Ql5fd24akKvKmlZAS1EogjL0f4A4OGfaEiiQ==","shasum":"f265df4a3cc502a60dc7f9c6d25b9e75593273ad","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.8.2.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDdhmL5UX3+uKdbvqdXv4Z6yvCiktSxaINnwTLTxcRiLAiEA+HhYkQlMRmEtOskPDNuznQgDEjdBu+0QVB9VYfACcRU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiwr4pACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrfsxAAiG/Lx5mOO1LwIugmvMD+tWG/KiJmmrckap6QAjeDPGkqcX0l\r\nLzLyb2WksbGPErE6j11gt2qW6Che5SmBIxQBkQIlT6b+Zv8IjoTanev3AQ7N\r\nq9dqMe0zgR+WSGL5HOMVw43qdvBYhcbTZ6nu5GeTy6JsbdcqWEpJBcoQqNHE\r\nU3H4+waDkqpumu+gVYdwXNt6QB6nuuZ38OpHhr+7C40wz1VmZY7PJdHcFFlx\r\nSS1KTGHGuZWY8WzyI1gBpjsvOTAEnXdQllJ6FpWFQYIe6f7uygSPjAw5gyFL\r\nzNB2+GVFfdXt2mWk6MoEoT6JtpMFQnX1QkPGXU//skCgeYjuZYkStVTr/RYU\r\nrseZcww38j6iUaL8uH4L/G5+UntKfFflz11Kodoc7T8lt+uDy2pb0CJumVmm\r\nzf5N90YESciPpegGQmaGSqa/93qRklj8LpAdbKPCaZ5FL9GGKAlc6vUtoMV2\r\nABDezLHNJJfJocx62FRZdec5dsCLH/+UTTwUfaFsG4DANrKH+tG5bYUZxOsz\r\n2KkxlJjtlWTw2Yk15T0N5+UmW7rlXxUgP16q+DB/HiPRaup7NqWVQ2mj66H9\r\nmPIXJYDY34xOOYFGFPhxKeS9bHJ0ak/iCgHlu5eGgGqFDZlviEOg7TnWXW1M\r\nn+ZAKpuCrgNDGMqxPFR55uyBJ3QEbxECK8U=\r\n=LHTu\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.8.2_1656929833719_0.3967353409369476"},"_hasShrinkwrap":false},"2.8.3":{"name":"hasura-cli","version":"2.8.3","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"fdotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"e4eb46f629529c941b9d55cbd748aa32cda163c2","_id":"hasura-cli@2.8.3","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-sIOnf8lE+kSLx3dOzhmaPepR+dzk5QXfkaz9WzCh1ZRESU+Mgf5TgmD7CXM8qYuldNf6wmZ0LvMDCoO/uErlTg==","shasum":"426d0635ca1e0fce20c7618b8fc3f82c68b33c76","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.8.3.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCBavrWNmPzLt8bgr3J8IohkxgyzS+XVUGb5lJZ5nxZzwIgbYlTykRglhJC/OPXw64ihGraYzLMky277v8/BAf3rmg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiwr5dACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmobhQ/9Hsh1IGox002oRa1sEac4qG32iDWDtkcZIgyrqC6GoUw2ehkg\r\nO00QuVFbZNU3YJwmHhD1R/MpRwkG2ViwjTQybeHfVDbG4SCQe4Nyl+yflwwt\r\nnAPBZUOBYJNjsJoydWVg8hDkArtVk/AIhgFZXS73wdoG0fq/jnd0VUAfWTdN\r\ntqAcE7drIeMar555rpMa9V7kgdKgT/+0mPWCtQlRRlueRVsZo4D73tflaF/i\r\nc9ugpPnyTh0/wrH+TdWMlK0YPJ5b0spmgRRIcXrczckXolK3YsthmF2m1HUE\r\nSaTIrihbAhX3IL+QArYO7ViAJt4m+t/O0l1ewPFe3VxO53m7iHe22EXjV6F6\r\nTRxhxMMRtys2aRYeaLG587MsNr3XhwV9dtMB/nfJHm2vmSSi7P+CThmqy1L1\r\novmmkGabduuYYI3zezQSGZOuR5Ra1GWePRrQ9zfja+jTfyJQ2ce6NmCDaiOI\r\nosrGOKJQ2hd/sXfaAP7WeIO+I6hXeTK6lH+rssa79g7CuoRjZADHuD61L8a/\r\nGp02OhOkO2x1JbNdXDx/zOrk8r/jMmfEZcLo1YAxPwAuYxqxdf3wY4Vd+rUa\r\n+1hq5PAv1SQVOlFLBQK/61czkPg1vxI+QjhZBkMYWfGoP0yRQIWv56ovI57f\r\n00TQdGymTPnwvSOavJYonoHq6uX6AovIAPA=\r\n=TSHZ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.8.3_1656929885295_0.22774138754141537"},"_hasShrinkwrap":false},"2.8.4":{"name":"hasura-cli","version":"2.8.4","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"fdotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"2a2ed0f801d9f87c838931df3853653a2bbbdcb2","_id":"hasura-cli@2.8.4","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-3jhTEOOt6SxEDUx/efxZKJ3X4wgQfE3KVZKF4y2M/yaZpRoXTMN/Y9KbMSisDrtbU9+tBBtTEQwLPcVALhEjWw==","shasum":"075756ae8a616ed6011067ced4a2ff989fa86bbe","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.8.4.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBJWM8U0eNiQuXViac9hWdvRzZSBh52eRxa6iA+CL3p+AiBLpfgkHJXJsYVsFtP8dr4pcyws8dyYUBQUwnLD3ZyihQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiyi1SACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoAag//aeMLVuHtTHB5FMZbLFR7IB8ZjmwTbMVuHnj8sp315vqmSHds\r\nVhtpa3FdkTuaa2D9OyomvlTr4Ak7Fk6TZs2oX0+QGuHkf7ocJK5GgDMwcBbE\r\nEhh+R4bCkzofzr9NPO9+UArvG5Y0cpbhAG0V6QOj3Ef8OgBYHVZO/qpk+7GF\r\ng5rJF/7dACY4/cVPiMPFbOVQbbQD9Jk66oa+ni3+SHxAeH6vO9LLuH+v/NnX\r\nWSebz5N8OQ9jwJrbKFMb+zf18LPnkIpOYZemzkxwrC9+nmDvqn1Bux+RGCbc\r\nmebsqd2ZE6pM1hX05nMte98r2DL39C75jOO/36bA6o1JX09pkBC/4oBeebC2\r\nN5nKzyhnpOGg27Tn8KLZIviFDPQpJNjavBhpVsVDk8NaXa4Q9YyYcLQzvUca\r\nen0NPznxJzdsH2B+Ub0aHDOPCz8mzr2zTVJtNK0zUHVszaPvdsWEYvDnVwdK\r\n0Sqcbjg19qIsiqbtTTqzFKGn//BOaPSfZyyfQWzdP4jTGc3EmmBITQ004zwV\r\nTblqpi9PIoKkJ1Occ3hPyjCzOHuZQ+zvmCR20XJEAEWf4rCH7FUSaPlq1LWx\r\nu3qIcjUB0yQYBQhriSiX0jt2LlUFbJ69F/i6EBXqGi59LwS31YMd0xEEJIK3\r\nzKT3GIXd0umY/5lwldceyixHAjT7+mFUA7w=\r\n=LbK/\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.8.4_1657417042322_0.04688633196799041"},"_hasShrinkwrap":false},"2.9.0-beta.2":{"name":"hasura-cli","version":"2.9.0-beta.2","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"fdotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"b009cb194805d0771a13eba5562031f9a4c8d691","_id":"hasura-cli@2.9.0-beta.2","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-BgzESRFiKyS6ZEzyvzMtXdPd00Oo4Nwew6bzbHwy3G6icF/g0KJyXXCpNZyx+WAlTvacRcOF5oqyhQ71e4mK+g==","shasum":"cf170d3272e64cc712b9523f62554d575be08e20","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.9.0-beta.2.tgz","fileCount":10,"unpackedSize":22183,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDs1XXnd2uQjcLlqpYabJjc1wpzSiIv4dv6Ho1vmIINVAIgAwgyEsS3M0Qhn1Z558101AMaNQqkVlJuTJT+a7TQIkA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi2ca6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq8jw/8CQO6WYbsnYuodwR0D12gRA5B2ov8rkk6hjaV30XxzShmTqAe\r\n5HR/6LCATlQJ+UjWf4gSykwA0zStdrviukvsEKGBi/JkKqE5HFR9J+KcuND+\r\nHez63sdwi4LqCk704Zf9VLXJSoPoKIPQdOWC86ajQE/Fk0KfS/jtXilytwg3\r\n+IlSOtOwvukBA8jNwn4/s/9rGzPE9x2z9ZMoxDwRYH1oF3pZYV+xK1vx//9H\r\nugRZT1aY5IrWAT0Y7SJAFFBemTEvUV6ulVCmsXjaaNZx1I6uwzKtGNZR1/CJ\r\nncC6Z3mBTgnKs4cPWlLNGYdVjg0PsmAvbhKSvacg3QWg5bUh0tJo0XAiUt5O\r\n1NxbuGw61RwB/1x9ofllRFY1LKdtT74j2PaLaysSF/W4v8AL8/1GXeIVBu1P\r\n8d3eUmyEQiyRNpvtKshGwsfb87QyfvkHlYMYWgMZ8HgRwPihXtdR28d9vT6h\r\nRFph/spVr84fSueT38VbPGGBh/HSutT3wFqWAHDfUzDpcGoiv8ZDnQsIG8pP\r\nwwzvRW1NobfKbKGeEH+/2/aCPLvv/GkiVQiysEJ1+1FDLI+tUHlXLP8/Ibpj\r\n/UX52o9zvL6pzaYnU9GyOqtbsKZyxgQR4+oJKBv6NTccKBveDdQ4Z6HegiF7\r\nF+aVxZJgV1/xUPMIykGNq075WZ1+qgUsYi0=\r\n=I4lq\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.9.0-beta.2_1658439353636_0.028199225611535095"},"_hasShrinkwrap":false},"2.9.0-beta.3":{"name":"hasura-cli","version":"2.9.0-beta.3","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"fdotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"819fd0f06f5e6f99c383dd8c86c66309e0160210","_id":"hasura-cli@2.9.0-beta.3","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-LIjTnrCx7asJ3MlP1hxSgW4mlSvNMS6o63hjSas4Hjkn/bwi0bpmh5RDl5OgFgN4yDw5ubbSkm30esVqLBX1hg==","shasum":"9e63cbb476068dd4cd7768a96c6d45b7f552e3f2","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.9.0-beta.3.tgz","fileCount":10,"unpackedSize":22183,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSReTV7sKok4Lc18l7+5cKPknMPGuhPRx0sK6BFBeh/gIgGHPQ28r7rjTNgNi9oIVgitY7EFtm6LsPfycfLkGP5VA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi2cd0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq0qg//Qph1uRBAK/gTFWbaVnTBwT6qyne1dWOM23iQ8vPDLSvY894o\r\nu27DdeTLAVjYrl/Vi49/g5Ls2K2iFZFtd7e30+lRx/w1eAUSHurk+HqyYOlK\r\nhMF3euYUHePZ68Q46ZRMFhiFeUAOBs+dpeLpzoKvW0Qe6FZsoABtDDGklUIy\r\nm4C86z4NgHMa9HR1zNR1GiWxkJUXmvw23+sEsyaZ9zDLrTvNcvqUgM5WdIq/\r\nfql0T8LyuYWN/oLD0tKk71bmcZBDeSRQ3hQT+3SWco6Sb1d7hnLbrcUAb+wK\r\nbCjr3+M5Scg7TcIxna+hSZZ2HoY2YZm6EpNvRgtCvtL8m9wyhljsJVgyfXAn\r\nzfrsq0TDLbkF/MpbN85O1h1IiI6F5J4nvYHTsA5YeXG6kqCs/rkxzKIW9ktE\r\n/C6h33V0z0SaN6aKmEPTKTUZy3UFwxdL4sJFY5Dbw2lLbCEMdLzS8UJpfaBY\r\nz0gxQu7cpXk+DQavr+ONOgBh+GLlDgGg0I2dFDL+/+o8nkDEjLKlFqAtg15w\r\n7b2iq6mrAZlsFRwtaTKU6NTYS43p4+enQVcrOwEaHWFUKbW22S0YNBzuDFns\r\nSDd0EOQd86n2dGudCRqRzcCaz4dgCsVR3wJnQ+IDj/7bLJRo8qO4h4VCOAx0\r\ngNChhcwd5V+TPsXszlf+sWEw4yg2Izt1cBs=\r\n=bT8V\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.9.0-beta.3_1658439540736_0.7236603051663322"},"_hasShrinkwrap":false},"2.9.0":{"name":"hasura-cli","version":"2.9.0","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"fdotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"603dc24afccc5aa027260b7da8f64c8787a6d19c","_id":"hasura-cli@2.9.0","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-TWVnG2HS0Q/QrwHelUmwW3LlwQLjRZpssBNcA7vEmx8ZBz/DA4ZuwqQbi+EtRoW2dt783SbqJq5G2u80/91RZg==","shasum":"458e173c12b10db4986a2fd4f507b94566f962e5","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.9.0.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAmSiiYUpkrzJXT2q3cjkEHf9QGdP9pEc1wng5+1dunNAiB223fNc3ATv1RsFBKV1nn56ERDeXC1MJrbx4H8ABI5YA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi4m79ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqw5g/9H+CJD+AtPPosvprDcIXT1nbhtrEE/WbVkn0NXSpjAHWrs3Py\r\nhbe54nSolRePahyOt7iK/P/I/0l6dFqbwnUYKg7W90AA53L26RbOhV1nAZGW\r\ntIt9pKcZgrqxJJnpxf8jYkUnIVlLxIrOF3zzWUpumBjLKei4208P+jRVKil3\r\nMeM2I8C+u7L1w/K1P/V3Eui4SD/u191N71tNMnSulfDoUXHBa/0SPYLZqwKT\r\nIh3dSj+yz2i7Xdc1ypM8d+TSL3QZ4e/HHGztHtpekGuVghGMyFT3ecplfVF3\r\nt4KRUnXj+gWQ2LYMCK7j64OKGs7kNsmyqCgehAUsvd3oMW8VUrl279QdY3wJ\r\nnC+xGd6174QsRE6xSI1GLhd3u6z9O6+RYa9oDGlYq6OWAOngqzAMsy4gY/AB\r\nSXghpYxJRHpQOOsqLrdCP7AgsfXmoXQVZ9xNgNXvvuZEtcpBZYE5dCiUPhun\r\nAgpdQGiNOfeXCNaapBxmWzDU2JGZ0orlFH+yWpqCo7v649Gv2fl8AIbfvdNi\r\nrBibj3Mizzg8avjxgDaY2aHxy6ChObCZNGyz7dZOldMoGac77mfQqoFHnzr1\r\n5SMUQlCQnuxt+CwsgKZp1ct85T/TmosI9x2RGYre0NXs/i3xPtrV3QhjUpf9\r\nvZ9OzSyf+nal17juIAHEqx1U8w9d6Gy6kh0=\r\n=gmmH\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.9.0_1659006716986_0.9906484116560093"},"_hasShrinkwrap":false},"2.10.0-beta.1":{"name":"hasura-cli","version":"2.10.0-beta.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"fdotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"603dc24afccc5aa027260b7da8f64c8787a6d19c","_id":"hasura-cli@2.10.0-beta.1","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-ld46E0H1VCfpfnOJ/QxJxxUngzU4zu9wmPB4rYMembaElcoWWXhnRdqoXoDUPd7HOkOCqBq1gOu7Fc5zKRBbsw==","shasum":"285cfcddbe63b26b3f9fa46eae8d401b4da6c635","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.10.0-beta.1.tgz","fileCount":10,"unpackedSize":22184,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCjZFUP5vaLUhcwmBv4GwEVd3XAOFIV8yzt4y0wOZKFjAIhAPx+ZT679Qo7kuJWxBuih9ZaHrcVBVCGJIiORpih/h7d"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi4m8IACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq1hg/+LSXJXp3V9Hscv6kcew5G73rTwS4PiBOoUTkQX5csomNSgOWO\r\n6uwbYvYatJ4HUYVaYb0nAZOB3RuNH9xUNVluZx3n6qgU5FMC9insRhD71s+O\r\nqFCPpzMjedeiHMNsG/MmTlX+Nf69KKtiO202P7gyO9C+YktXXsL6ajJjTNQn\r\no4R2BiCxOQNhiEyOpasR/Bf3SBVo9C+de4PkXb23Hn6vyI3RVYciIj0cHY7k\r\nJlATJIjPvkDxfErR71FcKf4/q7ygh0beu1Y0OZIZjJhv6wbXuwXO+ckTxEab\r\n6jKMrXTPWNJ3Pc7GXuKlmRAnteIctG9YGOjTTz07DPwoBknZqGCd1tZaB1B0\r\nfkfCau6d1TcFCamOLSZmyK+witl4ar/ILYwiLEkgeK2E5NSbh7o60p53NQYL\r\n81WYuplrau9xUzZAWK0DX57sJsAKcBiJnoogPgbJQXH8/VRMMunGn1bsV3oJ\r\nD3zLx7apPO7Gdd2NUw9f19rXGZTS9Nx0GX5Sg9VSRQmU08P2CODUFQeNgYSz\r\nRyBD6vadv10estQbxIbzn4NkjUaelBRJ5ZfB8ATj94rjbBDC0WZOBTCQB0yj\r\nwoEst/7gRikmmnku4U09teyyJcdRR+k3t6IY6Vd5y6wGhCjlaffqIPvVEQ0f\r\nkLPBn8SHiHyb4z6ZcvCuZe5Jjrs3XLeYhfU=\r\n=OAA/\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.10.0-beta.1_1659006728694_0.26979673017876893"},"_hasShrinkwrap":false},"2.10.0":{"name":"hasura-cli","version":"2.10.0","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"fdotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"7022d7c6b366ad02914a70d4e431ea03f48f215e","_id":"hasura-cli@2.10.0","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-QjfD+fZrribIFmShD5cXUG4fXYgOMbJ0XXEVQ5kHS1BBrT7SKFzJY5NTNJt5PiKXtGKqX0q9Iut67rXYM4AvwA==","shasum":"1fcf3e1a700c4b15cbe95e27aa6a1c48dbcaa40b","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.10.0.tgz","fileCount":10,"unpackedSize":22177,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGUYTrDkNrag+zgf4ypvdZ4Lbu2pdSj/+meVPENK5Z+kAiEAgUQkU7i2c47koVuz7HS32MuudDSJ/0hR1Y9A/J3RvV0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjCPGTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpsbw//f5ZCyQzlMcBvwlCtPK/WM4QC9xw/SqURMdEdh3iuJJnDesAF\r\na0/iuB8JX9LRYx99CNzEwTA7a33ibdyudllS7MdzQMsuYaT6fXoGmx7sfAmD\r\nKYqqaVP1Xy04DSwhsOrSJjkS3LOyZUxB+PSXdoRXTInarSnbq31BClQwkZ/z\r\n61/ke/fL8aaW8VtjTT2xrR9mTyzMv85ydgPJj27yx2ghaEMWHwi5gzKy/1TB\r\n8HLLA4O6lTNdnk19zEV5LYfxY6w0nuE/jx1Srl6fJlBHtT6rhQsE8WLJY/5M\r\nbDlxUSFCsAnBMfMuqL1xT4raFP6JCA/Dpvo+x6syC64QkQAs/RrCsnGQA9ss\r\nfv0u3lYOPI/6+hoaVcD1aGHGqT4Zp4dpq8p91Y/iP4Qb90r/EHhU4kWTkR3p\r\n56dAQG2jWNunxQDElPcPRoj2k6cqicmqp75S0v+VK5A1eQk7hvKWSyIgEl10\r\nqsMLcv9hufwixDN2ybvSdQyh7Dy5uANKM+pPvGRL+i+xXCQig2hWsXo24n0H\r\ncYkDR2R/9Sixaux3Q+jxZqp0Srurzub+YXZW0UP8dZP4BBybAU/wnEmwicYY\r\n4mbizTnQjV3CKrx6Ypwa1rLcb3hIvSAwwlB5KpSQXCBSOPCXmARgWLuZsbkh\r\nlMdqfhcknNB8yw0qIarkavcnI1PG3D45oz4=\r\n=/3Vr\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.10.0_1661530515661_0.10630304799749735"},"_hasShrinkwrap":false,"deprecated":"It's vulnerable. Please upgrade. Refer to https://github.com/hasura/graphql-engine/security/advisories/GHSA-g7mj-g7f4-hgrg"},"2.11.0-beta.1":{"name":"hasura-cli","version":"2.11.0-beta.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"fdotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"069b84d7b5013027ac14b7394495cf97d365d4bd","_id":"hasura-cli@2.11.0-beta.1","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-H1GrvaMNZ11gfOqj55D2VcfsrdCjffkr7KhUjOSWrq3NJVZrAp4mJ3KsVRaM40yF/o3X2aeXVMSxcfgancKo1g==","shasum":"89721d26f4838b80cd3829012594c2c6153d2331","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.11.0-beta.1.tgz","fileCount":10,"unpackedSize":22184,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDYngRP7mF9IS7vehAWjHJRSHYG5mHJyDNZOqSV2UCD4AiEA/fPlaNL71oBX3F0d3tgmPeYj5L/qZxrUPwat1lW5BTQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjCPHPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo6ig//f1htuePB0piFqW5mnniAWj92i7AWPCoJ+vfzLOPnKdu6Jwe4\r\nPJep1zmY5ZSIcI+O9K7juKPoyuy4j2euo3gTPOfmsTPuENpGKSNUK0dRbDc6\r\nwh3kWfZCNmeWygsRbl6vAm8sFu0TCm5D5bXrflR+FN+YoIXfIIWcLHivevEl\r\n0l1F4rrCu2QoIyonE6u4czPsVnPHPk3EZbFK8zmBEKL/Q+19XdvTejofAAWc\r\nUeQvXsac9hL9ynSYn3K/vcQZ36wN9axjSEVW4ttX+ROXCQispFi6OrZw4mJJ\r\nxqviLZuZVgj41sTQx4uPbO1u3lttJQYR6VcTUgbfzgNsSMyr/kBikc1bptYC\r\nXnsaGcSVS0Tgu40wmwFmLfOc4SpT24+/HIDE6zDGjxKNB6akjxSi7kfw587s\r\n+bRUVeskhEdojpaRBT/ZwNLeJcCBykBPGY3teeu5RUQlbzVEvFd5L2Xk9nXi\r\ncptELwPUKSmTReRFGEsow/fh4snP6zPMrBOpWM4Wu3lw0ybgSxTCvhbi37My\r\njaNrxEomLCt8wVZwSA+prmMl65SWrDvgrk5Bm+nKpmHIdjvaMeowWZTqt6/F\r\nzCoNH4NCAPrq4JwMo9I73G8qtobyhazZJrSk8lIvCdXiema4a6OByBXlEdrk\r\nFwblZFaD25nY+SGPfe6prn1J47XKiP6bskw=\r\n=B0X7\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.11.0-beta.1_1661530575698_0.6706893883884453"},"_hasShrinkwrap":false},"2.10.1":{"name":"hasura-cli","version":"2.10.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"fdotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"db303397bd8f17478ae7ee8b23b51667543f6e96","_id":"hasura-cli@2.10.1","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-i7vYumh0jEpHut/TlpoPUX4glfuw1wImdHUjhtBCdDUloWqi4B03MsiLjqs66aleILzsNFP7VhCkJHOVNf417Q==","shasum":"c1fe1f94ad7a46c34373a3c49922f4e0b9c490cf","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.10.1.tgz","fileCount":10,"unpackedSize":22177,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAxewWHXNV3J5wt/MRr3dAElNXigi4ApNyXzS3g4ifRFAiEA6KVemrTFN8qTPqRwEIR3yYmH3k6LqVC73igpP5EjRXQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjCPH2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpxGhAAilut/qzCyShuBqX3hl7VhzUVV3fAAkpOwN+XZcTlQkAPTzy1\r\nV9aHf7ztnatXqzUvVrJzG7ahQq7mjwB9yTJBWdusjarXORAAVw4QnqUGxL4B\r\nB+rOkMUNy/9mejU1QNrhZLSlAxKGXyrhRJ1BXBOKKQzahhS7rMKGJutg5PLJ\r\n/I40sElluiZ9Lgi2cISq36t1sfdLGTNYbYPB5ptvQJJhqh0a9OGEACUPTqvv\r\nx6nJn/H6nKoaY474dyWJ1CAlZ682Fk6H9RjRNrBSMZ2vHFCSfetih0aEgX3A\r\nOb28Y/J4WG+CwILRPooNaC3Lqdic6jwqps3E0AUMlc7BDNcHZB5cJ5CV2vMB\r\nYejvgXUrxlH8UpV4CtXgW6KYB7+JHwT/Fy6lI+PTtgi1FXWVEiItDvehVXKv\r\nSR+XL69XytNa3yIfTweTXbZxO4eFItqyWdQMUZsaRKllL8IuhBPs1xLxEmV7\r\n8/duYP24+rcXldc7vXXBPNBK4e0t2SnSQ9G+G3EXZe2ROEzngt0XOnjuBc4r\r\nu9+fVxRSxbFn1im/BH/TBktVOJbNyZkOiFZPmPfa/XXz7kDjCkrlIgBVsV3J\r\n3q1qsjFPBDXDpslqiEUIqg5sgQ7NcFBi2f6FLF/NNPqtK3vsFxc/Fo1WKu+b\r\nNG7VaT1RQzVC8M/1VVLHdpIQR/TtgXn0fYc=\r\n=WdKz\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.10.1_1661530614274_0.31040306200290546"},"_hasShrinkwrap":false,"deprecated":"It's vulnerable. Please upgrade. Refer to https://github.com/hasura/graphql-engine/security/advisories/GHSA-g7mj-g7f4-hgrg"},"2.11.0":{"name":"hasura-cli","version":"2.11.0","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"fdotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"9cd84e4bd15c6a830848577c1eb211ffd753b128","_id":"hasura-cli@2.11.0","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-7U286Axw1/ZAKai7Y01uqDE7KvKmFgkbToW3+NJHRnsJb3SV9on9Ef24wlG5gxMIe7A6JX99wGWbskhzVrF12A==","shasum":"ca08ae923139f67f771e6cf4a2737e1df67771b0","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.11.0.tgz","fileCount":10,"unpackedSize":22177,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDmTvwt/KatxKJeytCQmDRM8AjhTh0RzZybgdiFX+/cyAIgLfBkaufjIe00DJyxNHXDS6Ekqg1Ls1acbEQFLzLPinA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjKZoyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp2cQ/+OQqoorUdytkIjJgR++Tgn60lOAS5RARs5bcQdMLTndhAI/E0\r\npNQP990JoYx01n4DZg0bWmZLbC0v+QIKte8AxlqfoHo2j2wDjBkH5qd6h72j\r\nrTmftclo5rsadL6j4l9ht3mH8RWWWdk9QCP0j2U89blJkAA5NB71B69273hb\r\n96KEYENJKo0uUD08meV5Nxd/K4BUB+y6gZV0n39615Fbg3ddbsxIA5PBO3gV\r\nm0YkAUlnhZOBEt6v8m0tLmC2RSSXYMy6rFDmwqeQbaW8mWrelmCvTCWgEk29\r\nEX2I67L7ZtcZD+ScDdouaWiSCeef78MMzpwVw2GdHRzzKVjzOzn7ch1Yx8Uh\r\nD/yW/mKRDtdSrPd1eOjGPmUoVNACAwf2ldTp8YqaSBasUXwUkuZVUF3C4xsy\r\nvOEXiybbx2qxQiwUhflOSXyMC32Qzm7bx5HgyuVodCoDuXumZPxSXKIQnLju\r\n1YZ2NAWzbPxF2olBAgwTxUJypRQyiJzcneCM1nxqjeLg2427Uy8dz2Um04PH\r\n4juPoNZtlf4TIhaTA9/Nsc32F//UgGJ2yT5paULv8V339a6Eb5FyhKdBRgPt\r\njSUQc4sIIVOr0Z18RIoJk1OHEAibu0mi80lMys+jIxR6tKlH2HAL5QVIR8cE\r\nrGrXoR6tk5lvP2ey0yZijpI2tBnCTCi4Rq0=\r\n=q55a\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.11.0_1663670834313_0.46156539958315856"},"_hasShrinkwrap":false,"deprecated":"It's vulnerable. Please upgrade. Refer to https://github.com/hasura/graphql-engine/security/advisories/GHSA-g7mj-g7f4-hgrg"},"2.12.0-beta.1":{"name":"hasura-cli","version":"2.12.0-beta.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"fdotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"b970ce73b2a300382524f28a19cd962aafdf8b5d","_id":"hasura-cli@2.12.0-beta.1","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-lBsMRAWTQrzWjYgqAvgug1LpDk7E1eQCK85sqvz1EKQ7I1UHmjOq3J85b3OmaQSig+2zRg2hc9GxQG1YiDWZcw==","shasum":"4a66650178cfddf6b9767e7f80470bf8136380cd","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.12.0-beta.1.tgz","fileCount":10,"unpackedSize":22184,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC0I6mmt4KJ+PSakv9UFk+OaSBZUNwU5NX/akYCrh37EgIhAOPMXLGUhrvynQ0vuNQHQ934u+fsATJHKpuO5UDT0N3d"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjKZpuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmovzA//WUwhNKzduprAKhZuZ+yZhjC84urn5LNs2Rpo3xAJYT8bAvQy\r\nIZw+tb1WRsxFbMrGD0dfWJ6f2UgprxQG8OPuB4KgwA/wflnUnbIM5pxOFIMi\r\ngR24/YnHxKdeeMpAOpBLl5PG41TnQ9PGTuXldO8CNSG7I0Bh+I8Py8AxNEEy\r\ncaEkv+89Jo66UTJ9qnfyHZlAkPqIvCT+z7gXAK1sEO3aQPdygpdc+EXNycE9\r\nwtjSn8FN9Ye/Aqd9gvy8y6rePu40Go/9IXY/xSAqZt4VdSmt8DlVorMsGXh/\r\nJRIoHHALQojml5aXoYcJpjbvgaN8t9tdnf7F3+vRgbUmtw752zCLcJiFYvx8\r\nyowke7r665sly/JBGECLhdWgMr3ECCnuNhsGRBQ712xJCyeQyEHxr4/oXf+N\r\nNMqwIem+dyBmtVwm93KDTzXnBobrL9Bwv7heRp3iKfbSJpq8vI4ICqcPYLbK\r\n0t0DSx3oMrwYQ05s2U8yACrHKfgCzBv7xeDTiUAhw+TdsVIJlbe/2qBfpWYk\r\nDkldSxybVKVvQ0h5ZzDLBcUyjSrZNIIT6ViTR8+C1/UTOzGhJqMsRHboprV/\r\ntOQ5XH2AH2tm3VBz0I4SrjqVdvjmzerrlglU9hzFUkbfQERUQf3fYNp8k5dU\r\n3CiFWSWJx2k+ZVRQJXM7Oc1ZWGubrQANaHc=\r\n=AwRu\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.12.0-beta.1_1663670894243_0.3441727860528627"},"_hasShrinkwrap":false},"2.11.1":{"name":"hasura-cli","version":"2.11.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"fdotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"214ec2673831e1c6faee2cca0dbb6db8bc4599c6","_id":"hasura-cli@2.11.1","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-6e6mWp7RbH1LMPyKY2iK/YD4fNA1EZDMDEThhdjFvm4FkIckXI7GmATuZsElXjZ8mK6sE9+ATW5oLaRrjaINCg==","shasum":"005124ad2bf7c1ec6e06d447b654df6f323d576f","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.11.1.tgz","fileCount":10,"unpackedSize":22177,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD1koxsxZ5tHaPaKpJ+//W/6HgQe6AlyFrOyUXo6afoEwIgU/4aPZruq93NUyVOmpYzdsYqp+6KAoiCU2flFvq4Hg4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjKZrbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpvGw//XnYreS/eawPdUUufQXHX8J+OJ3eGnBNSg5YSlqtwHypUOZpe\r\nbgiScyaplGRXmRjTtBDt/gMvqOFRwxOjWmMtczjL2luHwjHQWIYOuwlPTV83\r\nzzRF75sswJdZ5WAQSU1N3shDwCbeX5mu5tudMxs8jdaPOsd0mhxXgVC9wXTu\r\n9Jx2Wy5sgigakpkHzIdyEaV33GDk1YhqMQmS9wti62egb048mUiZigvqsQ6K\r\nEILnMfK3f4e72zfFtS5ruwAMDTIZiqIj0sptKB5/sXNTIl2rlhQPi8DA/FE1\r\nKVveH/VXQNFl44Bugo54wnt8vIqDL0dY14JrrswfLifN6xO7sCIiEc002kKU\r\nSOj/9OIsdjWZHZKZIIhSAXW/Vop85JgOfYByLedurBH9OasrdeMFQREZ/p9R\r\nDIfmU3qfZ1Yzy24dbsfxIqHKcVL+ZO41n4FoKCmiRPjEcZAKEuGMfPpxcc/5\r\nT8QUuHQM1snWqcHOxrKCsGuXHezGamkMDX+pB9xycB6gBKStSLH658XgW/sn\r\nBt3EjpDtbcD/ewXB9cqClInS7XVCYpisyu0T1xy0yVekXoxEj3KYs2LdsagC\r\nuN5WoaGvTbNRlZ92hy6/TLQ7T1t8NaHemUZOBM64sYdRut79elht5YyD4FEj\r\nJRFohB2ErbfFMG/YQSy5wBuSR3v8YP1Duxw=\r\n=z88b\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.11.1_1663671003329_0.5142967125978699"},"_hasShrinkwrap":false,"deprecated":"It's vulnerable. Please upgrade. Refer to https://github.com/hasura/graphql-engine/security/advisories/GHSA-g7mj-g7f4-hgrg"},"2.11.2":{"name":"hasura-cli","version":"2.11.2","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"fdotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"c730682983263190595c14062b3b663d45315363","_id":"hasura-cli@2.11.2","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-WW8ItkeiEsZ0yer+TXFqPMwu2a77pRaBpV/pIFJaTmjuneWeN9cg98dPXez9CggzrnR2iwy9i6qKkrnZ8zGvjw==","shasum":"e2ff9ba374238eecc92b60657d1965a7a9d2f83f","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.11.2.tgz","fileCount":10,"unpackedSize":22177,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCZTl0Nw+mjrOjQruJlUOMSoLBvtRIDKlrjMhl8Nkph8QIhAKuNgwRPokhu4rMRwlpHVTgNiUoN8N5DRPsn+TMimcGg"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjKZsRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrpXw/8C5MS4hb0e5z7QRBM9VMNqF9P5/MrTVSzPB64Yd8zxtvt1xjr\r\ndtgex6qAj4OPIy9w0yXeJ9qFbLKkKfIE9dvXS+rApzK+FCJViKUzRjCq+YH6\r\n1u9H3TQR9qNUK295FbmEQuNEhZaPD6lJ5KzrgMbEo+nJKs/7BCBcLnQa0utL\r\nN1zAo0LKD0RanSE9pWFqvvM4QMvBNL53dOCorAIQj7hUApE4wNRqkgx50TXp\r\nLeuK4XZ4teB3mbsQ6RQPTkg1Qoq/TKnMFHC0sDks9vGKqjBl/pCbZ+lPCirq\r\nPPF0fPNiudIiYXc27xEL4VrftA1RUdvAJMGzBzNoNZ/mT/xTlgWflfgBj7pK\r\ngvNa6zfmXVZjZuXn8X2DeLzGIPyqqZvJcSG5YNujoyQVYN6YrCIq9QFMx8rI\r\nmNcBlzAfAyYFbyEqeuql6zD0v+6jk2avL6TJq8bAtuadPT6cEdOGvaNRXUWr\r\n5Ys1nBizyUkBBhnJqgywJ+W5PJgibWmgUch9q4U+5no0qCJR0MTwPXy6Vbl+\r\nfTRpeH3eByZ0+94X+21A1X4+UqADHgfOM3441WhCTPNc3Z6wJ4uQ4i84S1AZ\r\n1btr7y25+SGbv3/qcjDI4p3eM/Udu5i3AcYHjQRxC+UbpHadG4uOl1cKD/kK\r\nXjDCU4xeUuOi1OYHARdORtXvW+VTlZ0cXj4=\r\n=0Gvg\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.11.2_1663671057033_0.11380600456415224"},"_hasShrinkwrap":false,"deprecated":"It's vulnerable. Please upgrade. Refer to https://github.com/hasura/graphql-engine/security/advisories/GHSA-g7mj-g7f4-hgrg"},"2.12.0":{"name":"hasura-cli","version":"2.12.0","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"fdotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"74b3f3020f9364c158e5f6186cb78cd3d1905007","_id":"hasura-cli@2.12.0","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-6ijocyKKda4ULFBX3IC384q9x+RHjUbLkK246lksLLs1ySdglOREqqSP7/n1QgqgNA7yZKBNihV3a3hXVu4YtA==","shasum":"0f5cba3abeb78da9ba8dc93439718cb2a4bbbb18","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.12.0.tgz","fileCount":10,"unpackedSize":22177,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE6YNnnYkyzxt6hpLSPpshyYtuSBqSb7H7aInr/qcd/jAiBu4ITodvkr7He6emd+KtFZYdIwagFYoXUNOLe7e4A48w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjKcpMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpEjw//RtdHp55+el4uoNkIT703pYmLBdKQmwVkUNCXO6IEnjhr1lC5\r\nVK0cex/wJowU8ClCxm0ntzdNwcypwXJibhhHq2psP3t1bMZwG5zWQskMyrfZ\r\nySGRaFvgGQTlchr5MQ8T7ArsaX7KaE85BRUb6RUtO4914rYjbWYTKDx1JQVu\r\n8Nt5QRKc6SN5V7SkRhqPVL8lO38KDUBFGxJvgNcUb3oe/aYJXPD6UjdktsMs\r\nNQ8OXqrHQFxQjcGyOFkB8DTAZLktQ7dSPIMqXQwTchFXiIeUGce8t7Araq+H\r\n1nG3OgsoI6DDh7g0Dk2xq+hsI64aknd0bAuPeN3ZXbmIio3erlalVga1ZJMU\r\n3Kl/2eKnDirpyeCiKRK9nQRpSHKYq9YNXSusdzak4xlPMdajB8KKPh00SI5g\r\ni06BzM+EZE/sFRphiU3FlBNdcvGAzqfzvTsW6CtP2oaGkKVposq5C1X2H4VC\r\n/D7fBjGWaqC3clXQOV4Yi+XEXI90Diqxq4VTiBp9F0r9zhzXpBPG95IDD4Ho\r\njoI92mHdnA6F3It+HC75RwHCJwvZoFZPnihSeRaSLmzPKVr/gr5cvZPQbfZu\r\nhet1YaFBau+mNKdhLULKA8kKjw9R1lKKScQZwqK8EXvz1vxaJlX30rudOWRt\r\n/cLsAWfuJ+V+SaplVQrDNcnAJNvnzMOtnMc=\r\n=eRkX\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.12.0_1663683148665_0.4925565885528904"},"_hasShrinkwrap":false,"deprecated":"It's vulnerable. Please upgrade. Refer to https://github.com/hasura/graphql-engine/security/advisories/GHSA-g7mj-g7f4-hgrg"},"2.13.0-beta.1":{"name":"hasura-cli","version":"2.13.0-beta.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"fde2337fe3be1c98a4cc91426228262afff3de28","_id":"hasura-cli@2.13.0-beta.1","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-zIRAcu2+gjFavil0khjhbf2XkyGo1o4+/xITxR6lR2CJ2r3E4XXVAKNNpisKDHMV8WUX7ee9moQQC4qC+4FDow==","shasum":"897c890f9258a825278778ceb5aba8c72e2caeac","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.13.0-beta.1.tgz","fileCount":10,"unpackedSize":22183,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG/RO/4TnPXSrb8uXU0S3YKwRECUsxmA63D4dkYRjsOsAiBQkgyoFeoPcVw+5C3H0cs4mZhrqp0qez6iLfMzqFqdnA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjMqsjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp7gA//R96b4UfVnqSqhFoXUpEVVQCdjU3wgLMXKNlQOE6EHhC201LF\r\n3mr2eZ+hBgkTUMsP6QwPazTX730WRhufl6gA8MVtuPotR1K3JMWzfeFBKmgi\r\nMckyc2iVGzzSg2T+2S2ixOsEE7rudJ/AqEOosnoskauyEUcV/IM99vmbp29q\r\n/Zvtw57YmIRiOc/NqoEUV1sVG1fayk0vEP660SKkJBpAXmqtlD0iiKKJviW2\r\nmwVi/BjqCGG64rJiDfUbWraHmM19WD3z/heAQ1eT6/YW/sNY7AqqYaebevCK\r\nJHEJSqSCnqDdv/b4ozFaoO8Alt9m8K/LtSEdUWmX3O8mVlTxZCkBuvePcPw7\r\nplFNKyV7HmMeEIhuzmtHqn3XBTQe38v0d7xa9SGMZmrSZErkpopNuVJ1dYMT\r\nskPsM9BfNkc7ygxt5APPn7yfATEsHzuMxBvEAPyCkrj3u+N64J7JifQyeFtU\r\n+Cu2HI5W7pjJ55dr1P7gHV4BxNKJIohl1YytvTvtOUO3keVd6LhpKNLa24QM\r\nLTPlqfSV5aQ7ebEItGAxhdXhnT31HgJMZviFvFc1OD5/Q91jQ1I3OY0iZK6I\r\nyKTvprH41gvQN4165hs5JNF/xRZBSuFtKbaDQizXaWQdy1ooTt6NF43znT3C\r\nP/QY/Sj6sP2a/ZRnbRHzwtPCsqnCP5NEyaI=\r\n=xQf3\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.13.0-beta.1_1664264994836_0.6655036599887467"},"_hasShrinkwrap":false},"2.13.0":{"name":"hasura-cli","version":"2.13.0","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"ef4b6cf2241f093cb3b2cbd988774aae952256a9","_id":"hasura-cli@2.13.0","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-JxEAMD64A7+NO805munXKRLBlIoBduvxrOwu22Lte+QdqShsy+lexEi3A0RclRJCQ3sZRnrwtTyHmBLPPYRMCw==","shasum":"6d9ba4112d7c4adfcabcd43518425cb2b79d48bf","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.13.0.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBM6QlY3DqmPIHjhZhqjkHrCeHrDcfHjInBlTGsq5SNiAiBoya/2tmgvpYrAu40Pkf2522njbkBtPm5v9BTbymUvSA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjU2wpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr/sA/9FQlyuUc84RgzoZU1UOuwDdDikKmcc9fB0MhktVI3KdMdwXqT\r\nRr7lTaGNOqExQmuxSIblu97P986SGg6gfkDArPXoWS8LkkDhk2GP+3hpvM8b\r\nNCTQ6sGGIbmDzZD6aygCBLTR5fmgF/Ee1/2C/zMAGY38ZmIz/anj0a8mh+wr\r\nrr2Za2h0fBb9cLn3cwOUEYFiWgtYvirbhpVZpv8xzx3HgSGwQWWmOt/llgqD\r\nQM7XMrvCypCHxgDxbX0/rt6Lm5ocdCXRTAfs7qN7AfDKXyHJKGLGGK0uLnhs\r\nvteHjFxDu4vqClF66Uc615W/0DpzmK0rujbCtMHogqccZ5LzTc2+yrQCobEf\r\n28/fw5/O8WedpsSVdqijLDsnLfMVgDLBuvs1RLNA8CDBogsTTMZUJXiwjRAX\r\n8CSrnw8pFTJH0bW/nbfgu9F9OUNqk147asVuN+9I8EcvG4QhpoqDYzQ2LsZG\r\nbaLSSn9c6uc54zvJRqly778MRowKjBiu5EjS5zNMlVu/VpjPC7RreQSuthJi\r\nRxff2y9VHFRtZ95jRuY6CILWJqZJ3s+Kg+jlgBo0ugeIqBClu8AmU/VANdnY\r\nQOJMcs15vZfS5wNehwECO4N28Qui1mcbAT827hQDhS3cgyy9uZB/BXKxgXwA\r\nAlDYtLpisS03cV99C7SCA9GcJIcZv3Ve4b4=\r\n=lMgK\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.13.0_1666411561309_0.1978886128086521"},"_hasShrinkwrap":false,"deprecated":"It's vulnerable. Please upgrade. Refer to https://github.com/hasura/graphql-engine/security/advisories/GHSA-g7mj-g7f4-hgrg"},"2.14.0-beta.1":{"name":"hasura-cli","version":"2.14.0-beta.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"3b8e496d3c31b8975e6c80b775c1b216d741f2ab","_id":"hasura-cli@2.14.0-beta.1","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-IUY7ZYD3Gcpx0ePxu0PKWbMFNgpF4lStUfo5umzFD6o3tyHADzv4iWoWoVMJrRINPC3YFYLp0vwlJzHBHMJhtQ==","shasum":"b06cc94ef4ec0c7dbb13a20f1103764b02110f8d","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.14.0-beta.1.tgz","fileCount":10,"unpackedSize":22183,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCWNyy4SWQyT1FmHW2p5AR+RbCW0HNz+WlvtqL9cIVQZAIhAL+kZWZGOqyFst0vl9vgokI6Yu3XdH33IqSB+Whx1wcf"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjU2yBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrj2Q/6AhBN624gZ0ScxSM5EhcAQlP1lGGJoPEtaReNqhLHnE/eKmMO\r\ndu9P0rPNa1mfyaqDnnIDnsPIEjb0IqFaz4MNQ9QlBSa+RazDUYgT6muAuqj9\r\nwLTQ23KeYRi5fx4UF5z1XaExiUM5ppt+P7KbaXpc7gDfXuDOz9IxokUglrZh\r\nWKMRnSz3xudqrSILA8d6uwMKdeHh9EauJnnWtp9p6MdZ6ryi9XoomS26otht\r\nWqhVBBDVCzbfQ6srR2xuDT1PvKJNnT3flgkSsqfs194pO62iOcA1ToCZZbnw\r\n9ezh5fbOfpQoGyz7VpwBSeZodAlRgkz3WwdUKifSJX+70rTRAqir18SQdgkC\r\nQ8dbYswipzePMeUTfkLnDGcRKoAFoMga9Hsu+EuljJXp0m+CwdgdlpJAXupL\r\nPI5NE6PufAFOUFFLZcV8Iea8nsznUEJITbNijH3aoEOewmHELOfePJTS7Jpg\r\nebSvUkZWdWTdpvcSWCXK70//sUjuNoMn81Tnh67P84av77ffAQMgdrnYAZ+O\r\nLmuVrSXssUJ0o/rcylkctm8JTRwD3u/B9SAIUlki1/ALe7j9vBwjwF7idpaT\r\nAjyx9+QFSOOrazrkuIitQ0enWT9eZg8iJ1UOuE0tGGJWQV5nIgTk6CUwijvt\r\nle09yvSLo+jKkm2womp3c3PBVxwLeAY62Kk=\r\n=zvYv\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.14.0-beta.1_1666411649781_0.558363261192546"},"_hasShrinkwrap":false},"2.14.0-beta.2":{"name":"hasura-cli","version":"2.14.0-beta.2","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"a036a80d741769d5759c9252c17a479e8d13b996","_id":"hasura-cli@2.14.0-beta.2","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-6v0eD9cQnclQXyksN20O0KSEadTjLdIIwoVgfofXOCo26m/QYfzS7GImLYsTQ3R1J2NjUTTPq8nmqQhctb108A==","shasum":"993195ee8ad5c5a31058d3147cb033f0e704817c","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.14.0-beta.2.tgz","fileCount":10,"unpackedSize":22183,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQClFkY0/PHSNRPv113yWkUIhYWYi5uwkkDdBZkiRmL3mQIgAuAX7y7OlKPhhdSFRGmaYa+IUqKhjOpYz2/Ny3spjn4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjY4HMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmreZRAAk/7aebasEqLYjANEyOiJ50JtEdw//t3xSKV9wskwjl+kwRda\r\nKS1xgZauJ+IY3nZ3BWBoORlpCdykpL2gOJhKlM/yCgAOFKCiJ9WhWcD2GpyQ\r\n6z+0YYp9sxO25LkIqrGJk97f5xIV3wPpG18RLhgNC/aItjTXtQMQMt26Hqma\r\nJyX6aKs1Vf1PD2x1JdJfVOgDzCNyV9oz/2XcuzlKF4KETAbFDZELl72AKTNJ\r\ngtl1XSJnQ3RwqDyeF2B7+d+g2PLAoAeF51gaX1a7uXT1tcFrn284Y7zGXSJ0\r\nzkkuak+JRAmyoPowUurTdyhrGeHDOU7zB3o19xOp0IJxOFqOvb9P0TxQn/E0\r\nX4ytZVkX0sLWj5ZDeidJHnTxY2vpOJvOrG78sJ2Ffkr3xhwVQ2ZpTjC79E+b\r\nNPSLie36AG/ueDo8LxKJk4P4lvVAVpomcC5BYl8MNVXB4YHc5JwrCJe9es0Q\r\nCeF7bm5Q4ARvqA8gcW4WKOB4QcGNzpvBP4iYuaSIaJgO1Ld6sNlJsx2a/jOy\r\nebXRmwg2vldP3Mg43k9hw9Uzo9ngZnMARetXObTbP2Ra1TZedLfMntIwgdTa\r\nr76TLJbrtP4KCwGHgERIrpJjFD70NNuDRF3wxat7j+34qhPbVaMJRZQY2SXY\r\n1pyBbqkO/ZLyFpEkh5btJPBGRSb9JtrAPdw=\r\n=OTCR\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.14.0-beta.2_1667465676061_0.319640133483968"},"_hasShrinkwrap":false},"2.13.1":{"name":"hasura-cli","version":"2.13.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"0db852a89d4183d4d1330b1b47f15aeaf9d092e8","_id":"hasura-cli@2.13.1","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-XN8LUWKuEUbFiX+Ja+hZRJNr30qgxjIL3ScWXha/KEYe4UXDNGKqThsy2J2xS0IaMhE7HrRAaN+eZ/KQEGaD7Q==","shasum":"9ce54c7fc968aa0df12ec2657df2ccc5f39bf9d5","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.13.1.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDSfbr4RJ9746mYzpT3Ro/tRbsSH7U3Tjimu0XS2f1/fgIgA0q1HVV7XQzcvYwtkXc2GrbEw+BX+Sn4v8sZEk+Z13I="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjY4OPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoDPw/8DeQglrBZbIEM4Ua6v9EFccEiDos+ML6aWQPLHqwJIYYVeJKo\r\nBj2EEvBLa6km5Wu9PpvOlBmJd1ZOEaBrITCDWYsLqDHl2Xsti3/QrRw3Tzep\r\n2JCIA3zGUpuoAtMfVOghwM+JUye4ADh4ZKdoUSupr7B6X0/aRzPteymvQQ9V\r\noZRjq9tOhnZB0YTBZ6oZ/LGDRxo4w7ecOxK3fI2q0GQoO/xf7e9MWvUJHzTt\r\nFSCigmf0bOxSKBBvnbePk+bMLbNp0aHsIrVwdPcdMiiPJx4tY8ozEYCzDpn1\r\nDWpIzL+d1qk9DNDhyJsP9dde2xlnDrfqwqUhfM7ovdxwalJNflgyzvTmv/cB\r\ncjTHzJHF0r0HwTL7Po1w3BpqcA+3HzaWFUOl+iazLpyXWhKGqbYZJ4jelG1B\r\nN88FeqfmZ1v0MrV6g5YddEsYZkIlKyhnDWtLegaDYrmXuBfnVWAATrhsADOL\r\n82pIOyBPnHf9DsmT6rlzgl73PWiaBFkrq81g2G7qF6xBzbiGGr1QMrE1VVcb\r\nVdQbnQohE98mUJBZPyOwEUtH3HqD+A9SAcY2rMEHeuIZF5wkb9TFu5dGwFZN\r\nqwi4C8yXndSalbCWEk1r73tn1N9gZZpG6zdNyn/P1NssMlhVsjxxSQKENoEY\r\n39/wlDE2l69dlb0pH3FJUXci6aUOetMiebA=\r\n=5Zl9\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.13.1_1667466127494_0.42700689958437543"},"_hasShrinkwrap":false,"deprecated":"It's vulnerable. Please upgrade. Refer to https://github.com/hasura/graphql-engine/security/advisories/GHSA-g7mj-g7f4-hgrg"},"2.14.0":{"name":"hasura-cli","version":"2.14.0","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"a9fa5fd185b897be5d9420ca4536cc66ee33ea0c","_id":"hasura-cli@2.14.0","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-sA3UwV3P5ADujxArp7SSpJG7wFNqcqLlhY9BBpbTqtvXG9FpxbKCfd/IzOHVG/lUxDWGrZOQLeDR9L1iaOi+XA==","shasum":"62de970f8b5411d0df8857eafce9ec3f45e06d9f","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.14.0.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICX1GI/NbfFr7jcoVWquWK7ak5T/JrHODyLn7SMU/ca2AiBPYlh600ZLthpd73kNRZaQyNpXLbmCTCknWQ+Tn2Oh8Q=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjY4PQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoneQ//U4CXWIXvKCHaPj1ub1zsC3rBnXljURl1evLBA1/l79JelMMz\r\n3Vrim9jbf8EIn0cQOu+ON5kNWMA27TYNdsLsaz9QD7fFEpboI3lQ4huLfh/d\r\nmRCYdCq/mivDGgEoUc8EeYaQ1Hsd/M+dzJCSO8M2UogrR/WB5HpR8LCnP/lX\r\n8uRz7Ky87vLdgv5/+sNt5JlcqzKRHosCNjjAXARr/2TzPgsXNzGxJaWamQj/\r\n833K3KmcPjKI6UmLdlJShq3eu5eycHMUt1C+ijzu3j2B73mU3oeFHM92zgIf\r\nInwUsNbWSXzcHzFd65Ql4UhHnR0OVSKycEhWLF9Khr+nSf1kENd2bkfuIB4J\r\nLdiNnHr5zvEFfPpN/+UMJi7Nzvp2mhR+l9Um3n6KOrcCETr8fhJ4zQkiiw5m\r\ndsQeQklqTzi8WmE+6MXO3mw6QPfXYS3N+bgktJLto5j1KbQCzVTM0JnsFQuo\r\nZJ7geQWw77P65/u0fNRBlUCcZwQt6cUAwuCa+gR52KnpgJlLupCvjImslTRR\r\nxZ8VP7qCMJwj0gJ2S20CP7/T525A86/wpuJYlUO7HPgJI5TCo7UAsYvDZwIC\r\nVljd/olQUIm0bIu3sWtXUO3zokh1G+r3D7XsZqrmGO4zAxIT4k0grVs3e3I6\r\nVF0MkO6TTltnh29NmyjpmbexsNMaoNI9zbg=\r\n=RXCR\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.14.0_1667466192548_0.025506907231613196"},"_hasShrinkwrap":false,"deprecated":"It's vulnerable. Please upgrade. Refer to https://github.com/hasura/graphql-engine/security/advisories/GHSA-g7mj-g7f4-hgrg"},"2.15.0-beta.1":{"name":"hasura-cli","version":"2.15.0-beta.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"7e208fe0c6dbb4eb7478edc817b57408d6917786","_id":"hasura-cli@2.15.0-beta.1","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-OMFdBByTp5lf5ycOg4vnwLdSuSb/UpjLQNF64Ta6649fxNizI942O2RZj+nkANX09Ub9I+Fx4Z0InzfydzB2pw==","shasum":"3c15c89b4e5bed651fc458a025df9170b1c73a6d","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.15.0-beta.1.tgz","fileCount":10,"unpackedSize":22183,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFa9hdvZG/XotuAK2kAJkJqwaK5rnlZjhi2DCEn5ivtIAiBqHdfv6F7o+gx855qMrKmoDAOLL4jKX0H2nes7aSr4PQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjY4QNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmolVg/9Gnp0J+QUMORjDwwEt3+TFWHeb/Bs04wAUG2kl7rstuPVDPJ7\r\n7+0Tmt9wv3nwKDE8hAcIvikiv0JAczshKVKw81XDkQw2ZGnkbrDjDHUrD+Rp\r\nVjnmOoNckcP1/ZUG/JRW1f0UNR+lQCI4hPHpaqxgUh/+FyR6De6mKce9xnG7\r\nG/X8CEtI3GRW//6MtNMaU0U0pOr5DB2kQAan7lhIZJmXy0yaju6iV3G2PnFh\r\nNfvCf2v6B+5HNgAJ0pgFkQy+nmCRRGILYRuug75H9xwzAo4C0hxde5GiYlFD\r\nYZBpmpHT7aJL2pCEYbeFbjamIpEMWNbGNea8D7XCZTSDgR3d+i2sSRe5wi5J\r\n319iuafaHkPp3831MoyEmn1vt8DNO/nWKoCQJ8h4C6g50c6JKzXXfoQvAMSV\r\nyY2yF8lH/sTNdvsmaz2ik1s0kPJ6mtKlggXrcMTwB6z+ECf1uE2XUGVUbbzq\r\n1NIzh6EZhSYXmGDCsDYGTSylCeAkb8S/ztAZEQ68w+gLk65rWxaiLcTALu/u\r\npdv1nlV7Qr8dtzERdX+4u/vyF69Br0g5gGziArJFGY5JiWl1rpyWDeNbf9tU\r\nLSI29wTg00zDQ5xUryQRus/kloVqBoJ491aGI5+aDny7SAFlfi5ffS6b7coH\r\netv3JqgfVOLXBc5U+qugrVTD0CcMLCM6wuk=\r\n=JX2P\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.15.0-beta.1_1667466253812_0.8317676607266755"},"_hasShrinkwrap":false},"2.15.0":{"name":"hasura-cli","version":"2.15.0","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"d0aa3b5d8d87757784f800ceaee0e65d9bf6c8b8","_id":"hasura-cli@2.15.0","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-72SVmaS/fWcTHUpcOcpqP+plr5uZlQ0fDD2ZToT5j0lrAVZSZlKCTIN38vq2xmFruaI8pBaTOioygSYEnAvXVA==","shasum":"6ad8d53f6f9866601ef57a2ada2661fb3673a0d8","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.15.0.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDKa13d10WL4SOk44AX3n3WTgd/yGprDBQvcDKgzkUeMgIgR2VYAzu2AsLX5bzxRRzzaBo4YR7FQRWW5pu1MEt5J/o="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjeLqFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmobhxAAkXB8UpbLTF+qlNMpvbw2kPuje+s2znqLSEwb1XwOL4yWhjxh\r\nc9oGl9Ela1FjVLB/xAK7J9oqdxMkkqRyMDfVH6QUNsuvDuvfKdYYlYtjmjMH\r\n97wSFTV42cPEoL5BZ4M4sMYd7/alGlJ+oklSQWEI3CBKWpisoP/hcBKpE365\r\nr228tKlWarS9jpaLZ7K09TaArh8qPnJNRKmzDd9niXMP4O7e5EZR34xOpF6P\r\naX88WClIbaH/oBt+SgAyXpLptEDzGOtYCyhfqfsuYFPh2iOD1OEfKpdEQ4jS\r\n8+pISf4Qg4y9cGblWTP9d2KNid4H4OiWg1k2bim0WqWEHlRoxxxcki6rV9Cs\r\nrGrzFvamGzZIM9BwbIrRC3kk8LmfHpnZHDC8x7Mbk3IblSPCDChJXgQ7UjYw\r\n+Dbmp8fuAy8QWP5bxSoKlkNlS6wut3FXjnTqQjk0WRKG54NmQlzgJB3T+Ucs\r\nhEtHEREEwoMMDfjjQu4QCDPSwsKrKzYDCP402AdME2icUWXnRxf6uwUHUppo\r\n11s9XV4zqsjsavKEDpgLWTNslUz/MSomfqiBdjiqnaP5mNUTecAzS+xDADkl\r\n3IGWrHB6pVl+ALf/yMlPp4wfi+gku91g0McUJ/jrZiXwvEjKtUDetytRqKdO\r\nXjOIwlRpYv808q9SCTGIZzfLctYoY82V+OY=\r\n=epWb\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.15.0_1668856453078_0.5849900219731836"},"_hasShrinkwrap":false,"deprecated":"It's vulnerable. Please upgrade. Refer to https://github.com/hasura/graphql-engine/security/advisories/GHSA-g7mj-g7f4-hgrg"},"2.15.1":{"name":"hasura-cli","version":"2.15.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"d91f5892527ff866a79c59932b8e8f4dbd249123","_id":"hasura-cli@2.15.1","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-uFyo0yaxvhRj3s9u3ScBhRRtr4muwQhfCUpQ4TchbAYxYcZ8Oly75dCuaakB1Abt4GbpJMCNKR4pPyIAUzUkgw==","shasum":"229fb91b51fcebc90c1e467d684949cdd2a8e9c9","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.15.1.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBspULhaxYdXnav1519BxAxmaXutlhKzpOTbV/P8KUiGAiAmBdnkdCuF4+fdIiI28a2iA+/66YjdLDavHXhijUXuZw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjeLq4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpW8Q//Xt1zbDoG66uhsIP+Y1Zkhk6qxpxFIS0GYB59brj0mF3dByre\r\npJqS+aun9Z+V9FC7BPgRwrKSR57nxkWn4SSyCirqjN5yQ1zDswTNZI4wdQUO\r\npNNduVkPLJkGCwCT/WtJQbog/IHkq7a6gprxhdNIASl+ciIa6I9xck+bpWsg\r\nVCjhG5icFUgaEALA6p1R0Ud4MWcYQBXAl/JEkknlnyGQyTa22Kd7KBnyXxI8\r\np2PDCGlKQVgDQ9RfqeXRkYfuryOZFahP26R+TvxoxZ5Q/2I2aWcxQ19B17QV\r\ne5ACTj6G8nr4S2SV+qMts/3HN0rKO7OeBxz5Nwo6a+jfu7QWZFN+LMizP4aK\r\nrs84u16LInO9A0VuzEfBWLCnsmFYqgp46Tei/+jCqKXLG5MtFxGe6LTeu6ni\r\nuBisxdp57QvqU5gu8UINKMc6IwiJgXAw+AItud64CmwdJ00zRngsmll+pjOY\r\nQ0OcMnrcFjQZrVXVjmshAMTakEuhTb3dlakAgSJ8N1HXn4723aePOibPZMNV\r\nMs3nAe9ECuGN+rTAG/H0i5E8AV0T7to1LZ+SsZ0y/B6NrcuiPPVzATqAnf+O\r\niHSV0fzXJJtz3ejz+lvOgSStzuBSFVFxCImTDfPEC2pd3OYz/oFcTh5aDtmK\r\n+7ckothA6URg4tyzKCTyUROH1SlXdFEARWQ=\r\n=/Y2t\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.15.1_1668856504184_0.925627003224694"},"_hasShrinkwrap":false,"deprecated":"It's vulnerable. Refer to https://github.com/hasura/graphql-engine/security/advisories/GHSA-g7mj-g7f4-hgrg"},"2.16.0-beta.1":{"name":"hasura-cli","version":"2.16.0-beta.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@1.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"82835f528dcd24962dbe08945a8f454ba474d240","_id":"hasura-cli@2.16.0-beta.1","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-dSIsfXxE6iC5z9N6Wumrxh6K3IUlG6QpX4rTc9G/fXoWcjthhspcsMFH2eoiqBjk7SVqPGuLR3tTfF401/ESqA==","shasum":"c207dd9ad175493bca15c65d4ad0fd22b5a1dd53","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.16.0-beta.1.tgz","fileCount":10,"unpackedSize":22183,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCtVyhziEd+YGnaZLE1kyoBE6ZZNjfDdM/vKHhUz0jNgQIgDVcJwtR5VOV8zWm1Kx+JE+/A2NLG0PbWyALuFNjB6BQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjtS/LACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqxyhAAo09FRTqEJKSgnaqIBKAN9I3oeLzoj2qFGIcuA5ORT0a7HaRb\r\nYNvHnJ4KIAz07inRiR7vPeq4tqTY4v9iMeAGVLgrMIYv0DZth4N105BN2M+p\r\nVcHri9waRuG7Gfg/FEZLEYdqywp/EUQm4RoVLQrDOXltxOiMnBzg+3nx4TfU\r\neJnUBbw03PmQpZp6Sc6VWnGTD0xZ/04Ufnh44ljV/z/UqxaWw6gmz8dhpUGz\r\nq9dvC4vvcZzaVDw1gRY2oWyiuXbRqqDfL+Sb7rO9ufam50kX3AFSTbQ+enyR\r\nJAHGE8wddptl/iKo+wgrxg8kjICOYrOlljzMw1YrKVrRtvEOSStyLIb05VRm\r\n5q0elXQn9cbYtJ0ls3nMiCSeOETIk9ewkqJ753+uOc3xZ3BK3iZL0skDw6Tp\r\n1oM7bFlGsW2CUNrzASyVoeRdap5BI4PN3zjoHIeF7IEkcyVhFNS5DN67alh6\r\nvVI0eDD/gJsKB0b1PBb/o3axaNCTXIF7XyB42WY7O9gvSIgBb1r5F1AEg4Rb\r\nDKdvk03Jgz1QMtGvjcQzlL5dDkU0wp7ZAfjWD86sVk0+e/uRHPMvodKAomDE\r\narsXWCaLb3usqvOB1hSFxey2nwnd+E1yxHBk5v1+BZykDycZg3278TTQfxCv\r\nOxhW/ih85dRNF0RE27a6ium4BsJyweWf5AY=\r\n=DsVa\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.16.0-beta.1_1672818635487_0.4085209209787579"},"_hasShrinkwrap":false},"2.10.2":{"name":"hasura-cli","version":"2.10.2","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"0e288ad7d069ce55dde6f450ab0a92d35c25dfce","_id":"hasura-cli@2.10.2","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-1Gq/Utn0y7Xyivztg/dfQfDV/fq3J47leZUZjVgzrCFXmOG74EZTHCSIwqBH6AEJZlIY/wXAqumYQymyeBFPWA==","shasum":"eca919feab35d352b7a86821c1c2dee177f522d3","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.10.2.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCyoHNc12WkvR7GxJuyPQYdCxKyl94OZas5RwyO9oCf0QIgSwzpJ60o4x+xrYsR6eVUowDvt1VPOgFPcpl3RagM/eo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjtTAIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmogdQ/+KewGth1F0IfVnnWoJlhA8O6anJy1b1GBTEWgBCnut5tPnszm\r\njEE8ZVMPYx6pXMCGuyiMLkQ+zvFrnL2raOUp6JLD5TlabNWDLpxxrc6Lmfhp\r\n8Hfwp6sA7k4ywnmxe9VVC1Cw+IwWYlyDMDo9jyi7qQ9/iWqcaa9WSOsLZM+x\r\n+1GBBDL+4Soy9wFNEpy74AGKNotY2i7crBQ/eq5pZiKthnQe02KjPRwJ/cZP\r\n9OqJAMWz0wI3nNGIsyeuY1ovjuVnk8Ok5PpqhpX1Ezu10s02OaTBIMR4gA3z\r\nana6M+5ZpgMQl08QkhQJuUV5kHUNFVGhwxfxPgu0l3PNMMNDHchKW2raLNa0\r\nOUnBTZcUpKUGQcLjJyAmVFebWb6+GcH70Y3Ynkv+A28XXCuZL8XF0ni2/pyZ\r\nvT1784CraeQQVHy+lyRntVwC/8VyAqeiKldzf5KLDvckkYgSgZWGOj0RLDJu\r\nHhjKgxefgSovGyFa/F1lTihsX+ha/GR0sFFBmVUp91UhgNZfLRe+sHde/Jyp\r\n5q3OXhKxhxQwbmc01FaS5xodIj42SsXtCPXM5nPyBzqNEBHsM7d/9gFpm9Os\r\nPwDdNvZtE8jmOE9MwcwIfNuBKMtb2Qpa3XZdeULD+HV08v4a3a2p/ZkRL3N/\r\n6X8/DSTLfkljmeszpJ5RF7C6ywbWgR6PQsc=\r\n=mcpg\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.10.2_1672818696259_0.7193763568409108"},"_hasShrinkwrap":false},"2.11.3":{"name":"hasura-cli","version":"2.11.3","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"6b9f6c6d9330c46fd29f90fb8974e830936a59af","_id":"hasura-cli@2.11.3","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-VFOCN5ZrfQflHpPieDFdmPvCZkZ6Ljq8J8/rSZbSqrSpxMEnvO6aC1GWPf6Lx/IQN2LPP1sywTE+MA4sSjFKVA==","shasum":"24414a10a7d1eea52ac380314414951d3804a38b","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.11.3.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGid9NCA6PHCg3hIMU4EaOALAORR3ibXe0gCmp39QNbsAiAhXO/Ty/ENiOzU8K09N/Tl4vAv6AAHVXxQ1Qm8dGB/nw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjtTBmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqWXA//bcYQI6YZmjA0CMGs9AF8LR9PLX5xwHwjUhi1907qNTRAGnqn\r\npuN5OFrSeIaudvZchIDGGRl1f1mXaFCpqvSQ2zVhvgVnysXl12V/vFpCTPfw\r\noopcYq1w+5N4CJoJEm/+ESitQSEBjl5OCquzHMOzFnFtypSCHaQmRQqOyBJK\r\nEYn2K1FWU7UxuyEJSscdWKlsBL6hsyjuSxaX+0H+Tcgs2myZBfNDa34fykaJ\r\nLv34SNSWlhN6h8iQLGph4xOCqf9ntDoZ+/GcbSaW4QmmRW01hgUX10kDFyil\r\nnqS0Et8KaL2fWOxkvDk2SJJ7vWiK4uJQ/xpH0EW234ADsCTdh5CIFbDYfenc\r\nI1FHmAP5k2VmJLSPfLrN0d3dwOYPplCty+NFrDVdgEeqnEvOxB57RByuzdak\r\nR3uOFCwSTHgmt/aDp50zrBXRV1H6PK2M1JUDMaECoFZETbLHVVaaxWkAAhNJ\r\nSS3+htS1YQPtjDyNE5A/gt3CXlFb9JuiS24ZN4cOeIooMPvRgJbrAe/qvqvc\r\nQUnFxP++AxxFxSDP8MXS0Kuyqt2vWB1AuJUMUoku9BZJqcljJDQMfs1sFDfe\r\nbODFpvQPVt+qt31IvNx7s6BOYSdGX4t1k7RKv3j94aunxxMvsEifh8QdtnMu\r\ngoKcVnpj9r0wDy/BY2+e5r7btj7X6XIq7rs=\r\n=1ijc\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.11.3_1672818790681_0.9117165062658761"},"_hasShrinkwrap":false},"2.12.1":{"name":"hasura-cli","version":"2.12.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"8e68c26ede97c5473dd6a5fb478f98c061d57236","_id":"hasura-cli@2.12.1","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-x+VEik2eDJ3Idq5zY+93PerMOGXLt0FAN7rdIWSh3HvNUL+xc+oSDHrsaYXrnHpCKjtqm8z1wv4ZYb7nPuhaHw==","shasum":"e0ffb90b909d0a1f60d4f3a49cfbc8f105597869","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.12.1.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHK/Itrp9+cPPQYO0qoxydCy/swHpkbbDJSIN7L/ChtoAiA+hcXyj5Jsmn1KMOM1lCeDD0jyCiYhLUiPNWRb1a44Bg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjtTCMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqD1w//ehI9+lInpf8KDRVa8YZwQm5P9TgN6YnMJDsvoFXhhytCUtiH\r\neLfCglz3p4bPJLsH2IVnA1WYLRwo0YsK+bLWDXC/r9sg8uyre0pFWm/dFuXZ\r\nLy4YDWHwGphNaZEfhncLyCHl/TsKB6RatGgDoCgjcOxl4J2KzvKMZLp/iElD\r\nN7T5k3a1TWO/Q8aIG5yddmOXcs0rvXYWrwNUPcJSqIOYModPqBUvN2z8W2OS\r\nmDMG5d+1fT71vxJ9bkAVAOTuAbUUyacODkNteV3G6gY64rcuX7DyY9q3OINt\r\n/Rz7wy0T2m6f53lhXcoTMpHotHNxh/75kaYpYS5yUU9Uv73VvTRv3Wbjhxj0\r\nNeccn1oCkF69f2rLNz74zXRsl0MrR8K2r5wOaX6m9o3tHlMYXuTKCpbgCKzE\r\n+iq5ng6Y16qH3hq+Go70kJXuvBvkzq1fZvGM8uKDeIXoaKwb/7LTEq94Om3s\r\nEaHmFb1Q+YUyrxRd2BH4JFzliKSDzc/ZcElKHdlhzAVv4pFTJcmoJKT2GlzP\r\n98+p9UgnCW2YtE06pj/3HR3jEXeac4eY7IHNaxSvsEgzkQQrbQ+GzLG23kAz\r\nU0fLPyB5pUFgQSZIh0TmIxnvHIw33tXKdr22g8vTqaz3zhuZYoYblK9C2NQZ\r\nl33WVGnngg59RlDBmJ1OjPTE3f/Ji9Gbepw=\r\n=Kl9u\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.12.1_1672818828445_0.16815875244153022"},"_hasShrinkwrap":false},"2.13.2":{"name":"hasura-cli","version":"2.13.2","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"efed7aa166c879895eef262b60f60bb9b0e6361d","_id":"hasura-cli@2.13.2","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-ELR3kC4GAFjHe49Doh7+31MuQcvOWxPzhw+ruCEg/B82+VOdDU2mL9lXYe52m+hi+oKPWb3kBn4gpNJu07Jazg==","shasum":"7f9725acb7bc16525d410fe7eb4d411e59b25c34","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.13.2.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCNtEW+CsQ+TsHaDfvqrNZ5EsYxyr+ppN0IVU23XvIVLAIgLv4J+FDYpdDg0Bfhup4JkZxr3/4YyUA1qlrdhdE+rP0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjtTCxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmowGw//Ts7+zyx/TQEwUudzRUFCcPnBM4/D3q+/O/dzb0D12Q71iACR\r\nGvo4vodisjQ6oHcSg6BdmlF6ECu4kQzcahA3h3xbkY0vEaOgHwrTUGtNJxj5\r\nhzqB4fZHUMdqzRoisNNvOlLl5t0EgiDaStoV0lc5693zH4w56UMetu/+Z4I6\r\nuxmxUvKPtzPdUuw3geYrMIpUBJA/cbTr1xMBmaIMkK2fin5O2ZgsAvv9lsWn\r\np+GSgzTLNB/WhtqAFJUir6hspzNmbi/OD6q+foURrFAog6SICspr/kqShVYx\r\nHurH8/uTd+/EpNreTYaLi5hP8ZiHfY0i1n6Tpw1JSQRvckNh5kywkDjkvUho\r\nnw4EBmdzrH/OEaVmHatH3SWK0HOOGItVJwA+Ciu91hAc/b3V5frT5B2s4Ewh\r\no4ORnJW2rBjrr1UgfqxmxYui1ypVobQATdl/Vkmh2GBacNWiT6d2gXmFt76O\r\nFY8/JH068pl7sC3sxWft8trJ9cOQzquwegAZwxIRYt2C838qoct1GFU1twm2\r\nTi8JWGVXdmzYvI8+2i6iS0EVhY8nhM+MNh7QjjjBCgKj3iRxjne0zoVWu+cv\r\nrbav6sZ8VdAg45rmHhW8K/wEJJOmOn0HVBlix+WA3ibsNNDKyD4h+4VIQjYq\r\nYtoHTm34oX9y2neJrtGXr9iZ3ZdFO69uH0g=\r\n=KSMF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.13.2_1672818864936_0.638900701712356"},"_hasShrinkwrap":false},"2.14.1":{"name":"hasura-cli","version":"2.14.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"c18c19bac637a1fa3146669d9eff53587e9b3dc9","_id":"hasura-cli@2.14.1","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-DnM9VKvLaiQ/xT01zxiaKOlh7FVC21ySX62QmUV/Gd+JyRysAe8lNyYqY14A0ni4UMnsuGH+mQpZ00EcIjOVqg==","shasum":"02b9275cbdde7b5b6752431d61e9fb8bb238f0b4","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.14.1.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIENJqxohTBbSxHj20uhOQrRYzV9swy7xY1XumNWSthl8AiAFDpieZDIjSp0qjJ3nRiZ61LiNBxdyXrgq20lyMyUaOw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjtTDrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq0Ng/9Eh5LTMalM92RFH8u4XbF67+3o5cl6RG3bJMG9JRvi5Sohe/h\r\npxlogXKZ8Uk7p7ecU8jZN3AhCCpcAv9P8f/G1RlTDUZY9VemJeLBTULt+H9s\r\nBNTYErV3Oz00RzUXIxYebgh8j/VmG6MD1Vz9ZQ+A2JIR3KNh3otkSaOShQhF\r\nwe29utfCpbvG/9ZjTCLRt7pfgAzOtCiqlDXcf7tHvwH71dNF3X2hurXU18Uy\r\nabtTbQNUyimNiuAxTbYTpozjM04SVYfoyXPdd14d3JtkNJkc6HfJliYFJ8Cy\r\ndg77inisJfCpenHjrSTWB8OCDO9AwDUNOobXGutv6iujfN5voPxPAve+cnn7\r\nfhP2/IFG6p7709G7Tuokro2NrngMzziycMOjJvcvIQexdM9DusxRt/c2QStr\r\nxD09nRa2RAA7f7oBPZXHnb01nWqO6n2xdqjbSPfoZCZMMj3n+SLepHr3nMBa\r\npHTYvEG2P/csmdDvM0LJjEffttGVtkr9sP7SdGgrZezOrhoj3Bb+GwhGerpc\r\nkewywCZApHENisFTghPXnp7Mr3VRYebp0w2tSFRf69x0R4Qoj24qbfiB4Ttf\r\nB+NG9BSpLR4yDqwncXjPwLlPswWG2YCbgCopqOZTQ/Pz48LDoKOHNQp0jy4h\r\nTBRak2BEYGi1l7T3R4J8IgqKAoWWd3KjUf4=\r\n=VeeV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.14.1_1672818923795_0.5089281240153951"},"_hasShrinkwrap":false},"2.15.2":{"name":"hasura-cli","version":"2.15.2","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"ddc790e6d33baa87f29141608fd1ae4fa9624235","_id":"hasura-cli@2.15.2","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-sdNZkRsc4MXh/IPv6nVi/sJ7PwJVgeiPqPetGD0zEjhwKtKJAtT+cqqZqK8HI1XCshBbalXMjUcSCvtYMY8VyQ==","shasum":"12c8e6df56c9a8e69c0ce8ad9a661e15a4436afc","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.15.2.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCNSer8Wo9BKu1Xlnpj2oj9mlmTquXX2MHW54HfD4BztAIhAL8r4NLAlRWUwEEBOq+LZ2JjMSeGm/PDHiA6agXlnD5I"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjtTEgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmriEg/+O8No8NiROSH5t3JWmdsNKkdEFrb6G3svWGiz+Lip38+DuYqw\r\ntGc3wdwZFP8y9KG8CMW8imWURzAYiva9ZJTsipommR3h+jkychi8kSqMfR3+\r\nOUgaddLZ57Tl5Z53icDgw8r+dXccaGKBYLur7vZ0HX68Z2ZNkMbRI23C/Tjc\r\nRO0VWc0Xjz85wG6jEcf9rVdVDSv56VU6JLy+zeAjkWosEpcMJ/frNjZVShlR\r\nkqlSWy7H7y9Ucv5RbfLvT8GBcUVkPe9xK+0CotwBH/I42iLmg7jpLJ6Slu7L\r\nESStqNV5xnOgxnJYOWXuoPXdUCOCbAixGcizVSXeR+/B4jPCt8RrFiyE73Il\r\nVnBWBtjDtCV7faiLawcAP6cz5MlQMCQEm/ypmpqpt69fXAw3JKjQ+BEXf0hR\r\nqBb9rKu0wdBENtQtcb8cqJXftikhDsoFy2V3ESQSLVwo2nfGvcvbKMw22hIh\r\nFHwj9TDDGA/Uue07eTZNirn9dH4tWFOe+fu9p+TOVM/iHNGSXHZlYs6FBS4U\r\nQgsgqpDHgfEE6CxMSSAMhZamcic6vScimfvNB0vvRRP6JgF+sEIZ56wYsIJ3\r\nSh8DgPl6Wzsk4D7vquyE/D9IHTY3qrlT76RWc9b5XbnpxPEcUvOg2GBBCr+D\r\njiDTQUXuNe74zbN69TNj/rXu2O78JxU7cf4=\r\n=YaaC\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.15.2_1672818976270_0.796715653943405"},"_hasShrinkwrap":false},"2.16.0":{"name":"hasura-cli","version":"2.16.0","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"b0029419257d9b830ebbfb1c683a0aeded3aa14c","_id":"hasura-cli@2.16.0","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-A2j/Iy67UiBrsGzFFFLGeqOy8Cs5LNof29ENYGKDtdD3maNtQdu8sg/pb6orMCze/aebo+CZ6fb8vjPks51rFg==","shasum":"8bbfab534bcf3763b1212bd34cac901c0d687db8","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.16.0.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEX7WtAAP/O86vE2yVuOuY5a6peYFScVKd9D2sXsjAUPAiAF9SHQxu6T0OLryS5Z+M7kc4ZglSGfzDsxvrlhX+5Gjw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjtTFeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoC6g//cBfCOpN5oY4oj6LcsvlY6bGeUy/17TfhnXdawN3b4Zy9Cucg\r\n7hnGY1/aJCu3D12Og8+39zecFf/wyMhuBaju7bHIXlAstwp52DAHu6zO1yV1\r\ns10KwOvChcVewoLNiioid4l3ksczwlXz61pqX2GwzD2QhGZJHKSBkxqVKcmL\r\nJcmINslZNTeqiTpkstUNC6ZJrf4sdeWQeAlFnbMXggfO26C8Bu7uij+KdypF\r\nP+StMZfzaxtCTsZH7zukY82xk0zZQSmjzTgHAU4CNZSTzo9XSPH6PXYvGA6Y\r\nV/CFdsmVCiyEDzOofaREjNnsTJK1ig+SRneq4vPcUaRCeSx1yDinYIshDnxp\r\na8r5r/MQgDqlHxiomHR3LBfPG8FgXfAsXfR0GOkuMVrIsRx/6JL0bQM+8Qjk\r\nUYtsnP6L2VMN5AQ+iWN7OioP8jMPELjKgwcxzpvgOiib0IBFpff2Q2qdMSu7\r\nufveLyIIO10HHYIxonMf3HaZF05+Xg6uhNuTwT4AcwwpOzeUJesN5lmjnwuw\r\nVNB6HyPVNmJ2OflJhkyE4RfMG5smF33Eu0yd/R6gGB+g/1yp+V8mr8yZyidC\r\nHhUSUD+uFg4UKJFVxjn+SjPsfLxG8Lg7crquLsyZeX8Fl5PCVWl0/id6xQl1\r\nU6LyPTpXrayk+tVBX7LNQ/x/ztLCy9pYMLs=\r\n=S1R3\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.16.0_1672819038641_0.5923372700531562"},"_hasShrinkwrap":false},"2.16.1":{"name":"hasura-cli","version":"2.16.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"175a59f4237d91dc0fc9d85d68f83a2a5c94144a","_id":"hasura-cli@2.16.1","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-RcSWmq4OJQef5AuaB5tZ/Om3/D2oncrJhdFraPd+F+qHjDmv17XZDUKaAwc+6HKIMLS8QIjdQ9Jx1PXgrnJfSw==","shasum":"e73a3baedb7f203a12ca78a94edd865233970348","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.16.1.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDEQfhZ9LBMCgq8cT2OiDiTymM21j3mkK1Itzi20oS5SAiEA9tMerjh7/c+cIOv8c2qonXt35Z86wKZr6aERp2E7RA0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjtTF8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqJjQ//ROR6+NXV0mkK3iCP+zf2/bJaSAMDxD9asp5WzfGWgevEbN7G\r\nhGr18qh8hd+jcx873BWUytTb2mRnVApuDwIAHollunPF89BD6MWcKzYW4qnk\r\nR28wFhReQmQc7RwzNLopSBmEHicwcoFahzw4FClHTTqvZYkYKmPPpThFGOkP\r\nGFejtCR12tOrDjjvzRtTa9zYlIzQ2h/N+8VJ7fH2Bm+b3/07MRJGeRbv2IEI\r\nK0ZkmjAJ6iwgwsdijMzJ7X5fp/iNsoX5wnf2nwaQzkGaj4vIZfn8L/8Q3aAW\r\nvkLSxnM1qga//lD1CjMjEWX5/itbi+w1tDFrHk4Cm1V7UQXj/K4+9KkKS99C\r\nxgkeFJ3Jf6nVw7dn3m1C7Ue2NGaeRhpN2ZfW57U/He1OFxQS9h1O65IypV//\r\n8halFhB9U6fKCbuA2FJwIJZeOeO424lAuedD9oVew07yEdn7ZpyZorasF7WZ\r\n0BSmoLvksHTWSuviW8dOf3grSmZonpil7MRpgAECsRMAYOZFKG8ntUEzG4ET\r\nPqUBFB+LDI//RpJ0SWQ2Jnm2PTmRNgWFWk7GgypCTPhmayThSsDjG7GVWtNw\r\nMZDsPd4hdhP3M09aNWSIkK40rINl3QadY1qoJhvqB1BqQrzRmhQsXMcXXRrw\r\neSjbEvcH3YV3BTYQ4Rk8lUUXLxsoVuj4UME=\r\n=8625\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.16.1_1672819068547_0.5179152919516534"},"_hasShrinkwrap":false},"2.17.0-beta.1":{"name":"hasura-cli","version":"2.17.0-beta.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@2.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"e7134f4c286ab3f22069fd82f5e0dfe47872d960","_id":"hasura-cli@2.17.0-beta.1","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-5BvAD1oRmqckWZqSo/H5DT1lbf99zB8xLRm9wRz77S9obYMG/Cw0WaCjKlwJ43kArzJopC1jqmYsofzAgnfiMA==","shasum":"61f67c785904e1980f14e01b939accfcf528f2f5","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.17.0-beta.1.tgz","fileCount":10,"unpackedSize":22183,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGVnRnTSSG0ZxBxm9YkOkzbrekS5K3hurfEiGIuWTSZTAiEAnKdDPYr2JHDkTVWWInvxbwmqGjpZMepC3UsiO+tnYw4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjylFCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpu0BAAmFfN9+wvwBGZk4WFh2PcqtTRqKLeBoRTRcIRhEPfkEPlrMVx\r\nGJv3YUQ+LE6kWYbKLR/zgxuFks6CAM8/IvrFuluXH7NW+D2EsnFqSWDcfrSH\r\nLUUZGNi3SCnEiYNBTa7xFXp0gvBPVMLVp56Nmm1dfHbXVOYQyZ8wdvTFikgc\r\nTumkSBAxy5+7XXRUbAKCtWy4xdTejXLJWumtKQsTscy5li0NMXTBziIGFd4f\r\nuE68123DK1MCrueXV0LB8Cd0D+93Am4nDpF31EwKVv8NUyK0ap4thbKTnFLV\r\n7IJS1OWoSsOiaj2DLivgA3sadMIQsRtv14LxMhVyWZmtUa8Vuy7XdIiPUaK/\r\nx3D2lkh0bHPEK9+fPT52PE7HhHf8PBpZOx/lpP3pIxFhQ9+MDmircHQm4R5p\r\n3xYOHPIdYuar7nYrVW8WB1iY3y9/MJmOtjT4NWulOMpvEBmBUdxGl5Nr3C4I\r\nwCkg9ZcbZCh7vVHg25YecRyTTm4YBjr8iS0C7OtXUkdMiXlAnhl2NjCK6svu\r\nNAUfihN/WWgjQuwh+XrN4+iB4GYtnEHIPpS76cF6CcWqgGqlEpH3XgMuuUJx\r\nQuoiMjRxV3q5GqA90G90ZDHxe8atFW8/HnQee6YyO1OuqSOteSf2P/cLn/Cn\r\njDGAut1JTO8j/23Z4G9SBT+TwxE+2xIVtog=\r\n=ts/o\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.17.0-beta.1_1674203457835_0.3338221196858857"},"_hasShrinkwrap":false},"2.17.0":{"name":"hasura-cli","version":"2.17.0","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"e7134f4c286ab3f22069fd82f5e0dfe47872d960","_id":"hasura-cli@2.17.0","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-zDatP/0b0ze+GEaJwDLutwualaTx88QElsiUTwvBwLO16DvNUVuDO9Wfw8Tt8sTVZaiqzMksJuyOJix7jXa59Q==","shasum":"08098fbf79d1d03f5742f3dd6f14073fa933f488","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.17.0.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDoMcx3bwSjNucuRmbmWyHLL3JJ4Hz5OsK3kbaitEdrDgIgUp/IFmktAQnJbBdGvtr4X8/AYYIbqI6pzKQXkQwO18A="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjylFiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmovqA/+KlyqbXBb2POxsK7O4ezNKfTw30IWtSbOseoTUK0SM0xeNh72\r\nM0gxxn9JljwRlYPv7eKcn9FSGbVHqB7vqc/swgeeAzCDNm4ErS4D+TOU/MRY\r\nFp27APpG9VK7wooJSA1QelyxSDpJibo6ngNiRqFnkTlbbzA09hr/VwEsghsd\r\ndhnJ42DcbkVVkvJ68VjHwmFaethC6IWuTaMQl/U01itfBNinvqGX1MmiLewf\r\nSaEAe5o4xYJc3GyRe0FIuqjuPx+WayC7zxbjds8m0SsksYgUO8XO5lolVEo6\r\n69syYv0q9YQhrCNvYcLDXBbNCh9Xu/n7GdgIEAjrDz15Yy7jdQSew9np/B5e\r\nKVEy2ajNO5+nCAuuFtsC7xkCiDHE/3xLT1SDNz+t4TMbNe2CwF9bUkuCNEno\r\n5aG5lmKTMLRilEnftCLwaG0yYhj+G4YWsTnLfENCQOBdObx2+86Yj9goyUf9\r\n62eVyWDrvrgfBUbHsnvNGntL/RNGGpqYL1e2UOAvIWyE5ioKgRIgfeVP5KJk\r\nJyaJumIUplJFtBu0GQtDXVaE7oUzriY3xvdNPpdc2RvubueG0mTdFWP75BPr\r\nxBj9LDxc8HKS1MuzqC5CtijRZ7raqilqOT0tiqX073mk/M9MmrppwT4WAZJT\r\nIr3tLP8KWYrnBV8KsLdXCOgU9bQOKcuI3+4=\r\n=otpF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.17.0_1674203490673_0.718883543166071"},"_hasShrinkwrap":false},"2.17.1":{"name":"hasura-cli","version":"2.17.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"7e503e04f2686b2e552fcd17403210e7b4455d6f","_id":"hasura-cli@2.17.1","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-n5DmzL+mYlfd5AhVfKFIs0I0hALmM5TatIkDuuuUL7B1FL6/B7cNocGNm8YsZu7uJPJTP/Zgnx9RmKKkz+I6QA==","shasum":"66c208a4e835c1ff532b355a0a603d7b1ca914b2","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.17.1.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDFH/48RVVVZH3ror/L4ZIRK3BvSOIau7jfKed2gcyIAAIhAJXAtO/t+f6j5pIis8XXXu+4dNSDto410Mz3RlswiF+h"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj3juUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmohoA/+L41nn42C2JUXgNJY/dQ7nSc1tU5uqgIVO8SL1JL8rsyzOgvd\r\ny2zzILhWV2KbRbBAHotaMt730KcjHBqUSSKeDs/qXbtNXXk1Cn+QY2IwrIxL\r\nKTc5UOqrF9Soud6rHviohSttKmciXN6lJlp7+XumzI0IS6sqdZYlccSkzevf\r\nYAAJ4coAUIKojLTikYVpGDLaKCCQ6Vv450b1RAmrsJSp+48V/Kec8Iw8fnyn\r\nQQZFhOK7C32OprTpEoBgLR1ql1CPQK7/f2sT96HYcl4Dw3EZGriOhY25Beto\r\naQ/zScOUidn8XiXB7QNaUVtptlXcF499G4xx154SDnXLfTsWtuyPKYp2kwmp\r\naTd+AN7ihw5ZY6MdFMllw9MEkg4Sml/vjWEpcNGoZG5Z/IcFSyZEKIGIEBF/\r\n/PAAoC22rY+O3tpQYx4E+L3GRsmbcm24X6RMUuH/meW05bmI6h691KEA+qKv\r\ncJ59aYE1J/MlwbV1LFbejbHkV0O/SS9jMuyRBgj4jglicF6qu6i/27ftF1td\r\nOnz1tOrW4MnuEoq1S0KoUozR1j7V4mOU44fI5GEsCL76qRKzVfQ5MOShmvw7\r\nntjJHTYb5OZs7bsGJq7wm/WFGX95PP5ZJR70XT5ehCQT8OQS6h9SMkMCWtrT\r\nfm41tZ0By3tuF4IrxzeVyF12OwOj5mknlfg=\r\n=5rUE\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.17.1_1675508628596_0.5945497260203536"},"_hasShrinkwrap":false},"2.18.0-beta.1":{"name":"hasura-cli","version":"2.18.0-beta.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@2.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"7e503e04f2686b2e552fcd17403210e7b4455d6f","_id":"hasura-cli@2.18.0-beta.1","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-0VgZqJmFI5OnaOQYwqneISsv8kz87gH6aWG4WJjKy4TfNVSUxCTN19TOE8gjeL1kla5GQTHhyB39kh5vmRgkGQ==","shasum":"d20859f27d1b11396eb2b420a28c36d1dfc04f89","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.18.0-beta.1.tgz","fileCount":10,"unpackedSize":22183,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDoQyV+zS0AMpA0sJrCJP3VBeitYPQUeruPzYiiMQbrggIhAOmRnO2D/rr/kKAXhA54IDT/UP355D8rhKio+bbKPVw3"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj3ju6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpqVQ/9FEUBPSouconrfG3bINxd3xm+vFiJeLqWAmML17fPB7fX3/Bo\r\nkldanF4h1NX43C5VDdWrXok1mSlzGyW+EsaOqHxFEIFaGVN2lMloQ1Lwytsx\r\n8r8kMg0//iVQoG67ghMZIzhbuIgcstkxBqJ2pFht1ZFGl3JCDZADFJfTRRtK\r\nlWUlA8WW1z7XZjiRjtQr/hiiz+z6D93A8mqokYcuqPHlp+CNCiOd5pQaiB+D\r\nYj1E6hazoEBPaib2xIMFVggLBduErGAESQS6aFrZiKwAYeWmg+6HKKZJ8Rak\r\n9ZORtDnNIHKqLELg2ofMujhYY0sfcfwQra0Uy+tEVYH3LbDwrSmgLxWvfT7w\r\na6AG+Fwl2PPlxZv80gTDLcrRqjjEq265U34xnd8D64URveZ/7RH+9qMlYaTX\r\n4EqNmSTkm+vPAiX+XQr5LptosymDa6CwEjtgxRZBkWU5kj+EQYF/1G5YQx67\r\nljdtxamsmvWs/VV2BX1igX85FmVwNc1fMuJpELp4BAKmjAY/FrPyc2wy+9wu\r\njPpHkMN5SccMH3zCL76+nArlXCWzhork4HASfJY44W+L+11C51eZGYByK4dW\r\nuDg7/10pTILStMz1CX6UPHW8b5HPHg+HsEYSiKu9YL027bqfxWSKyxUPOTV7\r\nmIFKqLlGH82EcQA4O9k2di/xXAIitHsEbkU=\r\n=WljW\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.18.0-beta.1_1675508666740_0.7070931953202129"},"_hasShrinkwrap":false},"2.18.0":{"name":"hasura-cli","version":"2.18.0","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"7e49ca7e95c122ce39cc06a7193ceb8d9dc93e32","_id":"hasura-cli@2.18.0","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-y2vR9b+cfeRTlVbVs0wDdHF5IMWe6RRJ5ymZ7Xkr8iVdn983spsS+ln+MWJ9PJcb8VNcNbHcVQ8ORRXQUWnf2A==","shasum":"f6e79a811dc49b91bc262c2e77bea02e37a622c8","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.18.0.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD4QWUMdtXixupstwbEfBjQ9uoBr5dMf0G3ySxAlyyOtwIgH6/or01klcXuUMdI5Pp0XmlAK68anU5zS/N8K6xtM8A="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCBmmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpLdRAAgNUhaTdI0BO8O/Izhnn4E2R6nnR0CGMYr7zQwIOJYKEkAAU/\r\nW2DDHIY1bxG8UqKyaGBLeKSlJlnjP39HNSovD3Lja93JToQL/VNSu/uypjc3\r\nI+UkjqBenRPKPmsaUnv1Sfx01B/bt+G2hu7tMGZcl/qQzbtfW1r0fr64UERg\r\ncgxeQNZU+ouXUW6P7neFild7YkeqxymFVS2xFhUxYszKpAzIuqErs0+BYVmG\r\n3Zqb6cQ9yrTCQVYd1CMXVROwAj7ezQkBbWrHmf+zH9W/83E9ZYU7dDmdQFhe\r\nN8K0jl9kvb98YT3tAcb5uAn2Qz8fKYxIzECro51wbpDE2BJdTB7PCkOM6fOV\r\nE+g2fwvstzkBIEFVXmcEDUMCnxz8MdcvH4YqF/kEx8HcCPdfP4i3jvrPMZeS\r\nue2vGzD3XKxjQCZW16gJfMzY0+1vryUSsW9pUAwFznYqnGYr1gHCf3luSJRE\r\n5lT4Ie1/iS+6Vt88xYe25J3kQvDzTsBA0bLG2UAouiR2inlW7paOyQ528nMU\r\nMzVUl4Ikbe8cPOLW5O6JTVdzl11heRlbKyTuSY15uiujyodBIbmmM1DSDB59\r\n34OhTCiTrjXSZvepClLoe0oGvjQvyj2GlFZfLJepYYmcpng2Prut8087qAAU\r\npXIZKk0udqsapGLp9jwPklWl8ziD6CyPphk=\r\n=0B80\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.18.0_1678252453953_0.522153963486238"},"_hasShrinkwrap":false},"2.19.0-beta.1":{"name":"hasura-cli","version":"2.19.0-beta.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@2.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"2453e4858e591ef2be655ad359c1c303d2a4b195","_id":"hasura-cli@2.19.0-beta.1","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-bBZc07j1oPeGkc/5augxB64TOHZjtWndgeDzHwa/UOFnKTLvFvyf4x6GlEwCQdgL/h2hbVNYkYwOyIomtb+jIA==","shasum":"b14e3c98a00840c8239a6156455d78a30d9d2bff","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.19.0-beta.1.tgz","fileCount":10,"unpackedSize":22183,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDr9S+js+9Y2LQo5IRVsYoqEw4M5i0j4mgrWc8igyT1JAiBCzxwjnTmylYY3CoTmBuAezd446O9jsh9eODtahBGItA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCBn5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmraGA/+MjEjLUdS66LTMVFD0o5fOfr8r0CVeMuucC0lSn1pcglJ3u15\r\ngXTICFns7iw8nCvwNDa1BR8GHFZJHZrMr/m4J3bcL2CGNQ+/RbyMe9EU2s/C\r\nW//lNcAwPThAxIH+9+WaY+2d4Fn1Kwk5g+IL4rUbe3yW7boFJof2kPfkGXhm\r\nYrZzE4XjHVdOV2XIfM9nB05idysWYQ9jYOFGKTxvTJ/PdbxmzA3PhYE+cnH1\r\nG1b61WjXePyo7dA0FhqgpvFQqVNQmXV6krMNpl4tMPR5GNmhoOFyEf/WMedC\r\ntLtjlxwdZYQxjIoUowgCBXtfm5eMpRZOb3PGvC0R6NXMABH1JMU5GyD2F6lK\r\neS30zIvuZ4QR4+X6KLuCF2AEgSyU0LrWK73nM0BE2EIMDw+y7v7DaSZAn4jG\r\n9lahM2yxfk377qcD99ex7MFmvuv1RykK4EaDDZIr6ft0c5OBVh8MgUl5GaAe\r\n8IEIb6jc3HlsQkYUgVoIW0bIczrsErpeFaJCTMosQf2RDGCO5BWotTawMYLw\r\n21fpHx5ZhqWkoohILSw04DJxrXkpepe9AwpWT6L4UCojFyGtZxr6xsCtZFLK\r\n2WA1mGGL+RniK+2xRhVEBoyUnvZF91h7KGn+u4X67kHH6QRqAbgmz4Lt4qf3\r\nA3a5I14IIbY5rs6AAP9TQ7whichMdDaU+w8=\r\n=Eliw\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.19.0-beta.1_1678252536896_0.5991724138176264"},"_hasShrinkwrap":false},"2.19.0":{"name":"hasura-cli","version":"2.19.0","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"7d946455d01f92d9f05b53509adf729725427e8a","_id":"hasura-cli@2.19.0","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-TYLkaanfyiur1P8D0i0QBOeM0Zu3BC3vb9qV3G48j/LDrrjNV/hWaW0JQ+46SVyGkaReN5uJ3apHN6Lhh1bohQ==","shasum":"1368e5de31cddb8940a94cb2571f484878c00227","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.19.0.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID8qYKYcrAHdsRjoRZ5f/I/eamzftwmT4AM7qN2iGZJYAiEAxQoXOq4s/2GvJRQ+chihDkqOyI8Q1PgXO3Cxn8K5xTI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCBpuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrgARAAhYPnM4CN5WTyemFJKTShspxqwDwuUhNm/HiqiYmX4lTi5YSk\r\ncNJlThTGKAaeePIfdRtHBdkOTvJF7FUg7VxjBpLo46sD4n+liIfBTEC+1V4o\r\nT4J5JW5kbgeNQY7KMGg4HtfKRAtx4JEHHfz/IK95/+X4EUr5gs95idIgNOJB\r\nhMwEdDJxps/NnTU6hwolD1OST55cv++Ol0kDHOwahMKEK8nZs7vVcF8Dqxbi\r\nQCj/mPMYU0/M887o1d0Ygetmfcay796gH//aOxAUc9Y2y1YyDoCLFLrip/vT\r\nB0bssHpHh/If/MQsGL8Cdum7uHBBuoQZ+4r7mntAwbO40dBeAlHNFm9tgJll\r\nYKe8DRnVmlMOM6Lg2yo+jVv276YKD5JFdQxPrrssPo9n6CB8cMNFErETxUEw\r\neB4419rgAo3PESarL6Nx5z6/vMjQvrHcop5OlPkedwVFpdLmALPByfabi4r+\r\neWeba/TX9/XvcHnr5k8GAFPP7t7+jU4uRCCb13n8NesrJ0QdTMSEjKXkP4jz\r\nNxPa/BkpuNELImR1AyAcx/MwXj9azuLGMSsifCoJu5A1YT1ADzwsYd35+EWt\r\nd8m5tZ78BH4WPi11VQ7Z6ttXIt1zdaee04aGtD/MA3CF/yqj+Jo7EkLe2cqO\r\n+kVkalUpuMigHbGSk+3RLB9mLzkNJ3VhXi0=\r\n=lw0j\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.19.0_1678252653896_0.36398390077233156"},"_hasShrinkwrap":false},"2.20.0-beta.1":{"name":"hasura-cli","version":"2.20.0-beta.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@2.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"aee7d04c3929b6dc2664def73c4cdc6dc52d09d7","_id":"hasura-cli@2.20.0-beta.1","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-UfLesPuoLZ0AnzhD2aeyG3bk5zMFWtJU6epu1kJ5aG12zJXelpVumQ1Br8PoF3VAv4fdS3jZlEj/RKAEodjPNA==","shasum":"db73e96fb60b2bc4ecd0dfa738015609c756183d","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.20.0-beta.1.tgz","fileCount":10,"unpackedSize":22183,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHC6eD5K3DDY4OlxYkZR0U+P6NBDhiUAg+SuCeFmjx0bAiEAijOoEiC+dLDjjN+Sfpb1PetHnyu8d4C+NlCONN6y490="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCBqmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo7IA/+K/NHRPpM/wrgJZTBmTsk/Dvkd6dsDyHYRL1o4EgwXEOMVwBB\r\ntq4OXxNiywC3IsBO8AAphVBeF6H74YqKGKDOXxixZWKHiautd/j1AjggrSvO\r\npFkSUyGIIe9f79qO7v+YZt8bo2Zw1p9p9j9DOBbfyInhZ87AKjzjR6txFfps\r\nPDRvmwELYnpRgQhxUv40J2RMV9fC6fVoaWPmA7ITYfJBDOLUNYrSZEMAeVup\r\nabJEG9iy1raVs9NMVNXVHgVA/gNBhK0vx5t1o4XBx9g8Q435/o5DFhPKPdI9\r\nekqO/pPlEoDdKH6ClXbvsO5BFfdSVQen0Fo4gudPUcFn5xgGmLHiaAzqR3ED\r\nUgoXmujGpPOkGh1gOn9qtPqpuB5YCTr2Uf3paqRGJC19OK9qU8zo7KPmJFbt\r\nE+svwIPh73nNezX/t3rqSxb1lO2wZWYHSnHQUGwbFdAfta/bhJ5uWJnuwcjX\r\nu1cVPUBFQJ0CtoLV/f1Q6UE4GCXwC4q/QYeZQmKknzCWU6wOrLRr2dOHC9I/\r\ngaYCQQaevip/qE/F4K0ykyFwm/uhehmn6nXi22+JJQuFUO3Q3sLXeYNeroAB\r\nW1Bnm6BW4iAUDhYx4G+wiRkIivDbzL4aoGMlu51dXNBEFMMDMFu+KlDQHA1U\r\nr8xMFxPPK6JDYbUSkb0KUBsLZaGDMMYCGvg=\r\n=4XZK\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.20.0-beta.1_1678252710129_0.7725064246819238"},"_hasShrinkwrap":false},"2.20.0":{"name":"hasura-cli","version":"2.20.0","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"27d55c46806901ca98911ca8df9c9fa03ad32424","_id":"hasura-cli@2.20.0","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-2p/WmpX/DZo266LflmFFDrVvkDLhKayLgQJN3od1EH9ZZUe/5R3CoaLvZm029LspSVKpTsN3Xj0JaEqV7CJRjg==","shasum":"bb17007b41ac930ea391162ee9cf8de3fae46a4c","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.20.0.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGbZyFO8rRTZg6cIemINEwDCaSA7e2+POA0SqRvcdis2AiEArcXsEFShZkhq+El6WVGhQTSc1a4M9NGqT+xX4XzaYNw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCBtQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpuRRAAjEWSrfqayJUAmSHMv8cm8o15gQxNmXWmPgsdv1t8CAaG96Wo\r\npKnAr6lt2tMbv0X6DSBiWkNqYtg+FcJ+1Q4cGFbQuhcDLBnF7axPnoNJQPhs\r\ny8Hw1Q+AY/vSvcP8SfMxnCca3+7LRoCyGdSULOfeg2n1diNTI1d7/dlQwuFe\r\nLy0RCo1I99oH0d3S+aM6pCK+VNicMLFkdFlBfJdorRS1r2kX1TN0+JZIJJcI\r\nB3ofwGVw+zxdjZwcPlFd0fX3XtqN9MOHzkUFiCLXJQAqOdGowPRQ7OJhUfRm\r\nK6EEsYYYGf/8zglSK5FfgO9RtPEGE0Bzxyjs/hIErydXcXTH32QZ30dXFU6e\r\nv4Z5e1yzx40cf58zt3/2zuviz3WYHdnA/ocqx7r/fmIiBwNmeyMUdx/DBZ5K\r\nH9XUAaKG3dvK/0/yLa+2LsTXIycnkfwSO9nl+mNTQ9thu1u7eUQfyUHPM1o6\r\neA0Y3ZEun+Y38EdUdthVuqU0EslbmcTPyBr35QCoqyjhsJnlP2H9Q9RN90qr\r\nv0vdQGdzrost4sBc7mXCTF4ZdZBWNVRg9NfaBaaUKu+8/fUQdvIiB9kpe9ok\r\nQpF9xvNfUOqkU0hzMy4Ej425rYcjHRP4ZAxHG/Sfn0KkN1aA4NL5rlQGyNeb\r\nCy1kdikYTRDSLOYBT/EXnLDdONaDCTcduQE=\r\n=v0d8\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.20.0_1678252880537_0.5741755869583611"},"_hasShrinkwrap":false},"2.11.5":{"name":"hasura-cli","version":"2.11.5","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"e5234f6c4baa77d361bfb162f830bb1d28da1eaf","_id":"hasura-cli@2.11.5","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-A7N58pWET6MHHa9+ZNXje6BHL3q+EGcQsJ39efeAQv6Nf7hrGc0PCXIHkGf4a/tPMhT0MC/kAJYVHdHC+SOOFQ==","shasum":"9ac7933d8049ba9029f45453864f5d11d861c1ce","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.11.5.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCS2WnAuIAmohQ2qKVoqglIh99J9sEtbYmr9+lnLnII4AIhAJA28H9KjuU4lmPQzodxG23/Hbz7uWDRmtcabI60CQht"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkEZgvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp6uxAAm/8eKjp2R1Jl2AwWuZMqjtrdA017M/RZwfk9IQjrUqyb8qlL\r\n1hud9awoqvk+ziowhaoFgmbWJE7kqnX/0khqeFBEXNAcUL6uLJuk/oxFQv6w\r\ncErG+gxxIf4vc3dLlJXxeZ5mQdZoX1uEhyNXsQGHDlVleQhA/FbWaeAKF/2+\r\nKcXR86clk/1OhQ6QhGegULTrX61/WsiAD6j+tx7H/ipOcxXSpjg7iRV6Ner1\r\nJF8Jdl8VeBvcL7gxQP7vt8nmlmu8HX5EbSFxG6iO/GujVJSJ6GM0Nsd5a3Ii\r\nCYAvpSw0acGvOTHCBoIkAzwG3p1N+mUbYCKwRvlCOscyfMHHHwecbYntS9sb\r\nH87U8jNqkZCYEkFfnwLOHi4KL4/jlRjJoezNgF+eq46DNGUvmkURuBwoBXmJ\r\nPOQmTn3TruQcRWcYL3HVWOgiORWFs20lsVuTwsONsife1Kv8YhTw84DTe0VW\r\nS2yiGe27ZDysCPsxXd5Ew1CIHKibKlLrmEAhAtEFAWwTXHI9AW7GaQrMQjpd\r\n6H6JH3fhSVg45wBRFR04We4mXJINyJ3Y73dyHjtdeKV8cTknuLIZGpUVhNyL\r\nuY9145gn/cMQDP+FIBQ62NmvXJyk3wIwOwTuSHgnh1t1mBW7sXKwB9k/x5Ap\r\nj6pRRAc7B3IhEaMFYJ9mLmNxwTf9XMgZMSM=\r\n=UrUz\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.11.5_1678874671204_0.0710746412792369"},"_hasShrinkwrap":false},"2.20.1":{"name":"hasura-cli","version":"2.20.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"d5ec7e5e4d9a1a85cb25b2d136d3f4b4607cc67a","_id":"hasura-cli@2.20.1","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-lBwHs9r4N9NLozT057/TYFGZUmDRbkJKBkkSEbq0l0FAH65bts+WDzRC00opgEahp/txwRWdMStTlmcpmJX/PA==","shasum":"9b8a6dd00cac792a05c89a1dc93d97e42b68a7c2","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.20.1.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEO7xpIiqJ4mwpy0VYxeFNYyoaerJJ40fKJKV6iELJjAAiEAo5+zslfzn6VtsrY2lSGShk42MtZhtc91sUSY41bRENk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkEZhuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqCSw//bvUnP9so4irKEQkgbkOBMG+xsRUlR+AcvjQ68ZVAlgSMd/wj\r\n3cv7m3WNOF6eEgCHRZ+mujKoEQzn7QOxJk4SZ8jNV2I8cGRsF8aye/L3KRAE\r\n8V5gJdR3hK2Pbj415Y/5Mrwdb0eLwInOMkYzvsJSa+qzIeEF3OvNQTVAQeHt\r\naOykyZCGetz+61q7rxcs2YKui7qK0aGN29+UdiYM2ALLWUX1TRR2frfLH/pP\r\n9bve3OkbugrzHsRc4DvRTYlQ3h7SeFA2r8S28qc9jKef2qqpds+oD4+7JLGK\r\nNiEi7yyQvLVQjrt2K3muv8GMK59KiPEFvZ7IZdz27MaygpPBElS4qE1OcqK2\r\n72ok3ON2SwYcGOY64bA5vIZbiYRky38r14bsBjgaunRIO6qY101vHO7ilbIq\r\n+MX6xVy5muFpTPfzrUBVMzj+MoLLRkFUnFct4SQlwV4le9zgzduh8p6Lrljq\r\nFTmv+PTjCisE0EiCEyRqAbf0B6bJ/PLAW4P6AdoOVPSEyFqXVff992nlRME9\r\n7zaRZSKTISvM32EmbntNpFatS7KJzC4kF2Zb8O2tK/1rHnpAkjGhRuUIxGfI\r\nQZX2765xaK14X7d448kPfjNR+abxX16cbWDZZOmYtk+hoFtFx24VXjZrZtIO\r\n2LfjEiNBlf2lLJcGZ2yQ8OTuRDOwLAZL3Zg=\r\n=Vp51\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.20.1_1678874734068_0.9904240250672547"},"_hasShrinkwrap":false},"2.21.0-beta.1":{"name":"hasura-cli","version":"2.21.0-beta.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@2.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"b420d50524cbf30dec3099e354cbf2218e73ad9c","_id":"hasura-cli@2.21.0-beta.1","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-inMKzkRB0bxwP7avwD8vodFMMsBrNIDDqg0kwA2qGdQ7Q6LyjLIcTZhVJJbZ4N6lj27T2zkJVjfLp1qSquCl9A==","shasum":"dad18192263cabdc98bb4e780e9d6f296fccbed5","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.21.0-beta.1.tgz","fileCount":10,"unpackedSize":22183,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAIYdMEUIvNXnGJ/bDCwC2OEGn/5qSDnymenSca34ISwAiEAmJIYwNhqiErDpmHW5yCRTWKsGfeg04bq2PW7guJ+hdc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkEZixACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoPNRAAj3JMJUNyhuxuYsnQJy8QvlMC18qX8vXV4TUqB9AxxbsusMN4\r\ng71RCRVxnLOUSyQELxtqEGKlPwoTontjKPYk3yF7qgu+thP+QikM8XX1Qp1N\r\nrCthmjAbNa+H+Vf4EyOujDSTe1Vax6Tij4JMeRMctTBMEKoURF90hAWGhiyF\r\nqlTlpPqK9Jmj8N2c8GFB94cxVSrgggaXZdl1a68oPEbSZ2xjBwZv/4E3/2+d\r\nkUwyALC/2AwM8/8a8nMnzluFCBrrF7hx0abjL/RlFCTWIzu9OUY4Hxty9Nh0\r\nRmUKK2z6d8kYGnXh+dmUhz8jgGH5IQJa38w1rdxICvl7knu5On4n/4tHNwKx\r\nHA0jHlow4ARK06y9jxpAGfgStMjudjHdHV3K8aJJXipQEyb2ep9VRSvkAXzx\r\ntRX0kSDtjk5VbBGLGNBzxBotwK6eh+VYJGsWPnh/Rp6SVcDYhBpFmFn55Xaz\r\njCRW+rxRLjS4e+lZsFGR7O7M7b/nxm2H0NvFQl9seNWuXlTyrPf89L89inTF\r\n0aOr9JuCiussN5H97nrGTuUjLaPhR/U3xqbiopmhn/rbdqmpRXvE0VCucdj1\r\ntRxkDtmLtPal1GLAsJ8rxoV8j9M8cxl5nz6kmRoq9bpS2aMp9evJn8MUFQqT\r\nAQMCQvo8dFhhw2K51KXf/D60cSaE5HJKkhw=\r\n=+BGT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.21.0-beta.1_1678874801221_0.3458018636591995"},"_hasShrinkwrap":false},"2.21.0":{"name":"hasura-cli","version":"2.21.0","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"fa13662221a2c337cc2b142142edc0b2d74cb153","_id":"hasura-cli@2.21.0","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-QSh7ZH0cZwdVdxkG3mcYE4/IrbojXOnAAnlVGGNhpF/rDq8N56CqV6PTLSvuomf7hJc4RNI4TWonghjlJYPPug==","shasum":"35f3d9f081766dc8bcb999cd9d4c480d495ebeb2","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.21.0.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDxinbfJiNKPT4RdtiSmRWUQE5xFq68yM31ROib7QxdMQIhAJJUH9B0GkxjJViRGxPsoVcVKo/B3ALN4xsnU0++cNnL"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkI7tyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpUDRAAi99guRZL1thbnX8Yey4Wg0gJI7/pOYdzN73Pf/wRO+stdyaz\r\ncLrH17V1kIF7IE+OA1r1UAyIDxgRKWkAhYK4U8LbUbLg7+1C4gDp1gA+7/LL\r\nveNZrINfTPQw5ow2rU+fbzm9eRAK5YiatLvdkU6isUX331n3cSits2e3LZHy\r\nQ9QofI78hhal2kKdDfo1yGhchVjm3fZx2OpzYJTc83ZFwseyNYTkQvecR7Sn\r\nbosXw+mrX8bTNNcu9v66Y7Wbi7Sixr60Pvsr4dtcJwYkCXqSvdjtcPL5GPWz\r\nXEhVFyMqou0LWLcv4iwp0MlYgaT014oWjJVSNuXPEQ0HBWGEpOuKlyMQfo2o\r\nZqheR/fsPD0CTPNj9AAknxThynxFK8Z0LGnDL0hAyKyCNJQ7U+tNcGcp2a5O\r\nQMPKHuKFUY7P8KkVVcSepu58fr0/yrhEh4ehrR9jyb0nG7fi+yfE6I3c1gE5\r\n9COATja3iBu9SLolj/MrlIqZv5iNFs5RJk2S+Z8DrPSJNsdBZT14zjjU/u3k\r\n5KfudzHdxr59j7LwBFNXZPdP8dxTNHRRugY/q/Q451OS+LfupAb9a5ZvIOSq\r\nEJmxG3NFF2Y71+l4YO3GhvgLbfsBpx5hNrE8ox3Kdam14cHMOewt+iOxBCvq\r\nvNRF+iZlM5ndNFNF3WY5CnwPiC8pGHhKzxM=\r\n=thNe\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.21.0_1680063346315_0.7399999774514694"},"_hasShrinkwrap":false},"2.22.0-beta.1":{"name":"hasura-cli","version":"2.22.0-beta.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@2.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"b89e1127d0eaedcba292dd03cef21a3e65e2898a","_id":"hasura-cli@2.22.0-beta.1","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-sgyg3YtAzO5ZZehs6JtK/StskubLS+LmpYsBwrasOiJ2OrhtColMFUPLLVREKWqBZWE9MfDp/wNTKH9V4yFJzg==","shasum":"60feedd9617c4f6c35ff04ab6893a503467c1f7c","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.22.0-beta.1.tgz","fileCount":10,"unpackedSize":22183,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAKjxMvTelIBRuwrFAciKblHmkRCh1h/ovmQZ5rY9ieaAiBdj8iWx0juXH1hAIJh7+xBnps2xNRUfmy4uL7JAdAHdg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkI7uJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrl4Q//VelrxU6A0Gu5zIArUIdlqXs4OFES+Y7bhqoaBm0psrCJ2uI0\r\nmG7f4bqXjOCoEQTiodroeUZh1ZDdAHCwJ84p/o4vtBvu5jCXgjKsXt+y7Tv/\r\n3bhEIQB0UvmxJPwDM++wmXuAPJrgkA1VDlf/qL6Go//2jbi/eUYS0fPs5y6T\r\npNaefvqLoeqZh2QOCWrRZMrFpGB62pvDR/9BmC7omy6RgDct7F8VREriT9hP\r\nM7i0v2x/eG+UTjS5wsVIBzHw+5NxMN7VucKBVbjzIXRm+kbpMeHK4RzBIbNM\r\ni8mU0lbFDojOjVhetNek2hkMOa/NyE+xRhl+QOc0JlHGBN87sT8sZ/WdDhz2\r\nAqDESbtrmUWQKb7r7aJxxGjw5N/xMPI/4CLmsSkMbs7OeY8zh5XafwIsbxQL\r\nL9xil3x15indYLGPoei1AAEOWNKwxK5MI9NGCk3DwUaZQBHqi5U4lHjUAj3P\r\nHwcJbktcVwRWZbvyWdE+Qd2bm4y9gcbJn5X0J5+XmV1ISSYh+4d/xNgV3MWp\r\nmoztZR4cMtlYOy2exmW4IWwunzc5LSabSE929jzzVOdYna0iuKZsT0yJWYh2\r\nJcaWh1jj3UOxsxUGVkVMIq3lg3clPwFn7gtX/YcKbcP8XtL+g0M/kOSjkQy0\r\nZ/ce0H99MQraGb0iRAmcOD6+zGrxceFee/g=\r\n=55Rp\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.22.0-beta.1_1680063368843_0.23683782618625626"},"_hasShrinkwrap":false},"2.22.0-beta.2":{"name":"hasura-cli","version":"2.22.0-beta.2","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@2.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"28bf295fe58193dfd8e382cf87a5dd8c31a4a57b","_id":"hasura-cli@2.22.0-beta.2","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-aBamcOF9pyaKGbiMvjimeGLZSPk/YSJlEH1jGy6eQQDhcsQ8wyxwd+Vr7kxxJzbTPSbrHl6a16RpkCn2vPXf9Q==","shasum":"a4d5d002a2e3a3331da443b60a19211a476b771f","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.22.0-beta.2.tgz","fileCount":10,"unpackedSize":22183,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDtxMb8gwKvzjTgnjviyzH/FuI848kE2g0Gs9CL1E3o7wIhAJlWix92HZAvhl3otnJC17V1jT55WO5cYPPHwfiV2je8"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkI7ucACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrraw/7BcDlMrD1llax26iPd5WrTJPxKu5xU2BuoawrTW/nTF7wdASl\r\ngTkyK+otVEaZqJNpIe2Jl1lu70dzv5bOQUpabnzjSewfX1DKAESVRvFtH1IW\r\neXiKVqVeqSgIqph804zrTZl3bbgc+TFzP1M2LtGYs7N9VV/Gqssw+ZRAsFyW\r\nQ7CstjTMWSbKk1x7qzVdcxMVRbctZSjPh3p2ozDPvVxpFhBvXUxcyqdfFc1j\r\nWz+sDSn8urFgedwFPN3H/k2ymtfj/A1hM6UvTmBBUhXrfB0BsDNf+otBZWOJ\r\nfZ5GMK4cQ+OSg0ybJXemKcWZxK3Pp08fPBHmce20PswCxUMfKYeF2wCC8QjN\r\nAg7MJgVTZtw0CktvAIh4jN2A090jiy9YGs/aZHlkfsoW+cyQ62HJsqajWizK\r\nRIC8L9CvpKnL7+D1EST0/xhGiCHNSTCy8/p8AM37BtvwDNxItgbODt1GWmz3\r\n9Db8YjqWp7zZxmozS0pCORqyabnS2ra27JPg2HcYuvyjVz7PkcdSBJttFf4F\r\n3GMW00tyYWxmU0P6C84/tA8WkahoQ8Xt3H21EauhIgIADtVooON06+xvdrv/\r\ntsORhpGCzSUUUxcHjvS8MVwiqSvhas27EyxQPbBKI1GC/q9ReQBQ8W/nT0H7\r\ncdAaHYhxwcvvSbCkFMj7Nt5nSxwmS90Es5Y=\r\n=7rTz\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.22.0-beta.2_1680063388189_0.17822622182726855"},"_hasShrinkwrap":false},"2.22.0":{"name":"hasura-cli","version":"2.22.0","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"4f1a9fda00eb07bc61d5d1cff2bad8adb3790c58","_id":"hasura-cli@2.22.0","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-hz0Is7TQ+x1wbGlaRinoq5rbcU1aIMtm0gSiNvmRrLohZlRBY0eBMk0HlgRJ+YVLtVfbJWrKAdDKydYjqCUI3g==","shasum":"e81917a2959be979692b720a0d61a221cf6272f8","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.22.0.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFjH9PTpJY2y2tE6ZegBqQc1uU07BXggzH81+4It4nyLAiBBkcH+2Rd1wr02J56/kOEBQReyBHRrRpjM/gWoe99SHA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkKk8wACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo0dg//b+Db8WxV1BbnoJarrydUH/IMGsCaPO285iccqt1vOZS5psog\r\naCs2HXXbPtnQ6sM1gElzpR7UHIu8YRyrev9qTlu9fHJplv4eOwpklotImm6v\r\nwMw/6giqAR/TXGfXG2+lty9SAnTuZGMm1HhC7c/ip8SgLyw8AwhkxmwlM0hH\r\n4Pm+EZxtMCXBUr/ERjv4iUQedFrX5cICTjE9pK8r1UlWW+X/dlTUhpswWerx\r\nEXgbXiWVvm0nn4aaUtdff4sqeHX5/265+e6hsWmNjUZIwQvki6OhkP83dRet\r\nxvzU0BYB0LAQrFuVwiUfF0B5afObPkqXr3js96twMXyJChVCMCW5H9N/7f/q\r\n19VsT0wyyeVDpQ+8Z5xoI6OS+NHMwQVqK0GFouhX4L1cUMndMt6WZuUJF1UV\r\ncpsr5/XlGo1rcmROYV+tZKowF6yugNkzqEWHvWcSXaB/Fp8MuIqx9mzigOaf\r\n6dhp4LiPR1ebtypx62gei3pO5OCG3x1RF4qzbq+NV2tHpmbuqFDM0ugMdqy8\r\nIErnl80wYS7K01rVWrUw/sweYFq/cpHEKx5Mvi4AYqPXt9AjtN4Zh8kgEIJn\r\n2nhDTytjlngXfCbQMbXPZfqGEZb60+Rdnxz7Q72Fp8InukGWrjB03K4Ybwqr\r\nscWG8uj3x5AOTtrN7MV662YVNZBptqjy2so=\r\n=2+QP\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.22.0_1680494384152_0.6015309900887735"},"_hasShrinkwrap":false},"2.23.0-beta.1":{"name":"hasura-cli","version":"2.23.0-beta.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@2.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"f541907aa05341824a9b9183fe324972f86f6fff","_id":"hasura-cli@2.23.0-beta.1","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-ZPezRQZw8ccLxZQBNH3LYSSIeYonZniPVR2Cspj4YjXRdF82HKP9zuXeHYYEsEBHDDvA1FeMYk5U/MT7uvZs4w==","shasum":"3a629b538bfd40cd5f53f952c635641badcac310","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.23.0-beta.1.tgz","fileCount":10,"unpackedSize":22183,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCcLb2m6I/foF5a87S0hhbvFqUyOO/U8qJXm3fULynskwIgNoMAHpd6VGJ0nTJlGQdFiFCaJ+3SHGqL23wA92WTBD8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkR3/VACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrDMQ/+MpIAWg0sqQCsYGX9NxYCD5rL5ENMZPpk8+E2nNAXUCndYkkA\r\nMtuvb/EfRlS8wTPa49ACxGaYpmeZufG5+9IyickFTWN59WeSsfe2Sh38QMsd\r\nOq3qsgGLLomh4APlM6v0+i5lB2GWat094RQ7eG2Y1Sef0hkyiiAhhfP8/FpC\r\neNpJGrJXoEaaDtF5XmApXdu5jlBayzPGCCN+lGYBwc059YHIntqrADyYLi9f\r\nbBfMTqcWHOrY0oFNkIY8XCYy1DQeyEVztZ77lAdnvtpDNkRu3yP0fkibpR8U\r\nlTzP85SuoolpjUdJ3+CIIDtdpIMmo+OuYZL2oxZKbClgsbHN8A7q7DsLr1lB\r\nu63V6eJ5C3mBb6bwDHziLKOiusfiPIiFt4CcSYCuv40d90KEPo1XzVWv98f8\r\nsAtLL9ljxeqEx1kDVvjyPW1hzg56afWffAQBNcvIABML+4qd1Ai6872mrWLK\r\nqhDDoJ8QdFk5t/NDS+lIhsz+4/fMJKQ/SiMJhpGEIAOc34tRlHB7Pql1oUeI\r\n49iS0BJCx73N68vXrgB58LpNVynnUGs293d4MQ6rEWfAqyGmHUgaHP4NgiyR\r\ng0W9x8/shx6rf+f9uU/GKGtV3qZZpmmVjmu9d9ijYYtog3yv9AXb3mLdLFVe\r\nB0psOX+8O7S09yfkjyY3zX+RCpbAyYcrSYc=\r\n=wg0T\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.23.0-beta.1_1682407380978_0.45892112359813675"},"_hasShrinkwrap":false},"2.22.1":{"name":"hasura-cli","version":"2.22.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"40b3077e4571502910c387998317c0c0cdedf6ac","_id":"hasura-cli@2.22.1","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-+zRdFq9BtSye7p+IqIyWdlYNq13V2Ktcx9Sja+wBqF3rAtatZGQURnFuKHstOibj5khvGchKeifHwKLRMzzU4g==","shasum":"87344c32e82cbe0fac0d1de809734be00fa4f497","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.22.1.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGw2X6c4rTK1M+h5Lh7h+i4f7nSnezSfpGdZ87BJ4jPyAiAVw0UVBpp4oRetyzevhX6LB5A6i6eq0LhKjj2Nnv8V9w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkR4AFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo/dg/6Asiei5+SGmrhUvm9MONp6IBGOxk3MT6+bwdzVukUU48JHItg\r\nqy2Gx83HL+I1/WgDWlFlJwy2RRlX/TrIIkS4Cxc5vzT+tg9z/e/GCwjPMPfZ\r\nwUz7QpCjuLyC5+cpZ2jZs6fuHmFKwEifd+NS13VA6TlPuHLfxEodrz7YukVz\r\nDu1GY8Dy5gTsdu/D3LkXNLxJJW8ppRolY1+UKaEF496t3rx5D1sHMn2gV6kf\r\nkM8vz5kRpbSwKMQX5AAKctwRLln3LL4lBZd2hr+pCcAIjHB5gz9URTOW8QFU\r\nZQc8Cecd5xAnjxuFhjJagxvUjoKrmOKTSQoi/wMfmHmzp5uD0G4YreRF5zH1\r\nNzI5nxJEho5U1J52uMFp6gnucCnk014f7eLpWNyo/MOiNbjUS4F0AEAu4WRj\r\n1B87meQBVT24bQxyORSwXCwQOWsoMuEkrapk2DNdykqpu84ovAOA1MZhXppO\r\nl02UDJebLv8Y40noNYFqrAMuX0YcAsXbyUo6dbynRXaq8+AwVUENoOH4QDeD\r\nbveUSxEcUn7tP9ZDYrucUZ3lO0KbYcQW27g0gOlLhRdd3dhIlCU7JiV5oC9J\r\nmSAI6PBEVP3OIBlr4tMydLkCrrZ+Np6Te/KSRiQYz2G7Sg1h0f48ZKVYdxLe\r\nzti0VImo0ZVPbMVf+gI73oN/ykrxYc5pW/g=\r\n=9+12\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.22.1_1682407428821_0.30288721015469044"},"_hasShrinkwrap":false},"2.23.0":{"name":"hasura-cli","version":"2.23.0","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"8b8d63ccd34d29c18ae26fb4012f9cb908a59ddd","_id":"hasura-cli@2.23.0","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-8yRJtHfKtBIp5o+gXhY/n5FgbHDwRIk+BUZAlaTq00L+3//b3xx3m/syzY1TTkBodkgLad9vUDAzjudzMV5BhQ==","shasum":"55c6fbe1a8b0d26b53cd0253b9253ca1cd416822","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.23.0.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDUa6IVyXmgEJDZYpFbztaWJHfGb5sOdHooFgbL7f7BpAIgJSkcT/5cBcJL8INWkPavRRF7qt77q81m+/Fa8smAazg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkR4CsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqa5g//bZkx/NCbwuCcFihRZYsWhzCC/MG2BpdpbQD8avbYH69v4Fer\r\nMLZDhddgLKODIipW+v9mvDznRH46KKyT5ot9B2tX5u21ehdeL11PwX22fLAd\r\nbNKdgE9XLSJMvNmlKQcvfFIyCI70sHiOr93jr08GbloJuGolvOWe2TE+7aDD\r\nT3MaDmKtDgj2QNaiYHqp4YKuq7j4rW+dE2gBVhSKZvkflNRVxfkvg5xqTJiv\r\njJk5n5N5BdSyGg97xC0tiYw6KuleGo+WfhYHFxMhRnfbUR1xUT+7sxoZ3Dw1\r\nVxnlKM+lVcSSQ9b/S3ZWmJbNvoZH/EOCTbI+N1h6dWgrtbLfx23GdhDwQG+F\r\nL0uWF30j5uoRJ4LGZe49Bh7pOdGtP7rmpgOSZDxswGBZEjEH7LIFkLCVzvL/\r\naRCnbu6/stUIRsYkcyHsBnBzZLlgmBJI8KvC1fm174DXQQpx/GKHuej38rxA\r\netGhAhGzU613bPZGqrlH2JpL/oLJuSTzEFoYpIL3gv7at4kj91zTsBQpxt39\r\nKdPlkFwx9o76B2faRyYmQo/EUlSFKyMSNMLtJvVuKpRqOxwGgzKjxC9VNAlW\r\nYhzveYniw/Qzt23FOuW0ZQ7VRG0zSvyt4YGhRmmgIrq+K+m67l5ov4ElfnUm\r\nhoXQTzuPfMTZiTlSPIxPx1LmvVDAViFm4fI=\r\n=ChCS\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.23.0_1682407596214_0.12032784271166652"},"_hasShrinkwrap":false},"2.24.0-beta.1":{"name":"hasura-cli","version":"2.24.0-beta.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@2.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"68cfa8c5f6aca14ffa385ea5da11f8163a1e09c9","_id":"hasura-cli@2.24.0-beta.1","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-pA9bOB39T4xlVxYEe8MM7bfqlpH5+iV7djKEdc4PiP+i5IdRATF5ldTDRnofhUitz318LW+ShSMGJ17P0/AT1A==","shasum":"9d08336d2375b4c53878d8083424e95a5564eb78","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.24.0-beta.1.tgz","fileCount":10,"unpackedSize":22183,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDcnacYRoNjbW907G7qWbRpsyL3VEyTJ6VofnnakRdC1QIhAJyg9GABhE2GGeFl9WofqieLkxCodDH7x/9Pg5iBTx8g"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkR4ExACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrT8w/9HclAUMlWfe3VkoRu8Ip9AzFOxZETS62eRYy0noWASZN/bqta\r\nyuTnBgxUXh5iiyVqnKTmQOg/50RKa+6cy37/KHzhLu1lQHtMXS1ht5sS+7ni\r\njIF4jIhv6wOmLKYtySw9qO8e3tavKSfueRDW4dpSxsbEzMxyo5jGbTsWAI9H\r\nu4aHrs13Bz3R/ggxPN4jrjWBKbXCY2Wxs/ETeURMSnC2hT790SU4uwbPT4p1\r\n6ZyLQ+Ff64zsWaVJt0BPEnBn4tDJSEpwZgY5UFDu2WpWhaU6WgsYBpFHhNgT\r\nLYk9/r6TzPnDrSNEvniAfl3z44J2jsijmgvDUlNJ+PWtuYOTSmbHhDkP/HAB\r\n+8qJ6dLOuZs4tZmqhsgsu1FXbU9rB2NHySusCnhpDeZtsBVPxHVPRjegeZYP\r\nl/IladT6n3F8911rNZxt1GkZiSGIvJ5VMtlSehTjP3l3UUQ4QiVzTNGpTw8D\r\nHFzalXUbapeX81bybxK0tvSbyTV9KQNZqiaVEkcSsiz1C0oZY8TDbpZ2mgrq\r\nVPjvhyYSafDG3279Lm4MAnTm8O4LONsJb1ilI9pj3NXwUKhvQbh/NbriTcMR\r\ntqupsLsEv4SPZRHUY4OD9gJLPzA1gikqSLZAj4b4MWgqdmiqgy+cD/76GrkX\r\nKbT9RH9a2TltxjC/ybncDEVusy4unImnP1k=\r\n=SZn4\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.24.0-beta.1_1682407729347_0.113219844382757"},"_hasShrinkwrap":false},"2.24.0":{"name":"hasura-cli","version":"2.24.0","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"61c172b7608554cc55bf975e9bc7c16f79ae5af5","_id":"hasura-cli@2.24.0","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-dRoff6E90L8EaAkTZ5l/AiwzEGriTMZUFHFjwbGAfggTcJLQNj3eCM2VeMzsA765rjDq6vVWGzybA5XDzx6+Wg==","shasum":"7a30cbf0e418354f444c3023fd6cb669506482b7","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.24.0.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDpGHzUGWzaHIMhO+NLKAo5B0+QE7E4wLLHIr9dw/jP2AiAv5ZK00UQeOt0gkdHKH4jWHKEfKy2evdEQDlS7HKMWvw=="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.24.0_1683337901881_0.4641879686014949"},"_hasShrinkwrap":false},"2.24.1":{"name":"hasura-cli","version":"2.24.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"ad1337602c245b4e2f01c4efca26d145dbecf2d3","_id":"hasura-cli@2.24.1","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-qLfjLisf/pe/1/ZVfjcAzndUg5ZKRgXU7eVRiXRVE74YxJFej43ebRsLtBuzJSpAE0Hg7TYw9DaCAjPaBahgQA==","shasum":"832fe34246a5fe85bde510888c8babc304f7d608","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.24.1.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHRvXhlE0JcxVUhkcu6l3Go0UMdAyf6zjv98Zjcg12mcAiEAhzSxW0WMkpJDx2X+yFVF16xKrx1PiIqPGekdxq+y5tE="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.24.1_1683337955794_0.43275546539990106"},"_hasShrinkwrap":false},"2.25.0-beta.1":{"name":"hasura-cli","version":"2.25.0-beta.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@2.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"246627465f5b24d98bee5dfe545d8753db2e2c02","_id":"hasura-cli@2.25.0-beta.1","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-u73KN/yjL6k5ciRaUNTc+NaPICicwR1HWLvgoCtGCRQEJadv6P3HGPVG4bHozieA5bnjYzc194NxPScmNGsOSA==","shasum":"5ac854046f41c09ff5083769f53b62ee0a7c4e5b","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.25.0-beta.1.tgz","fileCount":10,"unpackedSize":22183,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHbIOpGAWAEBmOl+/i0Xf+/2dus05T58eY0iNzhCkOVBAiB4Ec9XVY9Yi7b+5XXQxVWHGbE9K2CrpUck/lSavkUBZQ=="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.25.0-beta.1_1683338013256_0.694657154949494"},"_hasShrinkwrap":false},"2.25.0":{"name":"hasura-cli","version":"2.25.0","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"e4a0a876e81da659e2d638797ebe5c44b401fbe2","_id":"hasura-cli@2.25.0","_nodeVersion":"16.13.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-6D1HKgaMx4sRYPXJ4sr0fhCRPgtGb9aFd6keF9AbN6Oitv4JN5MV9jYwa6WHvOSK927+8cx6iRiwCEsXXXeuZw==","shasum":"d63d8ee30662b18fd40ba748d0aaf6f9d9808bae","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.25.0.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDg5Tzx8BMX41iW3cW8nx3ttNz8OlH1YBDFntq6LWMwtAIgFSK+rTxcnBhL8GEdt7U4ZwsIDyDXCaXAyzJqMqzubh4="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.25.0_1684292284372_0.11967338012772433"},"_hasShrinkwrap":false},"2.11.6":{"name":"hasura-cli","version":"2.11.6","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"d729ec691426048ef4b084b4d825f0be7aad8eb3","_id":"hasura-cli@2.11.6","_nodeVersion":"18.6.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-x+i+o9hVozmH8KFJtPyJHgw9XkKFNh74JxfU9hesb+DLo8Rf+LWXHEh+89PLi7fl87J7QGFK0o+XyW8bRynyzg==","shasum":"2932dc5f334a551152d6da6910927c9e2d6933b1","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.11.6.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICW+ywTCSulBrLTcUlKUbOL6unwa5rhMd2nIVsVB83HHAiEAjfyidbQCYnm9RCgaUd3Xv1JaRt9nubNFgpQ0nbXf2bU="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.11.6_1685922250565_0.4023164472182661"},"_hasShrinkwrap":false},"2.26.0-beta.1":{"name":"hasura-cli","version":"2.26.0-beta.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@2.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"3d3b9b548f683658a536ec7fe5ccd75e2f022347","_id":"hasura-cli@2.26.0-beta.1","_nodeVersion":"18.6.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-7QbqnjyKGV5v3l9z6JvIu95t2xg/uKLsk7jHgqT4cTbsIF+jjy+ymFSt+1cP3HsgFDGM55W2zqrsHboNaRsomw==","shasum":"f5dbfd074a5bc70f50a25262c417df98cb1afa9c","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.26.0-beta.1.tgz","fileCount":10,"unpackedSize":22183,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGCjYEmbDQhfeVpAmByhibN9qCFk7eZvXXzzHoSW2J25AiAmK+M2BsBF+Ivy+vv4FO+wwJUHg5bty8cqibar8rzaZg=="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.26.0-beta.1_1685922295739_0.015541031849772846"},"_hasShrinkwrap":false},"2.25.1":{"name":"hasura-cli","version":"2.25.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"3c80793891b476a85c111db813c680c091cd3b4a","_id":"hasura-cli@2.25.1","_nodeVersion":"18.6.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-nFxkE+FvF7ZnIXi98TiC3M1bGCYEdwSY1HXjPfS1PXwyiGVnBa+y2vJAGl3YVxd/4VzXPWYV/qcsAXoCgX9xIQ==","shasum":"985f2873e9c9856a82488a1e5f7b5579a6bf20dd","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.25.1.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFQ1wMNGO4Q/KJFirUcE6Anj+naaARtqHSF9DNta69m6AiEAzXYIceLyKfTkMwzK/QTeovGSZDWk0wzc8lvbs9f+nRM="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.25.1_1685922458171_0.11632516810980031"},"_hasShrinkwrap":false},"2.26.0":{"name":"hasura-cli","version":"2.26.0","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"cce527fa878de24c7f167dd04396d6273ac12b96","_id":"hasura-cli@2.26.0","_nodeVersion":"18.6.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-p9fUDidVBMLy4SclIiqF5Y60uFEP/5BxZAXndPooAo9M7eihHRqGHvbDrhf/WILmwcmbW6XJuSUCzp7lUVMd6g==","shasum":"0f227c04e715b50ad34a13d105ade0f3708c338a","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.26.0.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFz6UjZVEXFWBBtXXe3RzhKRGpnYaNPu9u2HmCtQrfWPAiBJktnhoUPTV445Vm24CveqkoNEti/p2nNN5xDQRw/BNQ=="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.26.0_1685924166821_0.5963402467295975"},"_hasShrinkwrap":false},"2.27.0-beta.1":{"name":"hasura-cli","version":"2.27.0-beta.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@2.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"eae5df6079f5bddadf6017da0c977f014b7d8d25","_id":"hasura-cli@2.27.0-beta.1","_nodeVersion":"18.6.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-FIZZqnumZgqY1CWRl4b993BPXAFwgPpsnK0NAE9ymNQzq+CaOwlIiOT4IEb2Bhu0hldO1hmE9lap6BXDiHEcvg==","shasum":"615a1ca501797e38104f020feb9c18f8f7d02e3c","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.27.0-beta.1.tgz","fileCount":10,"unpackedSize":22183,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCukmS8rjVlxkceGymKrlhWvV4jKRpUd/no8bRiwSJ93AIgF5Ox1jhpm4TY86DB86ZPWE472ZtDJECtanhJXMIApPg="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.27.0-beta.1_1685924229038_0.2890551320961552"},"_hasShrinkwrap":false},"2.11.7":{"name":"hasura-cli","version":"2.11.7","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"ceb9e56023071c3d271849217c0907e7d597e16a","_id":"hasura-cli@2.11.7","_nodeVersion":"18.6.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-7ba4eH+uB+CAE0jlCSXpkzBaOaRRjr/QEMn7GM9mpCZwXfkI/eeEAJoooerzT0CKnzMeQLQ/3XmhD+9H10tpMA==","shasum":"1fb5986dbf2a1ab034186d0dda00d9144b028d55","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.11.7.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG8YGmxqAzJfR7IQucjkhxiyXPlSYe4g7R4a52I/5DjfAiAdZR+HcVZXqfwN0Q20Uuho0tZCPI7Ray8u1MXjLDbi5w=="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.11.7_1687567719379_0.8040519525010157"},"_hasShrinkwrap":false},"2.27.0":{"name":"hasura-cli","version":"2.27.0","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"736f3c234ebadb4e0f67847816076d81dcbb528c","_id":"hasura-cli@2.27.0","_nodeVersion":"18.6.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-qLyumDHD5Csz8h9iGF10O96vbXIXpxx/CH60CBeYbT+ssaNIsEbbdSiceHQITFHyqOmG2DZf+YucLq+bgj6joQ==","shasum":"212cd27de48f61317c29a07ffa6cd2c91528564b","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.27.0.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGF1oCS60+56K74hp5m3K65db9equGQf6KI3LzqECUIIAiAOQtOCN4GhVSwGc5dSeZSo7oZiYmnNXfVOBwBS25UXqw=="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.27.0_1687567778488_0.04787961962325027"},"_hasShrinkwrap":false},"2.28.0-beta.1":{"name":"hasura-cli","version":"2.28.0-beta.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@2.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"34ede8c3fac191616b6dadf88202a29547ac84ad","_id":"hasura-cli@2.28.0-beta.1","_nodeVersion":"18.6.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-6QEzFkrOONuew5fjpMERMQAhD4TLagjeqkho0EjzE/YH+qbDgwBVDfmzSVU7uTN++aZ8lHSf/S+dCnH/tFrkRg==","shasum":"db34f2b697e7e78ec9cb6d0bdf2c06bbe7053e20","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.28.0-beta.1.tgz","fileCount":10,"unpackedSize":22183,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG0HdMOr9PzGbPU1pV9FyKi9I8isFhXzAkMKHpS/pe2FAiEAviTVjdUt7+Gd8KHXgGPVFrMWf3WR1XYEcTPHQ8dgYsI="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.28.0-beta.1_1687567841659_0.36339642205714706"},"_hasShrinkwrap":false},"2.11.8":{"name":"hasura-cli","version":"2.11.8","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"494f704caf227e8be9142993d0324b9da96f911e","_id":"hasura-cli@2.11.8","_nodeVersion":"18.6.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-RYJUVAlBjHa181o+gS63UJV3TvArbtnelWp9r3qT4Oio0hHn21nGg0v3Y//SAfSNVgBe6cSJWNCD33UpA6K0Ww==","shasum":"5c6fe81a4b5225f596a4142f9f3dab7545dca3e8","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.11.8.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEObnaFu4KPXs95gSTiXoub0BvPHD1R4xxsQ372j2BvjAiA/+NYrgWfVvjdpyUf/CMp5X8+3vgEfIUWRelRCHJwgMA=="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.11.8_1687567942555_0.904463353606036"},"_hasShrinkwrap":false},"2.28.0":{"name":"hasura-cli","version":"2.28.0","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"ecd4a9d21e7c54eb2ede20012642d769a60221eb","_id":"hasura-cli@2.28.0","_nodeVersion":"18.6.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-7QfoacQ30GKJ1Ar6AIRAE5Pv3JdC7P48WO754AFgwb0wr9/00BezsEt0IU7ENOrCQnV7VgXDS2DvGB/tYrSTDw==","shasum":"a6fda0a6d7ebc7772fef6ec7f0555798aaeb6188","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.28.0.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCyaLrlQ7FN7qg82L98AFPMaZfjYYzD9dkY+Wtqhjb3qwIgU63sPzPBhBxglYFCTl6x6tBUt/SN3stfwPJXxsgfdEA="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.28.0_1687567999545_0.25560200390954546"},"_hasShrinkwrap":false},"2.28.1":{"name":"hasura-cli","version":"2.28.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"3afe6f5c0e214d3f59eb67324b954934979b6a40","_id":"hasura-cli@2.28.1","_nodeVersion":"18.6.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-IVy2VjSU1lN6AdFzVQ10ex83cnOJTXomK8yVl4yZdheCXVOnrIwGg8h3HIFr1lDyq6Gl9bA44DSPSoaIy/ScGw==","shasum":"7e95fd738ec9dff4c7b12dbe268b5a9ce7d1e59b","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.28.1.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAUaBcvsECdJrAsRYG8f/kZiD11Smxd7PDP8XfQo3ReLAiAfLQs77e5TFb2bOJc3FVEvKIVCVaAMBrz9ytxO+Eywjw=="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.28.1_1689132807730_0.6139424590689337"},"_hasShrinkwrap":false},"2.29.0-beta.1":{"name":"hasura-cli","version":"2.29.0-beta.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@2.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"834fb5d293e77465fdb64307d8ce9dfa79803df3","_id":"hasura-cli@2.29.0-beta.1","_nodeVersion":"18.6.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-AHNQx+AFCFU01PzQFS2ECmOtGqwzo977sr2h7qyH1B7MhGbXRgyl22MLADb+IkZ/wnmOuxp69H/u75uS9moyTw==","shasum":"0c4f26efe2efcc8412f8cb7be4a3f762c0a6eadf","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.29.0-beta.1.tgz","fileCount":10,"unpackedSize":22183,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEI14iqceQxLre20wrRflPx6dMKvMuR0m1Tk+4AS9D31AiEA7XsYpXcT8zjZj31RCziOMp6d7NCtiBZ2k+zIAXqGQIo="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.29.0-beta.1_1689132854465_0.3422270611914746"},"_hasShrinkwrap":false},"2.28.2":{"name":"hasura-cli","version":"2.28.2","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"4bc7fd3f962f81aa4734f9e734b81bfa3beb325e","_id":"hasura-cli@2.28.2","_nodeVersion":"18.6.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-N+TAGTXl2R6RRrrO1k9kTFiF1of1uRR4iSRnFQH7Yy/W3tKk7HIC/Fo8oyq7WRpE1uAl8hxwfQJvxJWDi5eQ2Q==","shasum":"01940598023576b074bb30b956123895a4e2633f","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.28.2.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDEDmJAI2HL9f2hmG3mFKODY+0CE9hRYozMd1TQC1Y//gIgDCkCGH79zeNsRMTwYQ/QobzQeFQPHAwrYkwOzce+tFc="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.28.2_1689132895383_0.9452738862932502"},"_hasShrinkwrap":false},"2.29.0":{"name":"hasura-cli","version":"2.29.0","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"100172183ad71b363f364a4d57de458c8ce8e100","_id":"hasura-cli@2.29.0","_nodeVersion":"18.6.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-10I+ySRfj3vCDbGPEgt6PYF8pkrOrXW9e5W8nqlANns3Hz7zppe1LGv6v0G6F8y4QfB+9BAhxFlkRkroEEXW7Q==","shasum":"74190e9029ddee8946baea13c0351cbeed05cc26","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.29.0.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDOy0ZgJ6Z9aKgp8QLNxIjeT87wr2OLXwZZwGY6X84uTAiBPrX0Rt5QgcR6BX9rveYMRdXW1s0/1eLLKIVmEiCIH4A=="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.29.0_1689132924783_0.06390336893004278"},"_hasShrinkwrap":false},"2.11.9":{"name":"hasura-cli","version":"2.11.9","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"d829afef5a09b4b78ae02daec18e7a97ec0f3981","_id":"hasura-cli@2.11.9","_nodeVersion":"18.6.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-tjCwNgKVJ1CIyG7ldxNrzZuSZQWEGaC0Tu5pPjDdT6JMAsfKZUOiVAbLynkXm1e0+XYfHdhF66n3M7/5DGTJ5A==","shasum":"92e9827a990a6b5eca2feb3c705cee98ce8bfc44","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.11.9.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDUlLt+xTjQG3mUmDlm7hzB5a3OxoiD+WuHf0V/GFBJfAIhAKp/qxp6rUZiwl+viVMM+m5fn3/9CCC76oUJC4xH76io"}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.11.9_1689132960346_0.7426133424983035"},"_hasShrinkwrap":false},"2.29.1":{"name":"hasura-cli","version":"2.29.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"8c88e68b128f44dd3ac93c891de5e7fb960e93a0","_id":"hasura-cli@2.29.1","_nodeVersion":"18.6.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-0oJZbmhX1rfp3GHSEZUNwCwQG4e5XG5FGc/eMRoi9W1iZ+r2p1gJTHcMY89khbNebqD+9nJc2l2OmHNCkMi55A==","shasum":"835bce20248d692d4da081be2fe530841f064219","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.29.1.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC4WSOUskU3uIr69BC8M/9BqUPOycrdIfDFITdcXGF73AiEAxqNPFDy2jS+UCL4bdAbmCjPwdoyqnfBpUkuSSuQkfYY="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.29.1_1689132997658_0.05309672683263145"},"_hasShrinkwrap":false},"2.30.0-beta.1":{"name":"hasura-cli","version":"2.30.0-beta.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@2.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"b73e3160e68ed2cf6375635a0e21dbd4776edd57","_id":"hasura-cli@2.30.0-beta.1","_nodeVersion":"18.6.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-7ldea3aB20X9rOUWJO1jlYoXFDI3BYjivEloNasAu1JykkoCKAS9D9fE2ZQq0nufJkW16qGb8MpZ7NvtWl1vbA==","shasum":"212af401dfd34a55ddc119c6efbfb1d999b8d994","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.30.0-beta.1.tgz","fileCount":10,"unpackedSize":22183,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG+9hZ5nluxIEBDMVS/YJM9XskjOQQ/XbG9uWVz8NrAbAiANcOYcKQiLg2O5o9YtES/8GYhw8oTJE6RegWy7C2s1Zg=="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.30.0-beta.1_1689831687356_0.9532867263611169"},"_hasShrinkwrap":false},"2.29.2":{"name":"hasura-cli","version":"2.29.2","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"5b26d2d6994a3277ad7898c4a4d9791367acefd0","_id":"hasura-cli@2.29.2","_nodeVersion":"18.6.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-eGCcv/ietp0zCerTqQRrfrnDwOJhifekjJPKQpiRREiIuG8fvBRvNBLAoKEnpzr4QWTwzDtKWdNBb3aCPcaIAA==","shasum":"57ffadb01ba362e5e3880c9329cfec9e220513d3","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.29.2.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDxrKYtiSgPizQ1r1+NforvLXxuIqQcUI8OmZ3GiLrbxAIhAKWg9ky8IYT2Pc2ueP2cUy4ZG95oi7GPWXaVQJhJUwzK"}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.29.2_1689831751066_0.40855725656031106"},"_hasShrinkwrap":false},"2.30.0":{"name":"hasura-cli","version":"2.30.0","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"83bcf3ebd60d73e864d040888da96068536328b6","_id":"hasura-cli@2.30.0","_nodeVersion":"18.6.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-qlrpAnIK1V8vD/a0RU3SLTqiQW9rslYBQhwlqODzXWV0tLpfZQIXUFQgUZabPRhowmABYBr+McIuuuDPDJMXSw==","shasum":"b19385268ebd2756f3dc218d5519284421c4e6f0","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.30.0.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDvXMxbBsGNuEyHRvrQRC0DEOFlqmCOWmKH0f9zkaZ+FgIhAJXL92t9uU/2WnyI3Z3JA4Grn/Gb1tQIuNbmjjjhRuFc"}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.30.0_1689831806698_0.6671495395326519"},"_hasShrinkwrap":false},"2.30.1":{"name":"hasura-cli","version":"2.30.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"1519f432d0a5de1bb9aacd60a9930d26845007f0","_id":"hasura-cli@2.30.1","_nodeVersion":"18.6.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-R524oKDWSXoyak5inZzYhhPm7a+rvqLoHF2++1boUCl0pa0Lja5bzTp+T7k0RtayWxMp1u9B6HvXkPu5iDndTw==","shasum":"50a57388d187081e819cbbcf427a6c411e562468","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.30.1.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGj+V9uy7aP/bhRv/KifEn6B/jso/Z8uhd2iJNRMDnYuAiEAoU6DKkuzAsmPfrhpagHzAivW8KvpIldJrY09OQ99UkQ="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.30.1_1691456590252_0.6655628853981268"},"_hasShrinkwrap":false},"2.31.0-beta.1":{"name":"hasura-cli","version":"2.31.0-beta.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@2.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"5b12eb2d4e15f0fde7bd3abd2a7e9c23d74307d7","_id":"hasura-cli@2.31.0-beta.1","_nodeVersion":"18.6.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-0ROVfZ6m0CO2x2DxdI8/aNq3CaXbRnoKngs+A6XYqGHit9zQjoru5vGhLHfjg/t2RHJAPKR8WNVWCKNqRi0qKw==","shasum":"407ff9342f6c4d9fbcc565f725e32b17c3a888b8","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.31.0-beta.1.tgz","fileCount":10,"unpackedSize":22183,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHq8vd66fRpnhAvyTlOALFgG2XTpsYMN8AJM1ywYuYT8AiEAgwqiOc8Lhtn42S0XX6wgsNpI3GJVpjofHVSml2Nz7jM="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.31.0-beta.1_1691456628698_0.4990171884674428"},"_hasShrinkwrap":false},"2.31.0":{"name":"hasura-cli","version":"2.31.0","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@types/jest":"^24.0.18","@types/node":"^12.7.5","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","prettier":"^1.18.2","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"3422eeebc6bcd968cdc8d68a28f2d95741486c48","_id":"hasura-cli@2.31.0","_nodeVersion":"18.6.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-+U/mGfvkOcHtJz0YT7zcFQH5x0SE25RFXM6UIa2bu6OGPwJdX1PRJSt4y/CEbTRAiKPCXWqVknlldXPIezXfTw==","shasum":"056ec918cd4788cc937a67c95ddd9508ecc8a6c2","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.31.0.tgz","fileCount":10,"unpackedSize":22176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDE94OSjJ4vRe42U2wNhEe+SszeHYBAAB+uysfzsGePzwIhAJlfbiPx5WZQBdUuCF4OOT/rbgnBAAZ2pbwO/mtzfoRU"}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.31.0_1691456673550_0.018220952669949497"},"_hasShrinkwrap":false},"2.32.0-beta.1":{"name":"hasura-cli","version":"2.32.0-beta.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@swc/core":"^1.3.75","@types/jest":"^24.0.18","@types/semver":"^7.5.0","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dirname-filename-esm":"^1.1.1","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","execa":"^7.2.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","octokit":"^3.1.0","prettier":"^1.18.2","semver":"^7.5.4","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node":"^10.9.1","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@2.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"5d58a80ff5ab0d1d41ba21610f9ebf3f254acad5","_id":"hasura-cli@2.32.0-beta.1","_nodeVersion":"18.17.0","_npmVersion":"9.6.7","dist":{"integrity":"sha512-/67sembprNhvN9ARiA6B/BhBvwrUmc/Kx/cZv7t/opgoexJUyMZCsz/n/bLWOZQ4wId4qNyN9HxPCKIX0OgeCw==","shasum":"b4684ca094fa4c353c792ccec882acef2a5237e4","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.32.0-beta.1.tgz","fileCount":10,"unpackedSize":22347,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIALWl687JGwhTRH9lkHsLcSrJeF01dljDFecM9ejYuYOAiEAkA4kM3Id0nIBD4MoMOmCHwOwjtCG/4F1n1m+pcegmGo="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.32.0-beta.1_1691756713810_0.6516745614118753"},"_hasShrinkwrap":false},"2.11.10":{"name":"hasura-cli","version":"2.11.10","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@swc/core":"^1.3.75","@types/jest":"^24.0.18","@types/semver":"^7.5.0","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dirname-filename-esm":"^1.1.1","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","execa":"^7.2.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","octokit":"^3.1.0","prettier":"^1.18.2","semver":"^7.5.4","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node":"^10.9.1","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"52bd4bcdd1799cbf8b38f923d0b006eb67ab4cb2","_id":"hasura-cli@2.11.10","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-o8//gUUOjYnVMYPm2MiW/UQYRPcxvintohsaeWcqgC2D0cjx5G7rWKjdfraTwi5pt7wGkbwPIjlrzdll9S0RFQ==","shasum":"8c13faa2fd675b73e41c8ff04ae702feed4526a5","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.11.10.tgz","fileCount":10,"unpackedSize":22452,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDldn78z2MhAUhbNcW6sG3hloN8kF5cKUTodOnc9A+QBAIhAO+S4URQH0hsa5bEjrouMZ9VrlrkrvQQwmOjEUl+YnCA"}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.11.10_1692232865278_0.9550718235548377"},"_hasShrinkwrap":false},"2.32.0":{"name":"hasura-cli","version":"2.32.0","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@swc/core":"^1.3.75","@types/jest":"^24.0.18","@types/semver":"^7.5.0","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dirname-filename-esm":"^1.1.1","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","execa":"^7.2.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","octokit":"^3.1.0","prettier":"^1.18.2","semver":"^7.5.4","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node":"^10.9.1","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"7a7471de53f331ac0ae6e8c18d310fe87ba53661","_id":"hasura-cli@2.32.0","_nodeVersion":"18.17.0","_npmVersion":"9.6.7","dist":{"integrity":"sha512-dQljfNsu7yerM1aUmIzUaUpWjJb/gwUoe6sWq1Y6TI9y+bNE5WYcQmdKJ3E9domXx2Uc8nZYITGna/9Qvh0fFQ==","shasum":"5218a2d87cd05c866a725e546fbed3ea25acdacd","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.32.0.tgz","fileCount":10,"unpackedSize":22451,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC9nb5M88vNvKB8gbc0JqQ8eut4VgEza/vknP7OUXI/MQIgUJv3xgTxwz1zbS8Ya2JlBNsyQ3Vzf2tiVmH7qe+v9vc="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.32.0_1692319266903_0.9207732767038694"},"_hasShrinkwrap":false},"2.32.1":{"name":"hasura-cli","version":"2.32.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@swc/core":"^1.3.75","@types/jest":"^24.0.18","@types/semver":"^7.5.0","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dirname-filename-esm":"^1.1.1","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","execa":"^7.2.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","octokit":"^3.1.0","prettier":"^1.18.2","semver":"^7.5.4","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node":"^10.9.1","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"26329a99c7458f5bcd7d003cea2c3240d23dfd1e","_id":"hasura-cli@2.32.1","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-7TA7x2KBGEQDB73D9Wuf1kHU3Bdka8qZRFFx8poMI9LvOQQVPpCcR/Td4/Y8wDC76fO8DBtKHfcTqFReMLM8mg==","shasum":"81503c9b4bf42256af26e87dfbf16f1202d24122","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.32.1.tgz","fileCount":10,"unpackedSize":22451,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC21ndxM9VxKhzQ7bFelYY4c14+qeBmuNLExOMv+4CgSAIgSnrH03QwEzK0sD2mHhtgGhREbyrDQfhlf/TCvukMKt4="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.32.1_1692837684527_0.08034717730564833"},"_hasShrinkwrap":false},"2.33.0-beta.1":{"name":"hasura-cli","version":"2.33.0-beta.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@swc/core":"^1.3.75","@types/jest":"^24.0.18","@types/semver":"^7.5.0","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dirname-filename-esm":"^1.1.1","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","execa":"^7.2.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","octokit":"^3.1.0","prettier":"^1.18.2","semver":"^7.5.4","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node":"^10.9.1","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\nThe package is automatically published (always up-to-date) when a new version is released from Hasura's side.\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@2.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"78beb15c4141f939c4f27e4a158f8d643713f318","_id":"hasura-cli@2.33.0-beta.1","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-zCPD5Vh6n5wDB1WBwiRk33yaFdyK0Gy+gsdidDqfkVEajFBoRJqPfgAOCQ8x6D20mVVweizWNGax10T98/huTw==","shasum":"e86be5fec0e9e5404076994994300fd0c3228aea","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.33.0-beta.1.tgz","fileCount":10,"unpackedSize":22458,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIESXtd3sBb1S55nZ4yD1JjEAm4Trj/rZDTRWCNmpon8jAiBaSCXnZlFBtB+1jmq9t21dz/1fZug3pSL/c0K2Lp0jdg=="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.33.0-beta.1_1692837706533_0.5119135335248877"},"_hasShrinkwrap":false},"2.33.0":{"name":"hasura-cli","version":"2.33.0","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@swc/core":"^1.3.75","@types/jest":"^24.0.18","@types/semver":"^7.5.0","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dirname-filename-esm":"^1.1.1","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","execa":"^7.2.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","octokit":"^3.1.0","prettier":"^1.18.2","semver":"^7.5.4","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node":"^10.9.1","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"cd96baac99ca712dd1393f86c35a81f41add55ae","_id":"hasura-cli@2.33.0","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-DdG/r25QAl6mKbV0gnWXg3ENgwKdBKnXlXn/oNTdm24ArXffLa4LtAmhkfm+8RtvCJDyboms6+HIY+83gNoKag==","shasum":"3c6d1cad071ac3537091f19858ed1312988cc543","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.33.0.tgz","fileCount":10,"unpackedSize":22451,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICHuRn8RoaiGW+uMHBDFF3FUcvfIJsweoGO3J8m5cbShAiEA+gw7Z2OAszIQa4LOd5rSCb+qsul3TPJfElCs85/h7oo="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.33.0_1693442582244_0.3485978233970861"},"_hasShrinkwrap":false},"2.33.1":{"name":"hasura-cli","version":"2.33.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@swc/core":"^1.3.75","@types/jest":"^24.0.18","@types/semver":"^7.5.0","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dirname-filename-esm":"^1.1.1","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","execa":"^7.2.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","octokit":"^3.1.0","prettier":"^1.18.2","semver":"^7.5.4","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node":"^10.9.1","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"935cc395c4159a1d5300ecf3da580a1a2515eced","_id":"hasura-cli@2.33.1","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-tGhO7ITVYdsvhAlVdBGbp71tltgQhmQ0BFR38LbISisyro+fN7SiRkJMf05qWSTS1IrwUajyzbvQ/Mz4q/NifQ==","shasum":"277dc1a0a01a49640f6419185024498e382ba5d7","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.33.1.tgz","fileCount":10,"unpackedSize":22451,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAqH951Dp9ST7eQ9XFeOpqRL/iQRmOIHrAvDFCSiACJ2AiB6fVKTroDPiLvFHOPgwDtMLiCMVrArOyiYDab/anXR0w=="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.33.1_1693615245353_0.6132661489498898"},"_hasShrinkwrap":false},"2.32.2":{"name":"hasura-cli","version":"2.32.2","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@swc/core":"^1.3.75","@types/jest":"^24.0.18","@types/semver":"^7.5.0","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dirname-filename-esm":"^1.1.1","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","execa":"^7.2.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","octokit":"^3.1.0","prettier":"^1.18.2","semver":"^7.5.4","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node":"^10.9.1","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"331004fd0a33abeb12e64c8cb5f2816b167f925b","_id":"hasura-cli@2.32.2","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-63Bj/iGe/sLYXRHQ6jNJ+lptpYtAWa9Pw2RwXcEbPEOLhnS9LlUWr3JlY0LJGCKT4urpzINZeD7V9OUinxMn4A==","shasum":"5aed5f900a452bc40b4f658bd4e22ef305a6a660","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.32.2.tgz","fileCount":10,"unpackedSize":22451,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH5R0KyC+S97KGYYhdAR8LP8m4IO8lgGnJuWimxXFojnAiAvBF63Cx++K0/B4qWgJFViMBOxUR+Z1eK0yvNAqsTQRQ=="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.32.2_1693960950677_0.8430291963814727"},"_hasShrinkwrap":false},"2.33.2":{"name":"hasura-cli","version":"2.33.2","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@swc/core":"^1.3.75","@types/jest":"^24.0.18","@types/semver":"^7.5.0","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dirname-filename-esm":"^1.1.1","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","execa":"^7.2.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","octokit":"^3.1.0","prettier":"^1.18.2","semver":"^7.5.4","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node":"^10.9.1","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"types":"./dist/index.d.ts","gitHead":"3052571f0a3a4f8d29c7fa826b2c81440c1859db","_id":"hasura-cli@2.33.2","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-gESPnDlBoRp8JbaO0552Mb7JjbFQXEWJlo8T9A4QLmvarBkwYRH6ZaDe+RZ94K7XQiNNZ07MzDghJIs+KBoSxg==","shasum":"f46bed074a53340ea9a9d0106217e7a5a8767a98","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.33.2.tgz","fileCount":10,"unpackedSize":22451,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE2FBifO7vBBK4iS+vyz4j2MJybB0X0BrD8AclTQqzAsAiEAtJfXCMWogLTe4i4fAtGlZ6/Voo+2pp2PntvTiXRyIvI="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.33.2_1693960971088_0.033703284292337043"},"_hasShrinkwrap":false},"2.34.0-beta.1":{"name":"hasura-cli","version":"2.34.0-beta.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@swc/core":"^1.3.75","@types/jest":"^24.0.18","@types/semver":"^7.5.0","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dirname-filename-esm":"^1.1.1","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","execa":"^7.2.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","octokit":"^3.1.0","prettier":"^1.18.2","semver":"^7.5.4","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node":"^10.9.1","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\nThe package is automatically published (always up-to-date) when a new version is released from Hasura's side.\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@2.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"fcb85b87963460ba8878837cfae014c52f04c277","_id":"hasura-cli@2.34.0-beta.1","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-rNA9P2GDLbKRRIROv/eP6BfE8wlXFjMP+U4b/3KTG7Zq04h12/ZtNqbkpJfOmWkneZPXL+ONVINpWm9hvEcVUg==","shasum":"a313db1965abcdc2b09a87fb6b571d61e03db2c5","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.34.0-beta.1.tgz","fileCount":10,"unpackedSize":22458,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFxCDUeBbD/dh5W67vpOXofx7bQ9M5fE44v438JiNBd6AiBvadWWqcaQN7U42ptuljv88eAzgwk23fU+zs/oIUJVog=="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.34.0-beta.1_1694047331524_0.8452200431689605"},"_hasShrinkwrap":false},"2.33.3":{"name":"hasura-cli","version":"2.33.3","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@swc/core":"^1.3.75","@types/jest":"^24.0.18","@types/semver":"^7.5.0","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dirname-filename-esm":"^1.1.1","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","execa":"^7.2.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","octokit":"^3.1.0","prettier":"^1.18.2","semver":"^7.5.4","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node":"^10.9.1","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"161ba63cf992bba592bfeb34d077f9ef44fb352b","_id":"hasura-cli@2.33.3","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-4RZ7zuIP5Lv10IkPboz7Ol7J8alnq1Oc5IbvF+3bhKiJquDxv0n02xZ8SYjUP5bnNsyEFvq6JzMRZXigiQtUTQ==","shasum":"f580b637a0e35858f0ddf0078809581d8105b863","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.33.3.tgz","fileCount":10,"unpackedSize":22451,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFUqwfLM4Fb9xu1ACQk53/g8IR4zNqOpGpjriGO4pwQ/AiEA5BWQFp76EfxsDDpcWP5tzR4/8HEtfoRfgbmUG1+KX1A="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.33.3_1694133740047_0.5542910658845108"},"_hasShrinkwrap":false},"2.33.4":{"name":"hasura-cli","version":"2.33.4","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@swc/core":"^1.3.75","@types/jest":"^24.0.18","@types/semver":"^7.5.0","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dirname-filename-esm":"^1.1.1","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","execa":"^7.2.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","octokit":"^3.1.0","prettier":"^1.18.2","semver":"^7.5.4","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node":"^10.9.1","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"0328f8f5520d79bb3ede634bdcb11f62ef2c3ee1","_id":"hasura-cli@2.33.4","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-G6S65H1T8kvBBC3hwIY2wEMYu0shie247fgjcEXtM7e5BBX1IdeD2sVAt+gvIzrbssVai0x3yqj4X+uJGKbcTA==","shasum":"ec34ce10e725445aa5cab09168b425af7a900288","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.33.4.tgz","fileCount":10,"unpackedSize":22451,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC9IAYj1ODcCq3bgmR+9HiLMcjZMbK1zi9b4E0/8e24RwIgB66cR1XEMS+ovjYJa/9h/teiw8yI58VdU+JiV4tMWXg="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.33.4_1694479285675_0.0013070243826760475"},"_hasShrinkwrap":false},"2.11.11":{"name":"hasura-cli","version":"2.11.11","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@swc/core":"^1.3.75","@types/jest":"^24.0.18","@types/semver":"^7.5.0","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dirname-filename-esm":"^1.1.1","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","execa":"^7.2.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","octokit":"^3.1.0","prettier":"^1.18.2","semver":"^7.5.4","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node":"^10.9.1","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"gitHead":"3dcdcedf1205cf659bc158f186afbda94685a70b","_id":"hasura-cli@2.11.11","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-Vf6rQeBNwXp6qcX37g8ArP/QAF/0J6Dyd/8mVsnHH1ENhmBujfG1AgoWnWrrPRaGTiUNjwu9/lKac1k+jmfobA==","shasum":"6c19cffae322f05d5cd9c777b92b941f19352950","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.11.11.tgz","fileCount":10,"unpackedSize":22452,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD1awVWBME3eEQfgXPewNpFfXqaVqc2wqPUk6f1LEsxrQIgGlqN55EKxMZ0Jt2i4af81oSC07U/2xTrE0WtSL0lF+I="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.11.11_1695689024635_0.7287685225062619"},"_hasShrinkwrap":false},"2.34.0":{"name":"hasura-cli","version":"2.34.0","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@swc/core":"^1.3.75","@types/jest":"^24.0.18","@types/semver":"^7.5.0","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dirname-filename-esm":"^1.1.1","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","execa":"^7.2.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","octokit":"^3.1.0","prettier":"^1.18.2","semver":"^7.5.4","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node":"^10.9.1","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"_id":"hasura-cli@2.34.0","gitHead":"287fdf06efc09fad2bc89fceef51d7faec6f63e9","types":"./dist/index.d.ts","_nodeVersion":"18.18.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-+x3ALaSN+dlFXHAlE6Jftq3ZKdoXryF9LzQ3euaIOL6U0O6e/b4SJSChi6OKCdFIbxWK6VoGdv5FFMBaeC+ShA==","shasum":"40c81ee5e48dc2e8e05a1db62869018fe03fd12d","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.34.0.tgz","fileCount":10,"unpackedSize":22451,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEhxGOneBvLuigpFI2lagSKk9tSxGaU0ZyPrJathOhaGAiApFryNylo/P6ozNnk0pxAH8HCKQeFPNmbUk17D32N9PA=="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.34.0_1696553012353_0.8191855802773176"},"_hasShrinkwrap":false},"2.11.12":{"name":"hasura-cli","version":"2.11.12","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@swc/core":"^1.3.75","@types/jest":"^24.0.18","@types/semver":"^7.5.0","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dirname-filename-esm":"^1.1.1","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","execa":"^7.2.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","octokit":"^3.1.0","prettier":"^1.18.2","semver":"^7.5.4","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node":"^10.9.1","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"_id":"hasura-cli@2.11.12","gitHead":"fcb41f0ff2e96b5612f1975ea33292e5adafd277","types":"./dist/index.d.ts","_nodeVersion":"18.18.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-SxLrCJ9wHofpsudIDVq8vGUWkrzWf3Dd7CdsSE0gDghNK5FPwF4zfaHVi/SlJDm4uA9NzrH1qfUAwaBdyKtBlw==","shasum":"88a13dd1d57680e9851de3267c2d3b9c6864760a","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.11.12.tgz","fileCount":10,"unpackedSize":22452,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBZaJlsGOm7HXFDADl/tg7P9XrbifTYFjIVI6Nzwtyo1AiEAzLLRos+VBqKiKmmFIUYp8sgE0qTo5Xqb5ttQckG4FZs="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.11.12_1696639383020_0.9141775149356717"},"_hasShrinkwrap":false},"2.11.13":{"name":"hasura-cli","version":"2.11.13","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@swc/core":"^1.3.75","@types/jest":"^24.0.18","@types/semver":"^7.5.0","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dirname-filename-esm":"^1.1.1","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","execa":"^7.2.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","octokit":"^3.1.0","prettier":"^1.18.2","semver":"^7.5.4","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node":"^10.9.1","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"_id":"hasura-cli@2.11.13","gitHead":"732e615e4cd71cb3bdd30ff88a0408c87ccef2df","types":"./dist/index.d.ts","_nodeVersion":"18.18.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-64X9AszQV0+CEdtgqxDFj+S8qkAHG+RRUlhyOBAjaKs2kv3suAwygSXn1TZ/mTGRql2vu62pufqCIdEviOaxTw==","shasum":"76e12f58788bb3f49a23a79e29d9bc351e589ffe","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.11.13.tgz","fileCount":10,"unpackedSize":22452,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD6Y6c3x16fQ30RuTknCBqpSdhDDEDZFX8tlPDMkNuGdAIhAI0ZO6BRSzVqMerT5tj2EwfBjV7VDTzJpenePu3nq3/T"}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.11.13_1696985000539_0.9983076762054075"},"_hasShrinkwrap":false},"2.35.0":{"name":"hasura-cli","version":"2.35.0","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@swc/core":"^1.3.75","@types/jest":"^24.0.18","@types/semver":"^7.5.0","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dirname-filename-esm":"^1.1.1","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","execa":"^7.2.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","octokit":"^3.1.0","prettier":"^1.18.2","semver":"^7.5.4","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node":"^10.9.1","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"_id":"hasura-cli@2.35.0","gitHead":"4177e4b45a4ff1327363ad9c3093d62c7ef4cedd","types":"./dist/index.d.ts","_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-aK3+vR0q2UwUZVai/ojDSQolt7JWI6cxPo8t/Sx4oD4INYgX8u0WRw6W7DWvaPfnSm9yHGEFvfJJnp670Tc3rQ==","shasum":"d95dae977fe8d290a63cfe24a576105065c4504c","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.35.0.tgz","fileCount":10,"unpackedSize":22451,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCr21yLSFo8ChUToj0ydUGFtdJqopYrqQxZeo9wIZnPRQIhAOdx1YDWlth6Ew8f8sSQZu3Ajwim2DH6GD0/HWsY3+jA"}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.35.0_1698799657005_0.8930446065736428"},"_hasShrinkwrap":false},"2.35.1":{"name":"hasura-cli","version":"2.35.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@swc/core":"^1.3.75","@types/jest":"^24.0.18","@types/semver":"^7.5.0","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dirname-filename-esm":"^1.1.1","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","execa":"^7.2.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","octokit":"^3.1.0","prettier":"^1.18.2","semver":"^7.5.4","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node":"^10.9.1","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"_id":"hasura-cli@2.35.1","gitHead":"81726e6ae6867fb1f1fa7f4083cefb2ae031e57f","types":"./dist/index.d.ts","_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-rHy3cOpwj6UtgQQVkLntGaXqzP0BDaxwgtFRKV45Zuj3B2u2uvwk5sgI+iFlqZ3/lyHcTMMoQl6jeE8N+ypPlw==","shasum":"30de7f2da698750c655c71e7fcf57550d9c7d9ef","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.35.1.tgz","fileCount":10,"unpackedSize":22451,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDUcJ2V8SQTiolXULQ6U7FK5YTg3xQZ4i2CqbDxvI0PGQIhAKhbvt0HtYly7i7SA1VnatCkdlFVB5HIKeHJ8cVdfuTd"}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.35.1_1699490654921_0.9247490762265484"},"_hasShrinkwrap":false},"2.36.0-beta.1":{"name":"hasura-cli","version":"2.36.0-beta.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@swc/core":"^1.3.75","@types/jest":"^24.0.18","@types/semver":"^7.5.0","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dirname-filename-esm":"^1.1.1","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","execa":"^7.2.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","octokit":"^3.1.0","prettier":"^1.18.2","semver":"^7.5.4","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node":"^10.9.1","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"_id":"hasura-cli@2.36.0-beta.1","readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\nThe package is automatically published (always up-to-date) when a new version is released from Hasura's side.\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can just simply install hasura-cli through npm or yarn. Note that this package follows version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@2.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=8.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `yarn dev` or `yarn dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\nyarn install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\nyarn dev\n# or\nyarn dev:no-respawn\n# or\nyarn dev:build\n```\n\n`yarn dev` watches source code and restarts a process when file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) does watching, compiling and restarting.\n\n`yarn dev:no-respawn` does the same thing except it does not restart.\n\n`yarn dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and run (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simualtaneously.\n\nTo manually test compiled js, you can run\n\n```bash\nyarn build # compiles ts to js\nyarn start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\nyarn test # runs all tests (against \"*.test.ts\")\nyarn test:coverage # runs all tests and measures coverage\nyarn lint # lint\nyarn format # format(fix)\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `yarn build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing (`npm publish` on development environment) the package, the file `hasura` is just a dummy 'text' file, not a binary flie. The file will be replaced to a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specfic binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset url\"_ and _\"downloading the asset from the url\"_. `src/install.ts` exposes a function of _\"composing them and handling how installation should be processed\"_. `src/index.ts` uses the function to actually install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","gitHead":"44438f935c2f1dcdab950dd996998f4fddcac8e2","types":"./dist/index.d.ts","_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-oyuhz38r5u+RiHW5703vKpgp/CLGVEAmHow3uzRRbf4oPmbVblrdMtdw8TXvlcqvokaYib85k9FtUu1hlMkt8g==","shasum":"052a4a66b384094bbcf6b02c1f4e88beff152cef","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.36.0-beta.1.tgz","fileCount":10,"unpackedSize":22458,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC+CiCkDHQ5PQ7ERZn9vfABLTnCcaqZK556ikKH1eLtPQIhAIWbeClUGdTisT1Nhxq7+QECziYeteAkEpvP36mCZfTH"}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.36.0-beta.1_1701477896275_0.4891121628604773"},"_hasShrinkwrap":false},"2.36.0":{"name":"hasura-cli","version":"2.36.0","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@swc/core":"^1.3.75","@types/jest":"^24.0.18","@types/semver":"^7.5.0","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dirname-filename-esm":"^1.1.1","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","execa":"^7.2.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","octokit":"^3.1.0","prettier":"^1.18.2","semver":"^7.5.4","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node":"^10.9.1","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"_id":"hasura-cli@2.36.0","gitHead":"65b1a28a7f51f923c11d7b8032e93adfb02948d1","types":"./dist/index.d.ts","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-sEnkabR6+lHg60ZtSCkC7xXMQX51eNmUqGTwvH++9mFPO5uAKUzNWBzRRBbkfnOH9VQYO22NEpFu7BR0K0k9KA==","shasum":"09ec11b162e4e18b10764839b401bc103a620978","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.36.0.tgz","fileCount":10,"unpackedSize":22451,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICDO288Q5t8l7gC7GOKhwDUzSt8EZ7+dn+usGd2yn+bKAiEAgly2cQ9j4jQQcJXF3FXG3y9nwxXphufiHNVTOJxripg="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.36.0_1702428401329_0.21225646444402924"},"_hasShrinkwrap":false},"2.35.2":{"name":"hasura-cli","version":"2.35.2","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@swc/core":"^1.3.75","@types/jest":"^24.0.18","@types/semver":"^7.5.0","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dirname-filename-esm":"^1.1.1","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","execa":"^7.2.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","octokit":"^3.1.0","prettier":"^1.18.2","semver":"^7.5.4","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node":"^10.9.1","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"_id":"hasura-cli@2.35.2","gitHead":"bea17a294080dc173649a40242534b2b73177098","types":"./dist/index.d.ts","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-BNh+0ht+KapANWR28eHLy3+gKl6Z5rfs+1Pw7vA3DCY6XG8+U/JdWrw/iL1oIxjlXgGx1dHvlVkGk/cFZYd6nQ==","shasum":"4897966fcf15b7d938e0915a3774772503701682","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.35.2.tgz","fileCount":10,"unpackedSize":22451,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEVyaPxEdGXUo2yzIUpvmbOpkGHr+2veKNDwDBVPYJSkAiBZRwTXOKsIkfXAuhZ27tdbyXzfvsFgQkhjm/t9X5RZxg=="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.35.2_1702428420353_0.18550975997905073"},"_hasShrinkwrap":false},"2.35.3":{"name":"hasura-cli","version":"2.35.3","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@swc/core":"^1.3.75","@types/jest":"^24.0.18","@types/semver":"^7.5.0","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dirname-filename-esm":"^1.1.1","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","execa":"^7.2.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","octokit":"^3.1.0","prettier":"^1.18.2","semver":"^7.5.4","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node":"^10.9.1","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"_id":"hasura-cli@2.35.3","gitHead":"20ce65385c3a0fb9bad9245c25273350f64d24b4","types":"./dist/index.d.ts","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-e8URhPgZRayHAHGlXXIh7oYdh+iN+PM9/QbYVcmevcg/x0MkXIgG8oGRjEKFdOP95F7NLqrqBCtUxxiw3hyDMA==","shasum":"be6228347176fa1731e11121ea37f4e23c74af3e","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.35.3.tgz","fileCount":10,"unpackedSize":22451,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHJQJhxR0+OZ43sNpga+roHSy95H+qWKmscq4uvjoIYfAiEAhKMoN7aryUDocCG3Iw58q0Rljns9G1z0aJkf0CV9WFY="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.35.3_1703032683939_0.7521281004904601"},"_hasShrinkwrap":false},"2.36.1":{"name":"hasura-cli","version":"2.36.1","license":"MIT","engines":{"node":">=8"},"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint:js":"eslint --ext js --ext md","lint:ts":"eslint --ext ts --ext md","lint:code":"eslint --ext js --ext ts --ext md --ext json","lint:code:ci":"yarn lint:code . --format junit","lint:md":"markdownlint --ignore node_modules --ignore .git --ignore CHANGELOG.md","lint":"yarn lint:code . && yarn lint:md .","format:js":"yarn lint:js --fix","format:ts":"yarn lint:ts --fix","format:md":"yarn lint:md --fix","format":"yarn format:js . && yarn format:ts . && yarn format:md .","test":"jest","test:coverage":"yarn test --coverage","build":"shx rm -rf dist/* && tsc","build:watch":"tsc -w","build:incremental":"tsc -i","prepublishOnly":"yarn build","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- ts-node","start":"node dist/index.js","prepare":"husky install"},"lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.js":["yarn format:js"],"*.ts":["yarn format:ts"],"*.md":["yarn format:md"],"*.json":["yarn lint:code"]},"devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@swc/core":"^1.3.75","@types/jest":"^24.0.18","@types/semver":"^7.5.0","@typescript-eslint/eslint-plugin":"^2.2.0","@typescript-eslint/parser":"^2.2.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dirname-filename-esm":"^1.1.1","dotenv-cli":"^2.0.1","eslint":"5.3.0","eslint-config-airbnb-base":"13.2.0","eslint-config-prettier":"^6.0.0","eslint-import-resolver-typescript":"^1.1.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.9.0","eslint-plugin-json":"^1.4.0","eslint-plugin-markdown":"^1.0.0","eslint-plugin-prettier":"^3.1.0","execa":"^7.2.0","husky":"^7.0.0","jest":"^26.6.3","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.22.0","nodemon":"^1.19.2","octokit":"^3.1.0","prettier":"^1.18.2","semver":"^7.5.4","shx":"^0.3.2","ts-jest":"^26.5.4","ts-node":"^10.9.1","ts-node-dev":"^1.1.6","typescript":"^3.6.3","verdaccio":"^4.3.0"},"dependencies":{"axios":"^0.21.1","chalk":"^2.4.2"},"main":"dist/index.js","typescript:main":"src/index.ts","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"_id":"hasura-cli@2.36.1","gitHead":"f21c5980f4c132b592bee67352a3e1666fb8add9","types":"./dist/index.d.ts","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-h8MHlkkgjlnmFsjzJ+FYDecIB0zswtdvFszXLPsSsyOuCuIIGejAx3rSPFVIxyiZVXohbsJcgjJBe7r91BV3Wg==","shasum":"974eb79d10a2d4c72c1b413739a2f0f646571c33","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.36.1.tgz","fileCount":10,"unpackedSize":22451,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCGuXj1kOOPzFewtQn/0iqqds2CKhAOE/Rb1KP3g73dqQIhAK2Uy+u6gcQWRFgNLYG+eRfF+IBNTUFX4bsP/ETWPsPN"}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.36.1_1703032703927_0.4789408799912622"},"_hasShrinkwrap":false},"2.36.2":{"name":"hasura-cli","version":"2.36.2","license":"MIT","private":false,"engines":{"node":">=16"},"type":"module","lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.?({c,m}){j,t}s?(x)":["pnpm lint"],"*.md":["pnpm lint:md"]},"packageManager":"pnpm@8.14.1","prettier":"@jjangga0214/prettier-config","devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@jjangga0214/commitlint-config":"^1.1.0","@jjangga0214/eslint-config":"^5.1.0","@jjangga0214/jest-config":"^5.2.0","@jjangga0214/markdownlint-config":"^1.1.0","@jjangga0214/prettier-config":"^3.1.0","@jjangga0214/tsconfig":"^4.0.0","@swc/core":"^1.3.101","@swc/helpers":"^0.5.3","@swc/jest":"^0.2.29","@types/jest":"^29.5.11","@types/node":"16","@types/semver":"^7.5.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dirname-filename-esm":"^1.1.1","dotenv-cli":"^2.0.1","eslint":"^8.56.0","execa":"^7.2.0","husky":"^7.0.0","jest":"^29.5.0","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.38.0","nodemon":"^1.19.2","octokit":"^3.1.0","prettier":"^3.1.1","read-pkg":"^9.0.1","semver":"^7.5.4","shx":"^0.3.2","ts-node":"^10.9.2","ts-node-dev":"^2.0.0","typescript":"^5.3.3","upath":"^2.0.1","verdaccio":"^4.3.0"},"dependencies":{"axios":"^1.6.0","chalk-template":"^1.1.0"},"exports":"./dist/index.js","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint":"eslint --fix","lint:md":"markdownlint --fix","lint:all":"pnpm lint . && pnpm lint:md .","test":"cross-env NODE_OPTIONS=--experimental-vm-modules NODE_NO_WARNINGS=1 jest","build":"shx rm -rf dist/* && tsc -p tsconfig.build.json","build:watch":"tsc -p tsconfig.build.json -w","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- node --no-warnings --loader ts-node/esm","start":"node dist/index.js"},"_id":"hasura-cli@2.36.2","_integrity":"sha512-sB9Mu+wDtBQzUoupK6SkZppNQktoZt3oY1w3/t/KXf4+x/I3CG2lV7IhC9ZBrZoNoI93fiLLE3blhmxokOmOIw==","_resolved":"/private/var/folders/9_/f366l2_j4lz9x386v5n6sknh0000gn/T/49206b28703887013155d27363008d98/hasura-cli-2.36.2.tgz","_from":"file:hasura-cli-2.36.2.tgz","_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-sB9Mu+wDtBQzUoupK6SkZppNQktoZt3oY1w3/t/KXf4+x/I3CG2lV7IhC9ZBrZoNoI93fiLLE3blhmxokOmOIw==","shasum":"78bcb2200d2c062c73d046ef357bfa95f895672b","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.36.2.tgz","fileCount":16,"unpackedSize":25442,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHbSbI1+zINhG0DPaH4YqHoNqsZorXBfpn9R2WqtMSmyAiByXxCMEFRhnHNHxAv6QuiJ46HamEF2r1VUNdJlUo518Q=="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.36.2_1711330621361_0.07971186907401817"},"_hasShrinkwrap":false},"2.37.0-beta.1":{"name":"hasura-cli","version":"2.37.0-beta.1","license":"MIT","private":false,"engines":{"node":">=16"},"type":"module","lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.?({c,m}){j,t}s?(x)":["pnpm lint"],"*.md":["pnpm lint:md"]},"packageManager":"pnpm@8.14.1","prettier":"@jjangga0214/prettier-config","devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@jjangga0214/commitlint-config":"^1.1.0","@jjangga0214/eslint-config":"^5.1.0","@jjangga0214/jest-config":"^5.2.0","@jjangga0214/markdownlint-config":"^1.1.0","@jjangga0214/prettier-config":"^3.1.0","@jjangga0214/tsconfig":"^4.0.0","@swc/core":"^1.3.101","@swc/helpers":"^0.5.3","@swc/jest":"^0.2.29","@types/jest":"^29.5.11","@types/node":"16","@types/semver":"^7.5.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dirname-filename-esm":"^1.1.1","dotenv-cli":"^2.0.1","eslint":"^8.56.0","execa":"^7.2.0","husky":"^7.0.0","jest":"^29.5.0","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.38.0","nodemon":"^1.19.2","octokit":"^3.1.0","prettier":"^3.1.1","read-pkg":"^9.0.1","semver":"^7.5.4","shx":"^0.3.2","ts-node":"^10.9.2","ts-node-dev":"^2.0.0","typescript":"^5.3.3","upath":"^2.0.1","verdaccio":"^4.3.0"},"dependencies":{"axios":"^1.6.0","chalk-template":"^1.1.0"},"exports":"./dist/index.js","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint":"eslint --fix","lint:md":"markdownlint --fix","lint:all":"pnpm lint . && pnpm lint:md .","test":"cross-env NODE_OPTIONS=--experimental-vm-modules NODE_NO_WARNINGS=1 jest","build":"shx rm -rf dist/* && tsc -p tsconfig.build.json","build:watch":"tsc -p tsconfig.build.json -w","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- node --no-warnings --loader ts-node/esm","start":"node dist/index.js"},"readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\nThe package is automatically published (always up-to-date) when a new version is released from Hasura's side.\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can simply install hasura-cli through npm, yarn or pnpm. Note that this package follows a version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently, there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@2.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=16.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `pnpm dev` or `pnpm dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\npnpm install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\npnpm dev\n# or\npnpm dev:no-respawn\n# or\npnpm dev:build\n```\n\n`pnpm dev` watches source code and restarts a process when a file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) watches, compiles and restarts.\n\n`pnpm dev:no-respawn` does the same thing except it does not restart.\n\n`pnpm dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and runs (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simultaneously.\n\nTo manually test compiled js, you can run\n\n```bash\npnpm build # compiles ts to js\npnpm start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\npnpm test # runs all tests (against \"*.test.ts\")\npnpm test:coverage # runs all tests and measures coverage\npnpm lint . # lint\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `pnpm build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing the package, the file `hasura` is just a dummy 'text' file, not a binary file. The file will be replaced with a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specific binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset URL\"_ and _\"downloading the asset from the URL\"_. `src/install.ts` exposes a function of _\"composing them and handling how the installation should be processed\"_. `src/index.ts` uses the function to install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","_id":"hasura-cli@2.37.0-beta.1","_integrity":"sha512-lljTLKtyA8wwb3ckc6quD6gt5BMQ8fEBSJ1ejiHiXUE6soh2W8Sc7L7m/ZvEh7swfQklS4cRkkBceO4odt6HCg==","_resolved":"/private/var/folders/9_/f366l2_j4lz9x386v5n6sknh0000gn/T/5fdbd4cb5ededdd02f2464bf4d8ca967/hasura-cli-2.37.0-beta.1.tgz","_from":"file:hasura-cli-2.37.0-beta.1.tgz","_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-lljTLKtyA8wwb3ckc6quD6gt5BMQ8fEBSJ1ejiHiXUE6soh2W8Sc7L7m/ZvEh7swfQklS4cRkkBceO4odt6HCg==","shasum":"46803c9ee6658aba828c4b652254795eb7851095","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.37.0-beta.1.tgz","fileCount":4,"unpackedSize":13611,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCZVpL9R7LkeBe5Ldxj6dcf6yeIWNIrM8RCzhMKviDI1AIhAMQua6K7EsPsDXAb1rMPXbLo9SKw8ehiF3xRhihMQie/"}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.37.0-beta.1_1711330783892_0.45916144490612076"},"_hasShrinkwrap":false},"2.36.3":{"name":"hasura-cli","version":"2.36.3","license":"MIT","private":false,"engines":{"node":">=16"},"type":"module","lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.?({c,m}){j,t}s?(x)":["pnpm lint"],"*.md":["pnpm lint:md"]},"packageManager":"pnpm@8.14.1","prettier":"@jjangga0214/prettier-config","devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@jjangga0214/commitlint-config":"^1.1.0","@jjangga0214/eslint-config":"^5.1.0","@jjangga0214/jest-config":"^5.2.0","@jjangga0214/markdownlint-config":"^1.1.0","@jjangga0214/prettier-config":"^3.1.0","@jjangga0214/tsconfig":"^4.0.0","@swc/core":"^1.3.101","@swc/helpers":"^0.5.3","@swc/jest":"^0.2.29","@types/jest":"^29.5.11","@types/node":"16","@types/semver":"^7.5.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dirname-filename-esm":"^1.1.1","dotenv-cli":"^2.0.1","eslint":"^8.56.0","execa":"^7.2.0","husky":"^7.0.0","jest":"^29.5.0","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.38.0","nodemon":"^1.19.2","octokit":"^3.1.0","prettier":"^3.1.1","read-pkg":"^9.0.1","semver":"^7.5.4","shx":"^0.3.2","ts-node":"^10.9.2","ts-node-dev":"^2.0.0","typescript":"^5.3.3","upath":"^2.0.1","verdaccio":"^4.3.0"},"dependencies":{"axios":"^1.6.0","chalk-template":"^1.1.0"},"exports":"./dist/index.js","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint":"eslint --fix","lint:md":"markdownlint --fix","lint:all":"pnpm lint . && pnpm lint:md .","test":"cross-env NODE_OPTIONS=--experimental-vm-modules NODE_NO_WARNINGS=1 jest","build":"shx rm -rf dist/* && tsc -p tsconfig.build.json","build:watch":"tsc -p tsconfig.build.json -w","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- node --no-warnings --loader ts-node/esm","start":"node dist/index.js"},"_id":"hasura-cli@2.36.3","_integrity":"sha512-plslG0j07whsOMtka0qeMvYAyVBtTrgG0TYt4Asw8ne7SaCmz8K99hL2/hp/JQB+KRim+AFzKeqnI690pHQXjg==","_resolved":"/private/var/folders/9_/f366l2_j4lz9x386v5n6sknh0000gn/T/f19749d2c2226ad25a9ce899b198457e/hasura-cli-2.36.3.tgz","_from":"file:hasura-cli-2.36.3.tgz","_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-plslG0j07whsOMtka0qeMvYAyVBtTrgG0TYt4Asw8ne7SaCmz8K99hL2/hp/JQB+KRim+AFzKeqnI690pHQXjg==","shasum":"b9be9d15b4c64ad4c68c6dd0d149f491325fe420","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.36.3.tgz","fileCount":4,"unpackedSize":13604,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDIc/UO56r+efutt2z0G1wJ2BlhTY6NFTHmZH2DfemSwgIhALOyAubbzPsYc9MUhUzuWadVHG1gTivN1/oORkNqFTiF"}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.36.3_1711330869015_0.36308861567299044"},"_hasShrinkwrap":false},"2.37.0":{"name":"hasura-cli","version":"2.37.0","license":"MIT","private":false,"engines":{"node":">=16"},"type":"module","lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.?({c,m}){j,t}s?(x)":["pnpm lint"],"*.md":["pnpm lint:md"]},"packageManager":"pnpm@8.14.1","prettier":"@jjangga0214/prettier-config","devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@jjangga0214/commitlint-config":"^1.1.0","@jjangga0214/eslint-config":"^5.1.0","@jjangga0214/jest-config":"^5.2.0","@jjangga0214/markdownlint-config":"^1.1.0","@jjangga0214/prettier-config":"^3.1.0","@jjangga0214/tsconfig":"^4.0.0","@swc/core":"^1.3.101","@swc/helpers":"^0.5.3","@swc/jest":"^0.2.29","@types/jest":"^29.5.11","@types/node":"16","@types/semver":"^7.5.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dirname-filename-esm":"^1.1.1","dotenv-cli":"^2.0.1","eslint":"^8.56.0","execa":"^7.2.0","husky":"^7.0.0","jest":"^29.5.0","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.38.0","nodemon":"^1.19.2","octokit":"^3.1.0","prettier":"^3.1.1","read-pkg":"^9.0.1","semver":"^7.5.4","shx":"^0.3.2","ts-node":"^10.9.2","ts-node-dev":"^2.0.0","typescript":"^5.3.3","upath":"^2.0.1","verdaccio":"^4.3.0"},"dependencies":{"axios":"^1.6.0","chalk-template":"^1.1.0"},"exports":"./dist/index.js","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint":"eslint --fix","lint:md":"markdownlint --fix","lint:all":"pnpm lint . && pnpm lint:md .","test":"cross-env NODE_OPTIONS=--experimental-vm-modules NODE_NO_WARNINGS=1 jest","build":"shx rm -rf dist/* && tsc -p tsconfig.build.json","build:watch":"tsc -p tsconfig.build.json -w","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- node --no-warnings --loader ts-node/esm","start":"node dist/index.js"},"_id":"hasura-cli@2.37.0","_integrity":"sha512-EBQ0xp+yL4KEAAtcrunyDaS7mNwoPk25oc3H3nIsBCk+m8HFN+YwDfyjKTWEZck6ibNloGtgDg6NxQ0B4fXXyg==","_resolved":"/private/var/folders/9_/f366l2_j4lz9x386v5n6sknh0000gn/T/6e5c48cf39a480bec4c4270a828fc61e/hasura-cli-2.37.0.tgz","_from":"file:hasura-cli-2.37.0.tgz","_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-EBQ0xp+yL4KEAAtcrunyDaS7mNwoPk25oc3H3nIsBCk+m8HFN+YwDfyjKTWEZck6ibNloGtgDg6NxQ0B4fXXyg==","shasum":"3569cdfa7b58b25aed739d2f2b8d0692ae0a4977","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.37.0.tgz","fileCount":4,"unpackedSize":13604,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGXCKOJv1hcgjc67dwhRtjHgd6q404Y5iuVZOmbmf6pBAiEA9/XusBXa5hAbln8bEVy5I6r57Z69qvEE3gaJxcgtiqE="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.37.0_1711330907329_0.2616678304355975"},"_hasShrinkwrap":false},"2.37.1":{"name":"hasura-cli","version":"2.37.1","license":"MIT","private":false,"engines":{"node":">=16"},"type":"module","lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.?({c,m}){j,t}s?(x)":["pnpm lint"],"*.md":["pnpm lint:md"]},"packageManager":"pnpm@8.14.1","prettier":"@jjangga0214/prettier-config","devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@jjangga0214/commitlint-config":"^1.1.0","@jjangga0214/eslint-config":"^5.1.0","@jjangga0214/jest-config":"^5.2.0","@jjangga0214/markdownlint-config":"^1.1.0","@jjangga0214/prettier-config":"^3.1.0","@jjangga0214/tsconfig":"^4.0.0","@swc/core":"^1.3.101","@swc/helpers":"^0.5.3","@swc/jest":"^0.2.29","@types/jest":"^29.5.11","@types/node":"16","@types/semver":"^7.5.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dirname-filename-esm":"^1.1.1","dotenv-cli":"^2.0.1","eslint":"^8.56.0","execa":"^7.2.0","husky":"^7.0.0","jest":"^29.5.0","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.38.0","nodemon":"^1.19.2","octokit":"^3.1.0","prettier":"^3.1.1","read-pkg":"^9.0.1","semver":"^7.5.4","shx":"^0.3.2","ts-node":"^10.9.2","ts-node-dev":"^2.0.0","typescript":"^5.3.3","upath":"^2.0.1","verdaccio":"^4.3.0"},"dependencies":{"axios":"^1.6.0","chalk-template":"^1.1.0"},"exports":"./dist/index.js","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint":"eslint --fix","lint:md":"markdownlint --fix","lint:all":"pnpm lint . && pnpm lint:md .","test":"cross-env NODE_OPTIONS=--experimental-vm-modules NODE_NO_WARNINGS=1 jest","build":"shx rm -rf dist/* && tsc -p tsconfig.build.json","build:watch":"tsc -p tsconfig.build.json -w","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- node --no-warnings --loader ts-node/esm","start":"node dist/index.js"},"_id":"hasura-cli@2.37.1","_integrity":"sha512-hnbl26TpoppjEzYRr/LbQTg8i4zxel9gjAhrFV+OF8BsgNhfKhoYH4eVJ7z+8+pZKZLa9MGYnTb1IR5MWpg1AQ==","_resolved":"/private/var/folders/9_/f366l2_j4lz9x386v5n6sknh0000gn/T/6e90de5250de4a61f9dfe7c759fe98c8/hasura-cli-2.37.1.tgz","_from":"file:hasura-cli-2.37.1.tgz","_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-hnbl26TpoppjEzYRr/LbQTg8i4zxel9gjAhrFV+OF8BsgNhfKhoYH4eVJ7z+8+pZKZLa9MGYnTb1IR5MWpg1AQ==","shasum":"80a32e69d3458e5c8edb2faf76d580cec79e316e","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.37.1.tgz","fileCount":4,"unpackedSize":13604,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCm1now+OgfRd98ZssUX6wmTsrmZ2bsCn2+GlVJ2VaYugIhAOMhgAXO7q8wVhVUk5A+4kR01welU7MKrQgB0U6+5JSS"}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.37.1_1711330952961_0.3396764176923128"},"_hasShrinkwrap":false},"2.38.0-beta.1":{"name":"hasura-cli","version":"2.38.0-beta.1","license":"MIT","private":false,"engines":{"node":">=16"},"type":"module","lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.?({c,m}){j,t}s?(x)":["pnpm lint"],"*.md":["pnpm lint:md"]},"packageManager":"pnpm@8.14.1","prettier":"@jjangga0214/prettier-config","devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@jjangga0214/commitlint-config":"^1.1.0","@jjangga0214/eslint-config":"^5.1.0","@jjangga0214/jest-config":"^5.2.0","@jjangga0214/markdownlint-config":"^1.1.0","@jjangga0214/prettier-config":"^3.1.0","@jjangga0214/tsconfig":"^4.0.0","@swc/core":"^1.3.101","@swc/helpers":"^0.5.3","@swc/jest":"^0.2.29","@types/jest":"^29.5.11","@types/node":"16","@types/semver":"^7.5.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dirname-filename-esm":"^1.1.1","dotenv-cli":"^2.0.1","eslint":"^8.56.0","execa":"^7.2.0","husky":"^7.0.0","jest":"^29.5.0","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.38.0","nodemon":"^1.19.2","octokit":"^3.1.0","prettier":"^3.1.1","read-pkg":"^9.0.1","semver":"^7.5.4","shx":"^0.3.2","ts-node":"^10.9.2","ts-node-dev":"^2.0.0","typescript":"^5.3.3","upath":"^2.0.1","verdaccio":"^4.3.0"},"dependencies":{"axios":"^1.6.0","chalk-template":"^1.1.0"},"exports":"./dist/index.js","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint":"eslint --fix","lint:md":"markdownlint --fix","lint:all":"pnpm lint . && pnpm lint:md .","test":"cross-env NODE_OPTIONS=--experimental-vm-modules NODE_NO_WARNINGS=1 jest","build":"shx rm -rf dist/* && tsc -p tsconfig.build.json","build:watch":"tsc -p tsconfig.build.json -w","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- node --no-warnings --loader ts-node/esm","start":"node dist/index.js"},"readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\nThe package is automatically published (always up-to-date) when a new version is released from Hasura's side.\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can simply install hasura-cli through npm, yarn or pnpm. Note that this package follows a version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently, there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@2.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=16.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `pnpm dev` or `pnpm dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\npnpm install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\npnpm dev\n# or\npnpm dev:no-respawn\n# or\npnpm dev:build\n```\n\n`pnpm dev` watches source code and restarts a process when a file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) watches, compiles and restarts.\n\n`pnpm dev:no-respawn` does the same thing except it does not restart.\n\n`pnpm dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and runs (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simultaneously.\n\nTo manually test compiled js, you can run\n\n```bash\npnpm build # compiles ts to js\npnpm start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\npnpm test # runs all tests (against \"*.test.ts\")\npnpm test:coverage # runs all tests and measures coverage\npnpm lint . # lint\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `pnpm build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing the package, the file `hasura` is just a dummy 'text' file, not a binary file. The file will be replaced with a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specific binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset URL\"_ and _\"downloading the asset from the URL\"_. `src/install.ts` exposes a function of _\"composing them and handling how the installation should be processed\"_. `src/index.ts` uses the function to install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md","_id":"hasura-cli@2.38.0-beta.1","_integrity":"sha512-AInkBgiMdHfzqRnapDLR0x9AOwFdbjp0GKjaQ+pKLp9vxdmyjo4KHrOK7VGNcd4GqULwzjwr64IpYA57ytNEyA==","_resolved":"/private/var/folders/9_/f366l2_j4lz9x386v5n6sknh0000gn/T/3909a3924b2d0c63700930e7dbbd5816/hasura-cli-2.38.0-beta.1.tgz","_from":"file:hasura-cli-2.38.0-beta.1.tgz","_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-AInkBgiMdHfzqRnapDLR0x9AOwFdbjp0GKjaQ+pKLp9vxdmyjo4KHrOK7VGNcd4GqULwzjwr64IpYA57ytNEyA==","shasum":"fd8a52e497d72c990225e8263ce60100e4acf5cf","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.38.0-beta.1.tgz","fileCount":4,"unpackedSize":13611,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDpxCO39x5BQDmw8bFro9a3FjxlD28Q3NlwIAzZRCNPHgIgGqOasVxIyzcBGe2+UcUZPWGopW1j7I++69ab+4vN6lo="}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.38.0-beta.1_1711330998720_0.572753937386409"},"_hasShrinkwrap":false},"2.38.0":{"name":"hasura-cli","version":"2.38.0","license":"MIT","private":false,"engines":{"node":">=16"},"type":"module","lint-staged":{"hasura":["echo \"Error: Change to dummy file 'hasura' is blocked by default to prevent accidental commit of binary. If you want to change its content, try again by ignoring husky.\" && exit 1"],"*.?({c,m}){j,t}s?(x)":["pnpm lint"],"*.md":["pnpm lint:md"]},"packageManager":"pnpm@8.14.1","prettier":"@jjangga0214/prettier-config","devDependencies":{"@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@jjangga0214/commitlint-config":"^1.1.0","@jjangga0214/eslint-config":"^5.1.0","@jjangga0214/jest-config":"^5.2.0","@jjangga0214/markdownlint-config":"^1.1.0","@jjangga0214/prettier-config":"^3.1.0","@jjangga0214/tsconfig":"^4.0.0","@swc/core":"^1.3.101","@swc/helpers":"^0.5.3","@swc/jest":"^0.2.29","@types/jest":"^29.5.11","@types/node":"16","@types/semver":"^7.5.0","commitizen":"^4.0.3","concurrently":"^6.0.0","cross-env":"^6.0.0","cz-conventional-changelog":"^3.0.2","dirname-filename-esm":"^1.1.1","dotenv-cli":"^2.0.1","eslint":"^8.56.0","execa":"^7.2.0","husky":"^7.0.0","jest":"^29.5.0","jest-junit":"^7.0.0","lint-staged":"^11.1.1","markdownlint-cli":"^0.38.0","nodemon":"^1.19.2","octokit":"^3.1.0","prettier":"^3.1.1","read-pkg":"^9.0.1","semver":"^7.5.4","shx":"^0.3.2","ts-node":"^10.9.2","ts-node-dev":"^2.0.0","typescript":"^5.3.3","upath":"^2.0.1","verdaccio":"^4.3.0"},"dependencies":{"axios":"^1.6.0","chalk-template":"^1.1.0"},"exports":"./dist/index.js","bin":{"hasura":"hasura"},"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"homepage":"https://github.com/jjangga0214/hasura-cli","author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"scripts":{"postinstall":"node dist/index.js","husky-skip":"cross-env HUSKY_SKIP_HOOKS=1","verdaccio":"verdaccio --config ./verdaccio/conf/default.yaml","lint":"eslint --fix","lint:md":"markdownlint --fix","lint:all":"pnpm lint . && pnpm lint:md .","test":"cross-env NODE_OPTIONS=--experimental-vm-modules NODE_NO_WARNINGS=1 jest","build":"shx rm -rf dist/* && tsc -p tsconfig.build.json","build:watch":"tsc -p tsconfig.build.json -w","dev:build":"concurrently 'tsc -w -i' 'nodemon dist/index.js'","dev:no-respawn":"dotenv -- ts-node-dev --transpileOnly src/index.ts","dev":"dotenv -- ts-node-dev --transpileOnly --respawn src/index.ts","ts":"dotenv -- node --no-warnings --loader ts-node/esm","start":"node dist/index.js"},"_id":"hasura-cli@2.38.0","_integrity":"sha512-TWi02pJJdZTqYtdG+vl+WhumiqlrysDMBkL4RDcfXpfG2aJbY0QML06oWH+x56G2DFfsT262gk09aJUeAhKdqg==","_resolved":"/private/var/folders/9_/f366l2_j4lz9x386v5n6sknh0000gn/T/db87494f407c0215eed10d958cc3be51/hasura-cli-2.38.0.tgz","_from":"file:hasura-cli-2.38.0.tgz","_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-TWi02pJJdZTqYtdG+vl+WhumiqlrysDMBkL4RDcfXpfG2aJbY0QML06oWH+x56G2DFfsT262gk09aJUeAhKdqg==","shasum":"ae666c10cc3de3c1506640e66744eef5a631e8ce","tarball":"https://registry.npmjs.org/hasura-cli/-/hasura-cli-2.38.0.tgz","fileCount":4,"unpackedSize":13604,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCM3VG2RpUmMhpb8vqHbgg43BxSao0jx15a2McMLZpTJgIhAJ5ODBM9CRNyr58xVyYpw3GJfGuVvceBN7nFqRhAQ05U"}]},"_npmUser":{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"},"directories":{},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hasura-cli_2.38.0_1711331057872_0.22936812224944036"},"_hasShrinkwrap":false}},"time":{"created":"2019-09-29T06:37:20.935Z","1.0.0-alpha01":"2019-09-29T06:37:21.397Z","modified":"2024-03-25T01:44:18.448Z","1.0.0-alpha02":"2019-09-29T06:47:09.328Z","1.0.0-alpha03":"2019-09-29T08:15:18.050Z","1.0.0-alpha04":"2019-09-29T09:02:48.497Z","1.0.0-alpha05":"2019-09-29T11:14:28.729Z","1.0.0-alpha06":"2019-09-29T11:28:00.312Z","1.0.0-alpha07":"2019-09-29T11:37:49.881Z","1.0.0-alpha08":"2019-09-29T11:43:49.484Z","1.0.0-alpha09":"2019-09-29T11:48:10.521Z","1.0.0-alpha10":"2019-09-29T12:08:02.766Z","1.0.0-alpha11":"2019-09-29T12:15:20.547Z","1.0.0-alpha12":"2019-09-29T13:10:18.988Z","1.0.0-alpha14":"2019-09-29T13:10:40.531Z","1.0.0-alpha13":"2019-09-29T13:11:39.713Z","1.0.0-alpha15":"2019-09-29T13:15:16.200Z","1.0.0-alpha16":"2019-09-29T13:15:22.222Z","1.0.0-alpha22":"2019-09-29T13:27:42.146Z","1.0.0-alpha17":"2019-09-29T13:27:57.643Z","1.0.0-alpha18":"2019-09-29T13:28:15.672Z","1.0.0-alpha20":"2019-09-29T13:28:39.431Z","1.0.0-alpha19":"2019-09-29T13:28:54.840Z","1.0.0-alpha23":"2019-09-29T13:29:31.046Z","1.0.0-alpha21":"2019-09-29T13:31:22.886Z","1.0.0-alpha24":"2019-09-30T01:02:05.643Z","1.0.0-alpha25":"2019-09-30T01:19:18.328Z","1.0.0-alpha26":"2019-09-30T01:42:19.568Z","1.0.0-alpha27":"2019-09-30T02:12:06.994Z","1.0.0-alpha28":"2019-09-30T02:36:44.475Z","1.0.0-alpha29":"2019-09-30T02:43:59.484Z","1.0.0-alpha30":"2019-09-30T03:47:22.803Z","1.0.0-alpha31":"2019-09-30T04:03:58.808Z","1.0.0-alpha32":"2019-09-30T04:11:03.847Z","1.0.0-alpha33":"2019-09-30T04:17:52.585Z","1.0.0-alpha34":"2019-09-30T04:27:57.821Z","1.0.0-alpha35":"2019-09-30T05:34:52.713Z","1.0.0-alpha36":"2019-09-30T05:42:08.229Z","1.0.0-alpha37":"2019-09-30T05:49:09.438Z","1.0.0-alpha38":"2019-09-30T06:11:17.230Z","1.0.0-alpha39":"2019-09-30T06:33:22.219Z","1.0.0-alpha40":"2019-09-30T06:46:38.143Z","1.0.0-alpha41":"2019-09-30T06:55:02.930Z","1.0.0-alpha42":"2019-09-30T07:46:47.502Z","1.0.0-alpha43":"2019-09-30T08:16:00.565Z","1.0.0-alpha44":"2019-09-30T08:31:31.309Z","1.0.0-alpha45":"2019-09-30T08:50:49.060Z","1.0.0-beta.1":"2019-09-30T09:32:39.862Z","1.0.0-beta.2":"2019-09-30T09:40:35.661Z","1.0.0-beta.3":"2019-09-30T11:43:02.042Z","1.0.0-beta.4":"2019-09-30T12:21:30.281Z","1.0.0-beta.5":"2019-09-30T12:27:45.597Z","1.0.0-beta.6":"2019-09-30T12:43:01.982Z","1.0.0-beta.7":"2019-10-11T07:19:19.123Z","1.0.0-beta.8":"2019-10-28T06:25:32.863Z","1.0.0-beta.9":"2019-11-03T04:44:08.688Z","1.0.0-beta.10":"2019-11-15T02:35:59.803Z","1.0.0-rc.1":"2019-12-05T01:57:00.969Z","1.0.0":"2019-12-22T13:19:34.421Z","1.1.0-beta.1":"2020-01-16T16:29:09.885Z","1.1.0-beta.2":"2020-01-16T16:35:04.335Z","1.1.0-beta.3":"2020-02-14T14:41:11.252Z","1.1.0":"2020-02-20T01:45:44.011Z","1.2.0-beta.1":"2020-02-26T08:01:14.661Z","1.2.0-beta.2":"2020-03-06T05:18:03.996Z","1.1.1":"2020-03-30T09:21:18.520Z","1.2.0-beta.3":"2020-04-02T06:29:49.381Z","1.2.0-beta.4":"2020-04-20T01:07:00.084Z","1.2.0-beta.5":"2020-04-25T01:20:32.013Z","1.2.0":"2020-04-30T11:15:04.096Z","1.2.1":"2020-05-06T02:50:18.456Z","1.2.2":"2020-06-04T09:06:50.196Z","1.3.0-beta.1":"2020-06-12T23:29:36.150Z","1.3.0-beta.2":"2020-06-17T11:56:31.390Z","1.3.0-beta.3":"2020-06-30T00:32:15.092Z","1.3.0-beta.4":"2020-07-05T00:41:23.517Z","1.3.0":"2020-07-21T09:48:03.959Z","1.3.1-beta.1":"2020-08-14T02:32:02.997Z","1.3.1":"2020-08-23T01:11:38.081Z","1.3.2":"2020-09-22T12:08:33.125Z","1.3.3":"2020-11-18T01:28:53.020Z","1.3.4-beta.1":"2021-02-14T14:21:30.089Z","1.3.4-beta.2":"2021-02-15T08:08:50.444Z","1.4.0-alpha.1":"2021-02-15T08:26:32.774Z","1.3.4-beta.3":"2021-02-15T15:38:39.714Z","1.4.0-alpha.2":"2021-02-22T05:30:51.118Z","2.0.0-alpha.1":"2021-03-08T06:41:23.559Z","2.0.0-alpha.2":"2021-03-08T06:59:54.204Z","2.0.0-alpha.3":"2021-03-08T08:18:51.273Z","2.0.0-alpha.4":"2021-03-11T03:37:58.934Z","2.0.0-alpha.5":"2021-03-21T13:43:22.533Z","2.0.0-alpha.6":"2021-04-02T08:15:09.917Z","2.0.0-alpha.7":"2021-04-06T14:42:40.356Z","2.0.0-alpha.8":"2021-05-05T09:10:46.313Z","2.0.0-alpha.9":"2021-05-05T09:26:42.267Z","2.0.0-alpha.10":"2021-05-05T09:43:12.570Z","2.0.0-alpha.11":"2021-06-01T13:35:49.909Z","2.0.0-beta.1":"2021-06-03T08:06:58.610Z","2.0.0-beta.2":"2021-06-22T06:03:20.112Z","2.0.0":"2021-06-25T06:00:28.906Z","2.0.1":"2021-06-27T12:26:55.617Z","2.0.2":"2021-07-16T03:43:25.790Z","2.0.3":"2021-07-24T01:33:55.691Z","2.0.4":"2021-08-06T08:11:46.917Z","2.0.5":"2021-08-06T08:58:22.980Z","2.0.6":"2021-08-17T15:43:39.058Z","2.0.7":"2021-08-17T16:08:25.629Z","2.0.8":"2021-08-31T04:26:26.013Z","2.0.9":"2021-09-22T01:03:30.267Z","2.1.0-beta.1":"2021-10-02T10:34:24.576Z","2.0.10":"2022-01-03T04:31:46.069Z","2.1.0-beta.2":"2022-01-03T08:35:37.311Z","2.1.0-beta.3":"2022-01-03T09:04:02.786Z","2.1.0":"2022-01-03T11:36:54.860Z","2.1.1":"2022-01-04T02:43:29.129Z","2.2.0":"2022-02-09T00:22:13.321Z","2.3.0-beta.1":"2022-02-20T15:42:04.171Z","2.3.0-beta.2":"2022-04-08T05:46:09.259Z","2.2.1":"2022-04-08T05:49:15.684Z","2.2.2":"2022-04-08T05:55:22.383Z","2.3.0-beta.3":"2022-04-08T05:58:22.355Z","2.3.0":"2022-04-08T05:59:54.647Z","2.4.0-beta.1":"2022-04-08T06:00:54.090Z","2.3.1":"2022-04-08T06:02:16.959Z","2.4.0-beta.2":"2022-04-08T06:03:25.082Z","2.4.0-beta.3":"2022-04-08T06:05:03.065Z","2.4.0":"2022-04-08T09:15:40.169Z","2.5.0-beta.1":"2022-04-08T09:17:06.382Z","2.5.0":"2022-04-14T15:11:55.498Z","2.6.0-beta.1":"2022-04-14T15:12:56.959Z","2.5.1":"2022-04-27T06:55:00.317Z","2.6.0-beta.2":"2022-04-27T06:55:44.218Z","2.6.0":"2022-04-29T04:56:43.880Z","2.6.1":"2022-05-04T09:44:38.069Z","2.7.0-beta.1":"2022-05-13T02:56:44.156Z","2.7.0":"2022-05-29T02:50:34.933Z","2.8.0-beta.1":"2022-06-09T09:47:55.257Z","2.8.0":"2022-07-04T10:13:34.125Z","2.8.1":"2022-07-04T10:14:55.493Z","2.9.0-beta.1":"2022-07-04T10:16:01.592Z","2.8.2":"2022-07-04T10:17:13.887Z","2.8.3":"2022-07-04T10:18:05.490Z","2.8.4":"2022-07-10T01:37:22.563Z","2.9.0-beta.2":"2022-07-21T21:35:54.529Z","2.9.0-beta.3":"2022-07-21T21:39:00.882Z","2.9.0":"2022-07-28T11:11:57.155Z","2.10.0-beta.1":"2022-07-28T11:12:08.864Z","2.10.0":"2022-08-26T16:15:15.833Z","2.11.0-beta.1":"2022-08-26T16:16:15.877Z","2.10.1":"2022-08-26T16:16:54.498Z","2.11.0":"2022-09-20T10:47:14.461Z","2.12.0-beta.1":"2022-09-20T10:48:14.408Z","2.11.1":"2022-09-20T10:50:03.570Z","2.11.2":"2022-09-20T10:50:57.169Z","2.12.0":"2022-09-20T14:12:28.843Z","2.13.0-beta.1":"2022-09-27T07:49:55.007Z","2.13.0":"2022-10-22T04:06:01.457Z","2.14.0-beta.1":"2022-10-22T04:07:29.927Z","2.14.0-beta.2":"2022-11-03T08:54:36.216Z","2.13.1":"2022-11-03T09:02:07.636Z","2.14.0":"2022-11-03T09:03:12.720Z","2.15.0-beta.1":"2022-11-03T09:04:13.943Z","2.15.0":"2022-11-19T11:14:13.250Z","2.15.1":"2022-11-19T11:15:04.367Z","2.16.0-beta.1":"2023-01-04T07:50:35.687Z","2.10.2":"2023-01-04T07:51:36.406Z","2.11.3":"2023-01-04T07:53:10.867Z","2.12.1":"2023-01-04T07:53:48.666Z","2.13.2":"2023-01-04T07:54:25.097Z","2.14.1":"2023-01-04T07:55:23.946Z","2.15.2":"2023-01-04T07:56:16.424Z","2.16.0":"2023-01-04T07:57:18.847Z","2.16.1":"2023-01-04T07:57:48.722Z","2.17.0-beta.1":"2023-01-20T08:30:58.000Z","2.17.0":"2023-01-20T08:31:30.877Z","2.17.1":"2023-02-04T11:03:48.862Z","2.18.0-beta.1":"2023-02-04T11:04:26.913Z","2.18.0":"2023-03-08T05:14:14.144Z","2.19.0-beta.1":"2023-03-08T05:15:37.094Z","2.19.0":"2023-03-08T05:17:34.104Z","2.20.0-beta.1":"2023-03-08T05:18:30.270Z","2.20.0":"2023-03-08T05:21:20.742Z","2.11.5":"2023-03-15T10:04:31.370Z","2.20.1":"2023-03-15T10:05:34.243Z","2.21.0-beta.1":"2023-03-15T10:06:41.410Z","2.21.0":"2023-03-29T04:15:46.502Z","2.22.0-beta.1":"2023-03-29T04:16:09.019Z","2.22.0-beta.2":"2023-03-29T04:16:28.361Z","2.22.0":"2023-04-03T03:59:44.322Z","2.23.0-beta.1":"2023-04-25T07:23:01.137Z","2.22.1":"2023-04-25T07:23:49.007Z","2.23.0":"2023-04-25T07:26:36.408Z","2.24.0-beta.1":"2023-04-25T07:28:49.535Z","2.24.0":"2023-05-06T01:51:42.029Z","2.24.1":"2023-05-06T01:52:35.965Z","2.25.0-beta.1":"2023-05-06T01:53:33.439Z","2.25.0":"2023-05-17T02:58:04.536Z","2.11.6":"2023-06-04T23:44:10.762Z","2.26.0-beta.1":"2023-06-04T23:44:55.906Z","2.25.1":"2023-06-04T23:47:38.370Z","2.26.0":"2023-06-05T00:16:07.030Z","2.27.0-beta.1":"2023-06-05T00:17:09.215Z","2.11.7":"2023-06-24T00:48:39.544Z","2.27.0":"2023-06-24T00:49:38.645Z","2.28.0-beta.1":"2023-06-24T00:50:41.835Z","2.11.8":"2023-06-24T00:52:22.707Z","2.28.0":"2023-06-24T00:53:19.734Z","2.28.1":"2023-07-12T03:33:27.875Z","2.29.0-beta.1":"2023-07-12T03:34:14.659Z","2.28.2":"2023-07-12T03:34:55.718Z","2.29.0":"2023-07-12T03:35:24.936Z","2.11.9":"2023-07-12T03:36:00.564Z","2.29.1":"2023-07-12T03:36:37.899Z","2.30.0-beta.1":"2023-07-20T05:41:27.559Z","2.29.2":"2023-07-20T05:42:31.252Z","2.30.0":"2023-07-20T05:43:26.874Z","2.30.1":"2023-08-08T01:03:10.389Z","2.31.0-beta.1":"2023-08-08T01:03:48.849Z","2.31.0":"2023-08-08T01:04:33.725Z","2.32.0-beta.1":"2023-08-11T12:25:14.010Z","2.11.10":"2023-08-17T00:41:06.221Z","2.32.0":"2023-08-18T00:41:07.079Z","2.32.1":"2023-08-24T00:41:24.781Z","2.33.0-beta.1":"2023-08-24T00:41:46.792Z","2.33.0":"2023-08-31T00:43:02.476Z","2.33.1":"2023-09-02T00:40:45.522Z","2.32.2":"2023-09-06T00:42:30.902Z","2.33.2":"2023-09-06T00:42:51.338Z","2.34.0-beta.1":"2023-09-07T00:42:11.709Z","2.33.3":"2023-09-08T00:42:20.291Z","2.33.4":"2023-09-12T00:41:25.816Z","2.11.11":"2023-09-26T00:43:44.881Z","2.34.0":"2023-10-06T00:43:32.646Z","2.11.12":"2023-10-07T00:43:03.253Z","2.11.13":"2023-10-11T00:43:20.828Z","2.35.0":"2023-11-01T00:47:37.266Z","2.35.1":"2023-11-09T00:44:15.147Z","2.36.0-beta.1":"2023-12-02T00:44:56.444Z","2.36.0":"2023-12-13T00:46:41.545Z","2.35.2":"2023-12-13T00:47:00.574Z","2.35.3":"2023-12-20T00:38:04.124Z","2.36.1":"2023-12-20T00:38:24.321Z","2.36.2":"2024-03-25T01:37:01.535Z","2.37.0-beta.1":"2024-03-25T01:39:44.059Z","2.36.3":"2024-03-25T01:41:09.160Z","2.37.0":"2024-03-25T01:41:47.462Z","2.37.1":"2024-03-25T01:42:33.113Z","2.38.0-beta.1":"2024-03-25T01:43:18.846Z","2.38.0":"2024-03-25T01:44:18.038Z"},"maintainers":[{"name":"jjangga0214","email":"bnbcmindnpass@gmail.com"}],"description":"A package that automatically installs and wraps Hasura CLI binary in isolated manner","homepage":"https://github.com/jjangga0214/hasura-cli","keywords":["hasura","hasura-cli","hasura/cli","hasuracli","hasura/graphql-engine","hasura/graphql-engine/cli","hasura/graphql-engine-cli","hasura-graphql","hasura-graphql-engine","hasura-graphql-engine-cli","graphql-engine/cli","graphql-engine-cli","graphql","graphql-cli"],"repository":{"type":"git","url":"git+https://github.com/jjangga0214/hasura-cli.git"},"author":{"name":"Gil B. Chan","email":"bnbcmindnpass@gmail.com","url":"https://github.com/jjangga0214"},"bugs":{"url":"https://github.com/jjangga0214/hasura-cli/issues"},"license":"MIT","readme":"# ![hasura-cli](./docs/assets/hasura-cli.svg)\n\nAn npm package that automatically installs and wraps **Hasura CLI** binary in isolated manner\n\n[![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)\n[![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)\n[![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)\n[![npm download](https://img.shields.io/npm/dm/hasura-cli?style=flat-square&labelColor=black&label=npm%20download)](https://www.npmjs.com/package/hasura-cli)\n\nThe package is automatically published (always up-to-date) when a new version is released from Hasura's side.\n\n[![license](https://img.shields.io/badge/license-MIT-ff4081.svg?style=flat-square&labelColor=black)](./LICENSE)\n[![test](https://img.shields.io/badge/test-jest-7c4dff.svg?style=flat-square&labelColor=black)](./jest.config.js)\n[![code style:airbnb](https://img.shields.io/badge/code_style-airbnb-448aff.svg?style=flat-square&labelColor=black)](https://github.com/airbnb/javascript)\n[![code style:prettier](https://img.shields.io/badge/code_style-prettier-18ffff.svg?style=flat-square&labelColor=black)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-ffab00.svg?style=flat-square&labelColor=black)](https://conventionalcommits.org)\n[![Commitizen friendly](https://img.shields.io/badge/Commitizen-cz_conventional_changelog-dd2c00.svg?style=flat-square&labelColor=black)](http://commitizen.github.io/cz-cli/)\n![pr welcome](https://img.shields.io/badge/PRs-welcome-09FF33.svg?style=flat-square&labelColor=black)\n\n## Why?\n\nThe [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli), which is not this package, is a compiled binary originally written in go. But just installing it on your system could cause some problems.\n\n1. Difficult to use different hasura versions on multiple projects.\n2. Inconvenient to ensure every colleagues having same version installed.\n3. Manual installation not specified as npm devDependency.\n\n**hasura-cli** solves them. It automatically downloads the CLI and exposes the command `hasura`. Downloaded CLI would be isolated, making it only dedicated to the \"project\" that installed it. Of course, you can install it as global package as well.\n\n## Installation\n\nYou can simply install hasura-cli through npm, yarn or pnpm. Note that this package follows a version of the [**Original Hasura CLI**](https://github.com/hasura/graphql-engine/tree/master/cli). If you want to check its releases, go [here](https://github.com/hasura/graphql-engine/releases).\n\nCurrently, there are 3 npm tags (npm tags are different from versions), `latest`, `beta` and `alpha`. `latest` tag refers to Hasura's latest stable version(e.g. [![npm version](https://img.shields.io/npm/v/hasura-cli?style=flat-square&labelColor=black&label=version)](https://www.npmjs.com/package/hasura-cli)), while `beta` and `alpha`, respectively beta version(e.g. [![npm beta version](https://img.shields.io/npm/v/hasura-cli/beta?style=flat-square&labelColor=black&color=ffd900&label=beta)](https://www.npmjs.com/package/hasura-cli)) and alpha version(e.g. [![npm alpha version](https://img.shields.io/npm/v/hasura-cli/alpha?style=flat-square&labelColor=black&color=fedcba&&label=alpha)](https://www.npmjs.com/package/hasura-cli)).\n\nOf course, you can install it globally,\n\n```bash\nnpm install --global hasura-cli[@tag|@version]\n```\n\nor in a project.\n\n```bash\n# latest version from latest tag (Same as hasura-cli@latest)\nnpm install --save-dev hasura-cli\n\n# specific version\nnpm install --save-dev hasura-cli@2.0.0\n\n# latest version from beta tag\nnpm install --save-dev hasura-cli@beta\n\n# latest version from alpha tag\nnpm install --save-dev hasura-cli@alpha\n```\n\nThen you will be able to run hasura command.\n\nFor example,\n\n```bash\n# print hasura version\nnpx hasura version\n```\n\nOr configure npm scripts on package.json in the way you want.\n(tip. provide env vars like `$HASURA_GRAPHQL_ENDPOINT` or `$HASURA_GRAPHQL_ADMIN_SECRET`)\n\n```json\n{\n  \"scripts\": {\n    \"hasura\": \"hasura --project hasura --skip-update-check\",\n    \"hasura:console\": \"npm run hasura console\",\n    \"hasura:apply\": \"npm run hasura migrate apply\"\n  }\n}\n```\n\n## Support\n\nGenerally, it works on 64 bits architecture of any Linux, macOS, and Windows with node@>=16.\n\n## Development (Contribution)\n\n### Quick PR for new version\n\nIt's simple. Just update the `version` in [package.json](./package.json), then make a Pull Request. That's it!\n\n```jsonc\n{\n  \"name\": \"hasura-cli\",\n  \"version\": \"1.3.0\", // Patch this to \"1.3.1-beta.1\", for example.\n  \"license\": \"MIT\"\n  // ...\n}\n```\n\n### Note\n\nPlease read [NOTE.md](./docs/NOTE.md), before getting started.\n\n### Environment variables\n\nEnvironment variables are intended to be only used on development environment.\n\nFirst, create `.env` file, and configure it as you want.\n\n```bash\ncp .env.example .env\n```\n\nYou can simply populate the variables by executing `pnpm dev` or `pnpm dev:no-respawn`. Otherwise, you have to manually feed them (e.g. `dotenv -- <your command>`). That's because this project doesn't use [`dotenv`](https://github.com/motdotla/dotenv), but [`dotenv-cli`](https://github.com/entropitor/dotenv-cli). So, the application does not read `.env` by itself.\n\n#### `HASURA_CLI_INSTALL` (boolean)\n\nWhether `src/index.ts` would install the cli. You can set it `false` to prevent unwanted downloads.\n\n#### `HASURA_CLI_DEST_DIR` (string)\n\nA directory where Hasura CLI should be installed.\n\n#### `HASURA_CLI_DEST_FILENAME` (string)\n\nA file name of Hasura CLI.\n\n### Getting started\n\nInstall dependencies. Lifecycle script `postinstall` is only for clients who want to install the binary. So, ignore it with `--ignore-scripts` option. It should also be used on CI.\n\n```bash\npnpm install --ignore-scripts\n```\n\nOn development, you can run\n\n```bash\npnpm dev\n# or\npnpm dev:no-respawn\n# or\npnpm dev:build\n```\n\n`pnpm dev` watches source code and restarts a process when a file changes. It does not write compiled js to the file system. [ts-node-dev](https://github.com/whitecolor/ts-node-dev) watches, compiles and restarts.\n\n`pnpm dev:no-respawn` does the same thing except it does not restart.\n\n`pnpm dev:build` logically does the identical job at the high viewpoint. But it compiles (`tsc -w`) ts, writes js on file system, and runs (`nodemon`) js. [concurrently](https://github.com/kimmobrunfeldt/concurrently) runs `tsc` and `nodemon` simultaneously.\n\nTo manually test compiled js, you can run\n\n```bash\npnpm build # compiles ts to js\npnpm start # runs dist/index.js\n```\n\n### Other scripts\n\n```bash\npnpm test # runs all tests (against \"*.test.ts\")\npnpm test:coverage # runs all tests and measures coverage\npnpm lint . # lint\n```\n\n### How does this work?\n\nHere is a brief file system tree.\n\n```\nhasura-cli\n├── dist // to be generated by build process (e.g. `pnpm build`), and ignored by git\n├── hasura\n├── package.json\n└── src\n    ├── asset.ts\n    ├── index.ts\n    └── install.ts\n```\n\npackage.json exposes the command `hasura` as a symlink to the flie `hasura`. Only the directory `dist` and file `hasura` are packed as a package.\n\n```json\n{\n  \"bin\": {\n    \"hasura\": \"./hasura\"\n  },\n  \"files\": [\"dist\", \"hasura\"]\n}\n```\n\nHowever, when publishing the package, the file `hasura` is just a dummy 'text' file, not a binary file. The file will be replaced with a binary only when a client installs the package on Linux or macOS. On Windows, unlike Linux or macOS, the file `hasura` is to be removed, and a new file `hasura.exe` will be created. `postinstall` lifecycle hook executes `dist/index.js`, which would install the platform-specific binary.\n\n[The binaries](https://github.com/hasura/graphql-engine/releases) are hosted on GitHub as release assets. `src/asset.ts` exposes functions of _\"getting GitHub asset URL\"_ and _\"downloading the asset from the URL\"_. `src/install.ts` exposes a function of _\"composing them and handling how the installation should be processed\"_. `src/index.ts` uses the function to install the asset with some additional control.\n\n## License\n\n[MIT License](LICENSE). Copyright &copy; 2019, GIL B. Chan <[bnbcmindnpass@gmail.com](mailto:bnbcmindnpass@gmail.com)>\n","readmeFilename":"README.md"}