ZEIT Now is a cloud platform for static sites and serverless functions. It enables developers to host websites and web services that deploy instantly, scale automatically, and requires no supervision, all with no configuration.
Getting started with Now takes just a few steps and lets you get up and running with your new project in less than a minute.
You can get Now CLI from either npm or Yarn. Using npm, run the following command from your terminal:
npm i -g now
Installing Now CLI with npm in the terminal.
To verify that you have installed Now CLI, try running
now help from your terminal.
With Now CLI installed, you can now login using the following command:
Login with Now CLI from the terminal.
You can create a new Next.js application with the following command using either npm or Yarn:
npx create-next-app my-next-project
Creating a new Next.js project with npm.
When your Next.js app is created, all you have to do is move into the directory (with
cd my-next-project in your terminal) and then deploy your app with a single command in your terminal:
Deploying your new Next.js project with Now CLI.
Once deployed, you will get a unique URL to reference the current version of your project, and a staging alias that is assigned on each deployment to share the latest changes under the same address.
These URLs look like the following:
- Unique Deployment URL: https://my-next-project-6bnjtkazh.now.sh/
- Staging Alias: https://my-next-project.now-examples.now.sh/
For more information on what to do next, we recommend the following articles: