You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""Initialize a new Dagster project, optionally inside a workspace.
56
+
57
+
By default, only a standalone project is created. The project will be created in a new directory specified by DIRNAME. If DIRNAME is not specified, the user will be prompted for it.
50
58
51
-
By default, only a standalone project is created. A workspace can also be created using the
52
-
--workspace-name option.
59
+
If the --workspace flag is passed, a workspace will be created in DIRNAME and a project created inside the workspace. If DIRNAME is not passed, the user will be prompted for it. The project name can be specified with the --project-name option, or the user will be prompted for it.
53
60
54
-
If a project is created, it will have the following structure:
61
+
In either case, "." can be passed as DIRNAME to create the new project or workspace inside the existing working directory.
62
+
63
+
Examples:
64
+
dg init
65
+
Scaffold a new project in a new directory `<project_name>`. Prompts for `<project_name>`.
66
+
dg init .
67
+
Scaffold a new project in the CWD. The project name is taken from the last component of the CWD.
68
+
dg init PROJECT_NAME
69
+
Scaffold a new project in new directory PROJECT_NAME.
70
+
dg init --workspace
71
+
Scaffold a new workspace in a new directory `<workspace_name>`. Prompts for `<workspace_name>`. Scaffold a new project inside this workspace at projects/<project_name>. Prompts for `<project_name>`.
72
+
dg init --workspace .
73
+
Scaffold a new workspace in the CWD. Scaffold a new project inside this workspace at projects/<project_name>. Prompts for `<project_name>`.
74
+
dg init -workspace WORKSPACE_NAME
75
+
Scaffold a new workspace in a new directory WORKSPACE_NAME. Scaffold a new project inside this workspace at projects/<project_name>. Prompt for the project name.
76
+
dg init --workspace --project-name PROJECT_NAME .
77
+
Scaffold a new workspace in the CWD. Scaffold a new project inside this workspace at projects/PROJECT_NAME.
78
+
79
+
Created projects will have the following structure:
0 commit comments