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

nuxthub

v0.7.7

Published

Interface with the NuxtHub platform from the command line.

Downloads

2,211

Readme

NuxtHub CLI

Command Line Interface for the NuxtHub Admin.

Installation

Install the package globally:

npm install -g nuxthub

Or use npx to run the CLI without installing it:

npx nuxthub <command>

Usage

USAGE nuxthub init|deploy|link|unlink|open|manage|login|logout|logs|whoami

COMMANDS

    init      Initialize a fresh NuxtHUb project, alias of nuxi init -t hub.  
  deploy      Deploy your project to NuxtHub.                                   
 preview      Preview your project locally (using wrangler pages dev).   
    link      Link a local directory to a NuxtHub project.                      
  unlink      Unlink a local directory from a NuxtHub project.                  
    open      Open in browser the project's URL linked to the current directory.
  manage      Open in browser the NuxtHub URL for a linked project.             
   login      Authenticate with NuxtHub.                                        
  logout      Logout the current authenticated user.                            
    logs      Display the logs of a deployment.                                 
  whoami      Shows the username of the currently logged in user.
  database    Manage database migrations.               

Use nuxthub <command> --help for more information about a command.

Deploy

To deploy your project with NuxtHub, use the nuxthub deploy command. This will build your project and deploy it to your Cloudflare account with zero-configuration.

# Deploy to production or preview based on your current branch
nuxthub deploy

# Deploy to production
nuxthub deploy --production

# Deploy to preview
nuxthub deploy --preview

See how to deploy with a GitHub action.

https://github.com/user-attachments/assets/9d7d9206-1ee3-4f8f-a29d-8b9dd09b9913

Preview before deploy

To preview your project locally, you can use the nuxthub preview command. This will temporarily generate a wrangler.toml file and run wrangler pages dev to preview your project.

nuxthub preview

Current limitations:

  • The --remote flag is not supported
  • hubAI() will ask you connect within the terminal with wrangler
  • hubBrowser() is not supported as not supported by wrangler pages dev

Open in browser

To open your project in the browser, you can use the nuxthub open command. This will open the URL of your project in the default browser.

# Open the production or preview deployment based on your current branch
nuxthub open

# Open the production deployment
nuxthub open --production

# Open the latest preview deployment
nuxthub open --preview

Open the project admin

To open your project's admin in the browser, you can use the nuxthub manage command. This will open the NuxtHub admin URL of your project in the default browser.

nuxthub manage

Debug

To debug the CLI, you can use the DEBUG=1 environment variable. This will print the API call made and explicit errors.

DEBUG=1 nuxthub <command>

License

Apache 2.0