Netlify
Use the Netlify CLI (netlify) to create/link Netlify sites and set up CI/CD (continuous deployment) from GitHub, especially for monorepos (multiple sites in one repo like Hugo sites under sites/<domai
Use the Netlify CLI (netlify) to create/link Netlify sites and set up CI/CD (continuous deployment) from GitHub, especially for monorepos (multiple sites in one repo like Hugo sites under sites/<domai
Real data. Real impact.
Emerging
Developers
Per week
Open source
Skills give you superpowers. Install in 30 seconds.
Use the
netlify CLI to create projects (“sites”), link local folders, and configure CI/CD from GitHub.
netlify --versionnetlify login) or provide --auth $NETLIFY_AUTH_TOKEN.Helpful checks:
netlify status netlify sites:list
For one repo with multiple sites (e.g.
sites/seattlecustomboatparts.com, sites/floridacustomerboatparts.com):
netlify.toml inside that subfolder.This keeps each domain’s build config self-contained.
netlify.tomlCreate
sites/<domain>/netlify.toml:
[build] command = "hugo --minify" publish = "public"[build.environment] HUGO_VERSION = "0.155.1"
(Adjust HUGO_VERSION as needed.)
Run inside the site folder you want to deploy (base dir):
cd sites/<domain> netlify sites:create --name <netlify-site-name> --account-slug <team> --with-ci
Notes:
--with-ci starts CI hooks setup.--manual.If not linked already:
netlify link
netlify init
This is usually interactive (select Git remote/repo + build settings). For automation we can pre-create
netlify.toml and then accept defaults.
Set per-site vars:
netlify env:set VAR_NAME value netlify env:list
Useful for monorepos:
CONTACT_EMAIL (or other shared config)Manual deploys (handy for quick preview):
netlify deploy # draft deploy netlify deploy --prod # production deploy
scripts/hugo_netlify_toml.sh: create a netlify.toml in a Hugo subfolderscripts/netlify_monorepo_site.sh: helper to create/link/init a site for a subfolderWhen using scripts, prefer passing
NETLIFY_AUTH_TOKEN via env for non-interactive runs.No automatic installation available. Please visit the source repository for installation instructions.
View Installation Instructions1,500+ AI skills, agents & workflows. Install in 30 seconds. Part of the Torly.ai family.
© 2026 Torly.ai. All rights reserved.