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

ntl-focal-migrate

v0.0.1

Published

Find all your sites that don’t use the new Focal build image and migrate them.

Downloads

5

Readme

Bulk Migrate Netlify Sites to Use the Focal Build Image

This is a small CLI to allow you to migrate all your sites to the Focal build image, which needs to be updated by September 19.

Usage

This CLI makes multiple requests to the Netlify API, so it can take a few seconds to complete. Please be patient!

First, check which sites are not running the Focal image on your account:

npx ntl-focal-migrate --list --account "Your Account Name"

Next, update the build settings for your site with this command:

npx ntl-focal-migrate --update --account "Your Account Name"

Please note! The --account flag takes the full account name string as it appears on app.netlify.com. Without this flag, all of your sites across all orgs will be updated. If you're only a member of one org, this is no problem. If you're in multiple orgs, make sure you don't accidentally change someone else's site settings by mistake!

To do a few updates at a time, use the --limit flag

To make sure things are working as expected, you can batch update a few sites at a time by setting a --limit flag:

npx ntl-focal-migrate --update --account "Your Account Name" --limit 5

This will cause the CLI to update 5 sites at a time. This is useful if you want to verify that updated sites still build before changing everything.

API Reference

❯ npx ntl-focal-migrate --help

   USAGE

  $ ntl-focal-migrate <command> [option]

   COMMANDS

  help  Print help info

   OPTIONS

  -c, --clear    Clear the console Default: false
  --noClear      Don't clear the console Default: false
  -d, --debug    Print debug info Default: false
  --account      Filter sites to a certain account Default: false
  --list         List sites that need to upgrade Default: false
  --limit        Limit the number of sites to list or update. Default: Infinity
  --update       Update all sites to the Focal build image Default: false
  -v, --version  Print CLI version Default: false
  **```**