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

@northflank/cli

v0.9.23

Published

Provides a command-line interface to the Northflank platform.

Downloads

468

Readme

Northflank CLI

Provides a command-line interface (CLI) to the Northflank platform.

Visit our website www.northflank.com

Full documentation on https://northflank.com/docs/v1/api/use-the-cli

Also use the Northflank js-client: https://www.npmjs.com/package/@northflank/js-client

Please don’t hesitate to get in touch with us if you have a query or want to give some feedback on https://northflank.com/contact or email us at [email protected].

Installation

Install with npm i @northflank/cli -g or yarn global add @northflank/cli.

This allows to use the CLI globally from the command line.

To use without installation, run npx @northflank/cli

Usage

The command northflank help provides useful information in navigating the various commands of the CLI.

Login

Run the login command to connect the CLI to your northflank account:

northflank login

You will be asked to provide an API token. The token can be created using the Northflank web interface: Account Settings > API > Tokens > Create API token.

This creates a context, which will be used as a default for further use of the CLI.

Having logged in, the CLI is ready to be used.

Examples

  • Listing services in a project: northflank list services
  • Getting detailed information about a service: northflank get service
  • Scaling a service: northflank scale service
  • Creating a combined service: northflank create service combined

Contexts

Contexts can be used to cache auth info, default projects and services:

  • northflank contexts use project
  • northflank contexts use service
  • List all context and defaults: northflank contexts list
  • Switch between contexts: northflank context use

Forwarding Northflank Services and Addons

Northflank services and addons can be exposed locally using the northflank forward command. Examples:

  • sudo northflank forward all
  • sudo northflank forward addon --addonId <addon-id>
  • sudo northflank forward service --serviceId <service-id>

Please note that this command requires root/admin privilges

Interactive Mode

The CLI will ask for the required information when executing a command if the information is not provided by command line arguments or input files. This is done in a beginner-friendly question-answer style of interacting and allows for CLI exploration.

After having provided all required information, the user can choose to run through the questions again or edit the final command payload for full flexibility. The request can also be saved to a file and be used in the future using the --file <file-path> flag.