Create a new workspace from a template
$bit new <template-name> <workspace-name>
Arguments
| Argument | Description | Required | 
|---|---|---|
| template-name | the name of the workspace template (run 'bit templates' outside of a workspace to get a list of available workspace templates) | ✅ | 
| workspace-name | the name for the new workspace and workspace directory that will be created | ✅ | 
Options
| Option | Option Alias | Description | Value Type | 
|---|---|---|---|
| --aspect | -a | id of the aspect that registered the template, mandatory for non-core aspects. helpful for core aspects in case of a name collision | string | 
| --template | -t | id of the dev environment to use for the template. Alias for --env. | string | 
| --env | - | id of the dev environment to use for the template. Alias -t | string | 
| --default-scope | -d | set the default scope for the workspace. used in the generated workspace.jsonc | string | 
| --standalone | - | DEPRECATED. use --skip-git instead | boolean | 
| --skip-git | -s | skip generation of Git repository in the new workspace | boolean | 
| --empty | -e | skip template's default component creation (relevant for templates that add components by default) | boolean | 
| --load-from | - | local path to the workspace containing the template. Helpful during a development of a workspace-template | string | 
| --current-dir | -c | create the new workspace in current directory (default is to create a new directory, inside the current dir) | boolean |