CLI Guides

Guides, examples, and demonstrations of using the Netlify platform.

Video

Create a new Netlify site from the CLI

In this video, we’ll walk you through how to create a new Netlify site directly from the CLI.

CLI

Video

Test redirects locally with Netlify

Testing your redirects directly in production? There’s a better way! With the Netlify CLI, you can replicate production behavior locally and ensure your redirects work perfectly before deploying.

CLI

Guide

Install, build, and deploy an Astro site in 2 minutes

Use the Astro CLI to create a new site, run it in development, and build it for production. Then preview and publish the build by deploying it using the Netlify CLI.

Astro CLI

Video

Create, install, and deploy an Astro site in 2 minutes

This video will show you how to get started with Astro and deploy a live site to production in just a few minutes.

Astro CLI

Video

Increase productivity using the command line alias

Get more done by relying on the Netlify CLI command-line alias, instead of accidentally typing 'Netflix' repeatedly.

CLI

Guide

Increase productivity using the command line alias

Get more done by relying on the Netlify CLI command line alias, rather than accidentally typing "netflix" over and over again.

CLI

Suggest a guide

Got an idea for a useful guide that you can't currently find here? Want us to explain something, or perhaps you'd like to work on creating a guide with us?

Let us know and we'll see what we can arrange.

We also have a contributor guide for those making content contributions