Five Minute Guide

With now, you can deploy and publish any kind of web app (or service) in under five minutes. This guide includes information about:
  • Deploying an app
  • Buying a domain name
  • Mapping that domain name to the app
  • Configuring an SSL certificate

Now CLI

Install Now Desktop and follow the getting started process.
(Make sure to click the button to install now CLI.)
If you've already installed Node.js, you can run the following command to install the CLI:
npm i -g now

Login

When the installation is completed, you can log in to now by running the following command using a terminal:
now login
Follow the instructions on the screen.
(Since this is your first time, it will create an account for you.)

Deployment

Let's deploy a simple static web app.
Create a directory called my-web-app and add the following content to a file called index.html.
<!DOCTYPE html>
<html>
  <body>
    This is a static web app.
  </body>
</html>
You can also use a Node.js app or an app with a Dockerfile instead of this simple static app.
After you have added the content, visit the my-web-app directory using a terminal and run this command:
now
now will deploy the app and give you a URL as shown below.

Getting a unique URL after the deployment.

This is a URL for the current deployment of the app. You can access this version of the app anytime with this URL.

Domain Name

Now you have a unique URL(https://my-web-app-avvuiuuwto.now.sh) for your app. But you probably want a nicer-sounding URL before directing your users there. The next step is to map the "now.sh" URL to a domain name that you prefer.
Let's assume the domain name is my-web-app.com, and you haven't bought it yet.
To map this domain name to the app's unique URL, run this command:
now alias https://my-web-app-avvuiuuwto.now.sh my-web-app.com
Since you haven't bought the domain name yet, you will be asked to enter your credit card information to buy it. You can do that by running this command:
now cc add
You may choose to upgrade your account to the "Premium" plan by running this command:
now upgrade
Now, run the domain mapping command again and follow these instructions:
now alias https://my-web-app-avvuiuuwto.now.sh my-web-app.com
Once you've done that, you'll be able to access your app using https://my-web-app.com. It is automatically configured with a Let's Encrypt SSL certificate and served with HTTPS.

After mapping a domain name to a deployment.

Updates

If you've made any changes to your app, you will need to deploy the latest version of your app. To do that, run this command:
now
You will receive a unique URL for this deployment. Let's assume that the new URL is https://my-web-app-ttfxzqwbwz.now.sh.
You can map this new URL to your domain name by running this command:
now alias https://my-web-app-ttfxzqwbwz.now.sh my-web-app.com
Now everything is ready.
Your users can access the updated web app at https://my-web-app.com.
These are just a few things you can do with now. To learn more about now, simply follow the rest of the docs.