---
title: "Code faster with these 10 Netlify CLI commands! | Netlify"
description: "Realize the speed, agility and performance of a scalable, composable web architecture with Netlify. Explore the composable web platform now!"
source: "https://www.netlify.com/blog/code-faster-wt-these-10-netlify-cli-commands/"
last_updated: "2026-07-11T00:33:06.000Z"
---
The Netlify Command Line Interface makes it easier and faster to write, test, review code locally. Here’s a list of the Netlify CLI commands I used in my everyday activities to speed up development time.

> To use the Netlify CLI, you must have it installed on your computer. You can run `npm install netlify-cli -g` on your terminal to install it globally.

All the Netlify CLI commands start with `netlify`, however, there is a shorthand for it which is `ntl`. This means that running `netlify init` will have the same result as running `ntl init`.

### Netlify login

You need to be logged into your Netlify account to gain access to the CLI commands. The fastest way to log in to your Netlify account from the terminal is to run the `ntl login` command. It will pop up a browser window to authenticate your credentials, after which you can effectively run any commands on your Netlify sites.

![screenshot of netlify login command](https://res.cloudinary.com/netlify/image/upload/v1642728526/blog/ntl%20login.png)

### Netlify init

I’ve found this to be the best way to kick off a new project with continuous deployment out of the box. With the `ntl init` command, you can immediately bootstrap a new project or add Netlify CI to an existing project in seconds.

![screenshot of netlify init command](https://res.cloudinary.com/netlify/image/upload/v1642728526/blog/netlify%20init.png)

### Netlify Dev

The `ntl dev` command allows you to quickly run a local dev server for your applications. It works across all frameworks and good old HTML pages. In one command you will have a live site available on the browser to experiment and visualize your projects. As your site grows, and you add more complexity, `ntl dev` can process Netlify redirect rules and proxies allowing you to test complex functionalities locally.

![screenshot of netlify dev command](https://res.cloudinary.com/netlify/image/upload/v1642728526/blog/netlify%20dev.png)

### Netlify deploy

Let’s say you just finished developing your new site and it’s time to ship it to the world. Ideally, I would recommend pushing your site to a Git repository to enjoy the benefits of Netlify’s CI workflow. However, you can quickly deploy a site directly from the command line by running `ntl deploy`. If you add the `--prod` flag to this command, your site will be deployed as a production-ready site, otherwise, it’ll be deployed as a draft.

![screenshot of netlify deploy command](https://res.cloudinary.com/netlify/image/upload/v1642728526/blog/netlify%20deploy.png)

### Netlify watch

What happens when you deploy a site? Netlify starts the process of building and deploying the site. You can use the `netlify watch` command to monitor the deployment process and know when the deployment is finished.

![screenshot of netlify watch command](https://res.cloudinary.com/netlify/image/upload/v1642728525/blog/netlify%20watch.png)

### Netlify link

Running the `netlify link` command will connect your project to a site already deployed on Netlify. This will give you access to environment variables or any other configurations added to the site from the Netlify UI.

![screenshot of netlify link command](https://res.cloudinary.com/netlify/image/upload/v1642728525/blog/netlify%20link.png)

### Netlify switch

If you’re logged into more than one Netlify account, this command will be very handy for you. It will immediately switch your logged-in accounts from one to the other. This is very handy for me seeing as I’m logging into different Netlify team accounts.

![screenshot of netlify switch command](https://res.cloudinary.com/netlify/image/upload/v1642728525/blog/netlify%20switch.png)

### Netlify status

I like this command particularly because it gives me all the information I need to know about the site I’m currently working on. This includes details about the currently signed-in user and the site URL on Netlify.

![screenshot of netlify status command](https://res.cloudinary.com/netlify/image/upload/v1642728525/blog/netlify%20status.png)

### Netlify env:set

Managing environment variables are particularly challenging when working from multiple environments. With this command, you can immediately create environment variables for your Netlify site from the command line. And with your local site linked to Netlify, the environment variables set locally will be picked up by Netlify when your site is building:

![screenshot of netlify env command](https://res.cloudinary.com/netlify/image/upload/v1642728525/blog/netlify%20env.png)

You can also use the `list` subcommand to see a list of all the environment variables available on your site and their values.

![screenshot of netlify env list command](https://res.cloudinary.com/netlify/image/upload/v1642728525/blog/netlify%20env%20list.png)

### Netlify functions

What about serverless functions on Netlify? Yes, you can create those from the CLI too! Run `netlify functions:create` and follow the prompts to create a Netlify function by giving it a name, selecting a language (TypeScript, JavaScript, or Go), and choosing a template for it (or not).

![screenshot of netlify functions command](https://res.cloudinary.com/netlify/image/upload/v1642728525/blog/netlify%20functions.png)

Subcommands like `:invoke` `:list` and `:serve` will allow you to directly invoke a local function, list all your functions, or serve functions locally.

And that’s it. I’ve found that using these commands helps me move faster and avoid routine and repetitive tasks. If you’d like to learn more about any of these commands, feel free to [browse through the documentation](https://cli.netlify.com/). I hope they help you speed up dev time as you start to use it for your projects.

### Share

-   [X (fka Twitter)](https://twitter.com/intent/tweet?text=Code faster with these 10 Netlify CLI commands!&url=https://www.netlify.com/blog/code-faster-wt-these-10-netlify-cli-commands/)
-   [LinkedIn](https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.netlify.com%2Fblog%2Fcode-faster-wt-these-10-netlify-cli-commands%2F)
-   [Facebook](https://www.facebook.com/sharer.php?u=https://www.netlify.com/blog/code-faster-wt-these-10-netlify-cli-commands/)
-   [Bluesky](https://bsky.app/intent/compose?text=Code faster with these 10 Netlify CLI commands!+https://www.netlify.com/blog/code-faster-wt-these-10-netlify-cli-commands/)

* * *

### Tags

-   [Netlify Dev](/blog/tags/Netlify-Dev/)
-   [Netlify CLI](/blog/tags/netlify-cli/)

## Keep reading

![](/images/blog-fallback-thumbnail.svg)

Guides & Tutorials November 17, 2021

[

### Pair programming with the Netlify CLI

](/blog/2021/11/17/pair-programming-with-the-netlify-cli/)

-   ![Profile picture of Charlie Gerard](/_astro/62135565aa5522e47233c7bfac5d3c145ed33056-80x80_ZHxG3a.webp)
    
    Charlie Gerard
    

![](/images/blog-fallback-thumbnail.svg)

Guides & Tutorials August 16, 2021

[

### Top 6 things you can do with Netlify Dev in 2021

](/blog/2021/08/16/top-6-things-you-can-do-with-netlify-dev-in-2021)

-   ![Profile picture of Ekene Eze](/_astro/c97b196f1227b05d92404625ecc4779ce8a60661-1000x1000_Z1bjliB.webp)
    
    Ekene Eze
    

## Recent posts

News & Announcements June 25, 2026

[

### Netlify Functions, designed for Agent Experience

](/blog/netlify-functions-designed-for-agent-experience)

-   ![Profile picture of Eduardo Bouças](/_astro/52958f21e8450baf6d8e60302341a984e220c0cd-512x512_13VDlu.webp)
    
    Eduardo Bouças
    

News & Announcements June 24, 2026

[

### How we measure Netlify’s Agent Experience

](/blog/how-we-measure-netlify-agent-experience)

-   ![Profile picture of Sean Roberts](/_astro/bbf2243f8171dbddd80ab2103622106cef84d125-512x512_Z1d2LKE.webp)
    
    Sean Roberts
    

Guides & Tutorials May 15, 2026

[

### How to build a real-time AI chatbot in minutes with Netlify Agent Runners (no backend)

](/blog/how-to-build-a-real-time-ai-chatbot-in-minutes-with-netlify-agent-runners-no-backend)

-   ![Profile picture of Nahrin Jalal](/_astro/f0e7c8f227a03fe58340c99ef5439d5a896c0733-272x272_Z23kDpD.webp)
    
    Nahrin Jalal
    

![](/_astro/3f255b372fa958df35802666ee33b4609b2d71bd-1200x1586_1VtE2D.webp)

### How do the best dev and marketing teams work together?

[Access the report](https://www.netlify.com/reports/2024-leadership-trend-report/access/)