GithubHelp home page GithubHelp logo

ntl-focal-migrate's Introduction

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"

Don't know your account name? Run the following command.

If you're signed into multiple teams, make sure to read the note at the next step.

netlify status

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
  **```**


ntl-focal-migrate's People

Contributors

jlengstorf avatar tomrutgers avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

ntl-focal-migrate's Issues

Finds no sites.

Tried running this without success:

➜  log git:(master) ✗ npx ntl-focal-migrate --list --account "richard-littauer"

 ntl-focal-migrate  v0.0.1 by Jason Lengstorf
Find all your sites that don’t use the new Focal build image and migrate them.

[]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.