# Hive CLI (Command Line Interface) [Hive](https://the-guild.dev/graphql/hive) is a fully open-source schema registry, analytics, metrics and gateway for [GraphQL federation](https://the-guild.dev/graphql/hive/federation) and other GraphQL APIs. --- A CLI util to manage and control your Hive. [![Version](https://img.shields.io/npm/v/@graphql-hive/cli.svg)](https://npmjs.org/package/@graphql-hive/cli) ## Installation ### NodeJS If you are running a JavaScript/NodeJS project, you can install Hive CLI from the `npm` registry: ``` pnpm install -D @graphql-hive/cli yarn add -D @graphql-hive/cli npm install -D @graphql-hive/cli ``` > We recommend installing Hive CLI as part of your project, under `devDependencies`, instead of > using a global installation. ### Binary If you are running a non-JavaScript project, you can download the prebuilt binary of Hive CLI using the following command: ```bash curl -sSL https://graphql-hive.com/install.sh | sh ``` ## Commands - [`hive app:create FILE`](#hive-appcreate-file) - [`hive app:publish`](#hive-apppublish) - [`hive artifact:fetch`](#hive-artifactfetch) - [`hive dev`](#hive-dev) - [`hive help [COMMAND]`](#hive-help-command) - [`hive introspect LOCATION`](#hive-introspect-location) - [`hive operations:check FILE`](#hive-operationscheck-file) - [`hive schema:check FILE`](#hive-schemacheck-file) - [`hive schema:delete SERVICE`](#hive-schemadelete-service) - [`hive schema:fetch [ACTIONID]`](#hive-schemafetch-actionid) - [`hive schema:publish FILE`](#hive-schemapublish-file) - [`hive update [CHANNEL]`](#hive-update-channel) - [`hive whoami`](#hive-whoami) ## `hive app:create FILE` create an app deployment ``` USAGE $ hive app:create FILE --name --version [--debug] [--registry.endpoint ] [--registry.accessToken ] ARGUMENTS FILE Path to the persisted operations mapping. FLAGS --debug Whether debug output for HTTP calls and similar should be enabled. --name= (required) app name --registry.accessToken= registry access token --registry.endpoint= registry endpoint --version= (required) app version DESCRIPTION create an app deployment ``` _See code: [dist/commands/app/create.js](https://github.com/graphql-hive/platform/blob/v0.37.0/dist/commands/app/create.js)_ ## `hive app:publish` publish an app deployment ``` USAGE $ hive app:publish --name --version [--registry.endpoint ] [--registry.accessToken ] FLAGS --debug Whether debug output for HTTP calls and similar should be enabled. --name= (required) app name --registry.accessToken= registry access token --registry.endpoint= registry endpoint --version= (required) app version DESCRIPTION publish an app deployment ``` _See code: [dist/commands/app/publish.js](https://github.com/graphql-hive/platform/blob/v0.37.0/dist/commands/app/publish.js)_ ## `hive artifact:fetch` fetch artifacts from the CDN ``` USAGE $ hive artifact:fetch --artifact sdl|supergraph|metadata|services|sdl.graphql|sdl.graphqls [--cdn.endpoint ] [--cdn.accessToken ] [--outputFile ] FLAGS --artifact=