--- url: https://developer.youcan.shop/themes/cli/commands.md --- # 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. ```bash youcan auth login ``` ## Logout Remove YouCan CLI’s authorization to access your account. This command will invalidate your current token. ```bash youcan auth logout ``` ## Theme 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`](/themes/config/settings_schema#theme-info) in `config/settings_schema.json` before uploading. ```bash youcan theme init ``` **Flags** | 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 ```bash 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. ```bash 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. ```bash youcan theme delete ``` ## Theme Pack It Package a theme ```bash youcan theme pack ```