Home / Companies / Netlify / Blog / Post Details
Content Deep Dive

Publish your site assets with the Netlify CLI

Blog post from Netlify

Post Details
Company
Date Published
Author
Phil Hawksworth
Word Count
305
Language
English
Hacker News Points
-
Summary

Throughout December, we'll be highlighting a different Netlify feature each day to help unlock creative potential and deploy sites without leaving the command line. The open source Netlify CLI includes helpful features and allows deploying production or preview versions of your site with the `netlify deploy` command. Installing the CLI can be done with `npm install -g netlify-cli`, and it provides a unique preview URL for added safety. Deploying to production requires using the `--prod` flag, which is part of Netlify's build infrastructure for more powerful deployment pipelines.