Create a project¶
create(project_path, name, main_flow_name=None, cli=True)
¶
Create a new OneCode project.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
project_path |
str
|
Path to the folder where to put the new OneCode project. |
required |
name |
str
|
Name of the new OneCode project. |
required |
main_flow_name |
str
|
Name of the main flow: if None, it will be constructed from the name of the OneCode project. |
None
|
cli |
bool
|
Set to False for no interaction. |
True
|
Raises:
Type | Description |
---|---|
FileExistsError
|
if the project path already exists. |
main()
¶
Start a user-interactive CLI to create a new OneCode project.
onecode-create