Netlify deployment via the command line
Netlify's command-line tool also provides a nice way to preview the site without deploying it once the netlify build
command is run.
In the Terminal, type the following command:
netlify deploy
The output will be similar to the following:
Deploy path:Â Â Â Â Â Â Â Â /home/chris/jumpstart-jamstack/web/public Configuration path: /home/chris/jumpstart-jamstack /netlify.toml Deploying to draft URL... Finished hashing 49 files CDN requesting 0 files Finished uploading 0 assets Draft deploy is live! Logs:Â Â Â Â Â Â Â Â Â Â Â Â Â Â https://app.netlify.com/sites/jumpstart-jamstack-web/deploys/5f3cad51bdd06713f5250887 Website Draft URL: https://5f3cad51bdd06713f5250887--jumpstart-jamstack-web.netlify.app If everything looks good on your draft URL, deploy it to your main site URL with the --prod flag. netlify deploy --prod
As the command's output...