npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@hgraph/cli

v1.5.5

Published

Hypergraph commands

Downloads

24

Readme

Hypergraph CLI

hypergraph is a command-line interface (CLI) tool designed to facilitate various tasks related to project management and deployment using the Hypergraph platform. Below is a comprehensive guide outlining available commands and their options.

Install

Using npm:

npm install @hgraph/cli -g

Usage

hypergraph <auth|build|checkout|collaborator|config|create|deploy|gcloud|generate|project|save> [--help] [--doc]

Commands

  • auth: Commands for managing authentication and access.
  • build: Build a project.
  • checkout: Checkout a project.
  • collaborator: Administer project collaborators and permissions.
  • config: View or update configuration.
  • create: Create a package and other resources.
  • deploy: Deploy a project.
  • gcloud: Configure and install tools for Google Cloud.
  • generate: Generate project models and resolvers using AI.
  • project: Manage your projects.
  • save: Save a source file to a given project.

hypergraph auth

Commands for managing authentication and access.

hypergraph auth login

Access your Hypergraph account by logging in.

hypergraph auth login [--provider=<GOOGLE|GITHUB>]

Options:

  • --provider=<GOOGLE|GITHUB>: Authenticate using Google or Github credentials.

hypergraph auth logout

Sign out of your account.

hypergraph auth logout

hypergraph auth user

Display information of the currently logged-in user.

hypergraph auth user

hypergraph build

Build a project.

hypergraph build --environment=<string> [--api=<string>] [--db-port=<number>] [--clean]

Options:

  • --environment=<string> (Required): Specify the project environment.
  • --api=<string>: List all API services in the format "name:port" for local exposure.
  • --db-port=<number>: Expose the database through a specified port, if defined.
  • --clean: Perform a clean build by removing previous environments, cache, and config.

hypergraph checkout

Checkout a project.

hypergraph checkout [--project-id=<string>] [--skip-cache]

Options:

  • --project-id=<string>: Specify the ID of the project to checkout.
  • --skip-cache: Disable cache (enabled by default).

hypergraph collaborator

Administer project collaborators and permissions.

hypergraph collaborator add

Add a collaborator to the project.

hypergraph collaborator add [--project-id=<string>]

Options:

  • --project-id=<string>: Specify the ID of the project.

hypergraph collaborator list

Display contributors within a project.

hypergraph collaborator list [--project-id=<string>]

Options:

  • --project-id=<string>: Project ID.

hypergraph collaborator remove

Remove a collaborator from the project.

hypergraph collaborator remove [--project-id=<string>]

Options:

  • --project-id=<string>: Project ID.

hypergraph config

View or update configuration.

hypergraph config remote

View or update remote server URL.

hypergraph config remote [url]

Arguments:

  • url: Server URL.

hypergraph create

Create a package and other resources.

hypergraph create package

Create a package.

hypergraph create package [name]

Arguments:

  • name: Name of the package.

hypergraph deploy

Deploy a project.

hypergraph deploy --environment=<string> [--create] [--clean]

Options:

  • --environment=<string> (Required): Specify the deployment environment.
  • --create: Create missing resources like cluster, container registry, and certificates as needed.
  • --clean: Perform a clean build by removing previous environments, cache, and config.

hypergraph gcloud

Configure and install tools for Google Cloud.

hypergraph gcloud setup

Configure the Google Cloud environment.

hypergraph gcloud setup --environment=<string>

Options:

  • --environment=<string> (Required): Select the target environment.

hypergraph gcloud install

Install all required libraries for Google Cloud.

hypergraph gcloud install --environment=<string>

Options:

  • --environment=<string> (Required): Specify the target environment.

hypergraph generate

Generate project models and resolvers using AI.

hypergraph generate [--project-id=<string>]

Options:

  • --project-id=<string>: Specify the ID of the project.

hypergraph project

Manage your projects.

hypergraph project create

Create a project.

hypergraph project create [project-name]

Arguments:

  • project-name: Name of the project.

hypergraph project list

List all projects.

hypergraph project list

hypergraph project remove

Remove a project.

hypergraph project remove [--project-id=<string>]

Options:

  • --project-id=<string>: ID of the project to be removed.

hypergraph save

Save a source file to a given project.

hypergraph save <source-file> [--project-id=<string>]

Arguments:

  • source-file: Source file(s) to upload. You may use glob patterns.

Options:

  • --project-id=<string>: Project ID in Hypergraph.