Skip to content

YouCan CLI for Apps

YouCan CLI is a command-line tool that handles scaffolding, local development, and store installation for YouCan apps.

Requirements

Commands

CommandDescription
youcan auth loginAuthenticate with your YouCan store
youcan auth logoutLog out from your store
youcan app devStart a local dev server with a public tunnel. (Press 'P' to install)

Usage

Most of the time you interact with CLI through pnpm scripts in the app template:

sh
# Create a new app (includes CLI setup)
pnpm create @youcan/app@latest

# Navigate to the app directory
cd <app-name>

# Start dev server
pnpm dev

# Start dev server (Press 'P' in the terminal to install on your dev store)
pnpm dev

If you need to log in manually:

sh
youcan auth login

For issues or feature requests, open an issue on GitHub.