Socket
Socket
Sign inDemoInstall

stellate

Package Overview
Dependencies
Maintainers
2
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stellate

The CLI you need to work with Stellate from your CLI. See https://docs.stellate.co/docs/cli for the complete documentation.


Version published
Weekly downloads
4K
decreased by-11.31%
Maintainers
2
Weekly downloads
 
Created
Source

Stellate CLI

The CLI you need to work with Stellate from your CLI. See https://docs.stellate.co/docs/cli for the complete documentation.

Commands

login    Authenticate the CLI
init     Setup a new Stellate service
pull     Pull the latest gateway config to the local stellate config file
ls       List all apps
push     Push the latest changes from stellate config file
check    Check for breaking changes to your schema (BETA)
serve    Use your local backend with Stellate’s GraphQL Edge Cache (BETA)
subset   Prints the subset of your schema according to the configured schema view (BETA)

every one of these can be suffixed with --help for additional information.

Authentication

The CLI will handle authentication automatically when necessary by opening a browser tab to create a API token. This token will be stored in the ~/.stellate folder.

Installation

To install our dependencies

yarn

Building

To build the output

yarn build

Use the CLI locally

Building the CLI will create a file in build/index.js, you can run that file in Node.js to use the CLI:

node ./build/index.js

For a more convenient usage you can also link the package by running npm link. This should make the stellate command available in your shell.

Environments

By default the CLI will interact with the production API. You can set an environment variable to point the CLI at different endpoints:

  • STELLATE_ENDPOINT=staging will point the CLI at the staging API
  • STELLATE_ENDPOINT=local will point the CLI at the local API running at http://localhost:3001

The CLI will create different tokens for different environments. The files in the ~/.stellate folder are prefixed with the value of STELLATE_ENDPOINT in order to persist multiple tokens at the same time.

FAQs

Package last updated on 05 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc