CLI overview
Install the LittleDemo CLI and understand the command groups.
CLI overview
The CLI is the fastest way to create projects, generate demos, inspect status, and run scripts from CI.
Install
bashnpm install -g @littledemo/cli
Both binaries work:
bashlittledemo --helpld --help
Commands
| Command | Purpose |
|---|---|
littledemo login | Sign in with a browser or API key. |
littledemo init | Run the first-demo wizard. |
littledemo projects list | List projects. |
littledemo projects create | Create a project. |
littledemo demos list | List demos. |
littledemo demos create | Generate a demo. |
littledemo demos get | Print demo JSON. |
littledemo demos open | Open a demo share page. |
Global flags
bashlittledemo --api-url https://littledemo.comlittledemo --versionlittledemo --help
You can also set:
bashexport LITTLEDEMO_API_KEY=ld_live_xxxexport LITTLEDEMO_API_URL=https://littledemo.com