Installing the Begin CLI

Alright, let’s install the Begin CLI. This should only take 1-2 minutes.

Prerequisites

  • Any computer running macOS, Windows, or Linux, with Node.js 14, or later
  • If deploying to Begin: a (free) GitHub account to authenticate the Begin CLI

Install

In your terminal run the following the command:

curl -sS https://dl.begin.com/install.sh | sh

Then follow the printed instructions to add the Begin CLI to your $PATH.

iwr https://dl.begin.com/install.ps1 -useb | iex

Create a new app

Create a new Enhance project locally.

begin new ./myapp
b new ./myapp

Preview your app

Start the local dev server like so:

cd myapp
begin dev
cd myapp
b dev

Extra credit

Want to run your first Begin deploy? Alright, we’re almost there.

Login

Create a Begin account by running the following command in your terminal, then following the instructions to authorize with GitHub.

begin login
b login

Deploy

Time to ship your brand new project to a fresh environment.

begin deploy
b app deploy

Congratulations, that’s just about it. Not so bad, right?

Let’s go check out a simple GitHub Actions Begin setup.