---
title: "Learn about Netlify CLI"
description: "Use the Netlify CLI to test your app, debug serverless functions, or even live stream your local environment for pair programming in real-time."
source: "https://www.netlify.com/blog/2021/12/14/test-debug-or-live-stream-your-local-development-environment-with-netlify-cli/"
last_updated: "2026-07-11T00:33:02.000Z"
---
Wow! The Netlify CLI (Command-line Interface) sure has come a long way since it was [demoed at Jamstack Conf NYC](https://youtu.be/RL_gtVZ_79Q?t=1953) way back in 2019.

Thanks to continuous iterations on the CLI, which includes both Netlify Dev and Netlify Live, [today’s version 8.1](https://github.com/netlify/cli) is stable, robust, and ready for teams to integrate into daily development workflows.

Here are a few of the tricks the Netlify CLI can do to make your local development better, easier, and more productive:

-   Automatically detect your framework and suggest settings
-   Pull in environment variables from the Netlify UI, eliminating the need to copy / paste
-   Run serverless functions so you can debug locally
-   Preview and test headers, redirects, and edge logic
-   Start a Netlify Live tunnel, allowing you to live stream your dev server to a URL for instant collaboration in real-time

## Netlify Live makes it easy to debug in real-time

While Netlify’s collaborative Deploy Previews are our go-to for asynchronous feedback, sometimes you need to drop everything and pair on an issue together. That’s when Netlify Live really shines.

For example, just last week, our team was working quickly to debug some funky edge case issues with authentication for the [Your Year on Netlify](https://your-year-on.netlify.com/) project. Zach Leatherman, who was working on the fix, spun up a local version of the app with Netlify Live. Within minutes, he was able to see the logs, identify the issue, and make a few changes. Meanwhile, I was able to test out the fix before it was ever deployed—without pulling down a copy of his latest version from a repo. Netlify CLI to the rescue and problem solved!

## Learn more about the CLI

This December, the Developer Experience team at Netlify has been keeping busy with one blog post every day, spotlighting all the Netlify features you don’t want to miss. Check out these great posts for step-by-step walkthroughs of common CLI use cases:

-   [Publish your site assets with the Netlify CLI](https://www.netlify.com/blog/2021/12/01/publish-your-site-assets-with-the-netlify-cli/)
-   [Supercharge your local development with Netlify Dev](https://www.netlify.com/blog/2021/12/02/supercharge-your-local-development-with-netlify-dev/)
-   [Using “netlify open” to jump directly to your project’s admin page](https://www.netlify.com/blog/2021/12/06/using-netlify-open-to-jump-directly-to-your-projects-admin-page/)
-   [More tips for environment variables and Netlify CLI](https://www.netlify.com/blog/2021/12/10/more-tips-for-environment-variables-and-netlify-cli/)
-   [How to test serverless functions locally](https://www.netlify.com/blog/2021/12/12/how-to-test-serverless-functions-locally/)

You can also find the full list of Netlify CLI commands at [cli.netlify.com](https://cli.netlify.com/) or [visit the Docs for a getting started guide](https://docs.netlify.com/cli/get-started/).

## Download the Netlify CLI today

Run `npm install netlify-cli -g` in your terminal and start developing!

### Share

-   [X (fka Twitter)](https://twitter.com/intent/tweet?text=Test, debug, or live stream your local development environment with Netlify CLI&url=https://www.netlify.com/blog/2021/12/14/test-debug-or-live-stream-your-local-development-environment-with-netlify-cli//)
-   [LinkedIn](https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.netlify.com%2Fblog%2F2021%2F12%2F14%2Ftest-debug-or-live-stream-your-local-development-environment-with-netlify-cli%2F%2F)
-   [Facebook](https://www.facebook.com/sharer.php?u=https://www.netlify.com/blog/2021/12/14/test-debug-or-live-stream-your-local-development-environment-with-netlify-cli//)
-   [Bluesky](https://bsky.app/intent/compose?text=Test, debug, or live stream your local development environment with Netlify CLI+https://www.netlify.com/blog/2021/12/14/test-debug-or-live-stream-your-local-development-environment-with-netlify-cli//)

* * *

### Tags

-   [CLI](/blog/tags/cli/)

## Keep reading

![](/_astro/bbe3cfe0b5d5228f5d0a66e26ce057de315c7712-1200x675_ZQfk21.webp)

Tools & Services December 3, 2025

[

### Vibe coding to production with Kiro powers

](/blog/vibe-coding-production-kiro-powers)

-   ![Profile picture of Gehrig Kunz](/_astro/b4e9f58d914d1334ea70d53ea55a1f26b26f1445-512x512_17SwOI.webp)
    
    Gehrig Kunz
    

![](/_astro/b596a7453ede5fe6739bd12506636fe522828198-2400x1351_1ANtEG.webp)

Tools & Services February 21, 2025

[

### Secure local development with Codezero for Netlify

](/blog/secure-local-development-codezero)

-   Kathleen Randall
    

## 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/)