Deploying a Branch to Netlify on the Command-Line
As of email@example.com, it's now possible to deploy using the
-b $branchName flag:
% netlify deploy -b wibble Deploy path: /home/jamie/workspaces/talks/public Configuration path: /home/jamie/workspaces/talks/netlify.toml Deploying to draft URL... ✔ Finished hashing 286 files ✔ CDN requesting 0 files ✔ Finished uploading 0 assets ✔ Deploy is live! Logs: https://app.netlify.com/sites/epic-wozniak-9aa019/deploys/5ed7eaedb88cedbb42a9d341 Website Draft URL: https://wibble--epic-wozniak-9aa019.netlify.app If everything looks good on your draft URL, deploy it to your main site URL with the --prod flag. netlify deploy --prod
This is super exciting, and will help help folks deploying from Continuous Integration platforms, or with use cases where they don't want to use Netlify's Webhook integrations.