43 lines
1.6 KiB
Markdown
43 lines
1.6 KiB
Markdown
# cpl new
|
|
|
|
## Contents
|
|
|
|
- [Description](#description)
|
|
- [Arguments](#arguments)
|
|
- [Project types](#project-types)
|
|
|
|
Generates a workspace and initial project or add a project to workspace.
|
|
|
|
cpl **new** *<type>* *<name>*<br>
|
|
cpl **n** *<type>* *<name>* <br>
|
|
cpl **N** *<type>* *<name>*
|
|
|
|
## Description
|
|
|
|
Generates a workspace and initial project or add a project to workspace.
|
|
|
|
If the command is running in a CPL workspace, it will add the new project to the workspace.
|
|
|
|
| Argument | Description | Value type |
|
|
|--------------|:----------------------------------------------------:|:----------:|
|
|
| ```<type>``` | The type of the project, see [types](#project-types) | ```str``` |
|
|
| ```<name>``` | The name of the project | ```str``` |
|
|
|
|
## Project types
|
|
|
|
| Project type | Description |
|
|
|---------------|:----------------------------:|
|
|
| ```console``` | A simple console application |
|
|
| ```library``` | A package |
|
|
|
|
## Flags
|
|
|
|
| Argument | Description |
|
|
|---------------------------|:-------------------------------------------:|
|
|
| ```--async``` | Specifies whether async is used |
|
|
| ```--application-base``` | Specifies whether application base is used |
|
|
| ```--startup``` | Specifies whether startup is used |
|
|
| ```--service-providing``` | Specifies whether service-providing is used |
|
|
| ```--nothing``` | Specifies whether nothing is used |
|
|
| ```--venv``` | Specifies whether venv is used |
|