create-liveblocks-app v1.12.0
create-liveblocks-app
The easiest way to get started with a Liveblocks starter kit or example.
Get started
You can create a new Liveblocks project using the following command:
npx create-liveblocks-app
The initial prompt allows you to set up one of the following:
1. Next.js Starter kit—Our official starter kit for Next.js
2. An example from the Liveblocks repo—Any example from liveblocks/liveblocks
From there, follow the instructions to set up your app!
Flags (optional)
If you wish, you can skip certain create-liveblocks-app
prompts with the following flags. Please note that these are optional, and if no flags are used, you will be prompted about these options in the installer instead.
npx create-liveblocks-app [options]
Options:
--next
Use the Next.js Starter Kit
--example [example name]
Use a Liveblocks example, the name corresponding to the example name in the repo
e.g. `--example zustand-whiteboard` for https://github.com/liveblocks/liveblocks/tree/main/examples/zustand-whiteboard
--name [repo name]
The name of the project/directory
e.g. `--name my-liveblocks-project`
--package-manager [`npm`|`yarn`|`pnpm`]
Select your package manager, default is `npm`
e.g `--package-manager yarn`
--auth [`demo`|`github`|`auth0`]
Select your authentication method. Option only for Next.js Starter Kit.
e.g. `--auth github`
--install
Install the project with the selected package manager
--no-install
Don't install the project
--git
Initialize git
--no-git
Don't initialize git
--vercel
Deploy on Vercel, and get Liveblocks API key
--no-vercel
Don't deploy on Vercel
--api-key
Get Liveblocks API key. Ignored if `--vercel` is used.
--no-api-key
Don't get Liveblocks API key. Ignored if `--vercel` is used.
--open
Open browser without asking permission, when deploying to Vercel or getting API key
--help
Find more info
Examples
Next.js Starter Kit with no install:
npx create-liveblocks-app --next --no-install
Example from Liveblocks repo with directory/project name specified:
npx create-liveblocks-app --example nextjs-live-avatars --name my-liveblocks-app
Next.js Starter Kit with every option:
npx create-liveblocks-app --next --name my-project --auth github --package-manager npm --install --git --vercel --open
24 hours ago
3 days ago
9 days ago
16 days ago
22 days ago
25 days ago
1 month ago
1 month ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
5 months ago
5 months ago
5 months ago
5 months ago
9 months ago
9 months ago
9 months ago
9 months ago
8 months ago
9 months ago
9 months ago
6 months ago
8 months ago
8 months ago
9 months ago
9 months ago
6 months ago
6 months ago
7 months ago
6 months ago
7 months ago
6 months ago
7 months ago
7 months ago
7 months ago
6 months ago
6 months ago
7 months ago
9 months ago
6 months ago
9 months ago
6 months ago
10 months ago
6 months ago
10 months ago
6 months ago
10 months ago
10 months ago
9 months ago
9 months ago
9 months ago
9 months ago
10 months ago
10 months ago
9 months ago
6 months ago
10 months ago
10 months ago
10 months ago
5 months ago
7 months ago
5 months ago
7 months ago
5 months ago
7 months ago
7 months ago
7 months ago
6 months ago
7 months ago
7 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
6 months ago
10 months ago
10 months ago
7 months ago
6 months ago
7 months ago
6 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
10 months ago
10 months ago
7 months ago
7 months ago
6 months ago
7 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
12 months ago
11 months ago
11 months ago
11 months ago
12 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
1 year ago
1 year ago
1 year ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago