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 loginLogout
Remove YouCan CLI’s authorization to access your account. This command will invalidate your current token.
youcan auth logoutTheme Init
Clones the default starter theme into a new directory, and creates a development theme from it. You are prompted for the theme's name, author, version, and support and documentation URLs. The CLI writes them to the theme's theme_info in config/settings_schema.json before uploading.
youcan theme initFlags
| Flag | Alias | Description |
|---|---|---|
--url | -u | The Git URL of the starter theme to clone. Defaults to https://github.com/youcan-shop/origins. |
--inplace | -i | Create the development theme from the current directory instead of cloning. |
Theme List
It lists all of your development themes
youcan theme listTheme 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 devFlags
| 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 deleteTheme Pack
It Package a theme
youcan theme pack