Commands
YouCan CLI offer many commands to build your themes
Command | Description |
---|---|
auth login | Authorize a YouCan Store |
auth logout | Logout from a YouCan store |
theme init | starts a dev server and watches over the current directory |
theme list | List of development themes |
theme dev | Start a local server for developing your theme |
theme delete | Delete an existing theme |
theme pack | Package a theme |
Login
Authorize YouCan CLI with your YouCan Partner account, in case of multi-store, a list of development stores will be displayed and must choose one to continue.
youcan auth login
Logout
Remove YouCan CLI’s authorization to access your account. This command will invalidate your current token.
youcan auth logout
Theme Init
Clones and unpacks the default starter theme to your local machine's current working directory, you will be prompted to enter theme meta data such as theme name and theme author.
youcan theme init
Flags
Flag | Alias | Description |
---|---|---|
—default | -d | Insert default metadata |
Theme List
It lists all of your development themes
youcan theme list
Theme Dev
Set up a local server to work on your YouCan theme. It launches a Chromium browser with a preview of your theme and listens for changes in the theme code, then automatically uploads the changes and reloads the preview to display the most recent theme update.
youcan theme dev
Flags
Flag | Alias | Description |
---|---|---|
—preview | -preview | Starts the preview browser |
Theme Delete
It lists all of your development themes and prompts you to select one to delete.
youcan theme delete
Theme Pack
It Package a theme
youcan theme pack