materials_commons.cli.subcommands.init module¶
- materials_commons.cli.subcommands.init.init_project(name, description='', prefix=None, remote_config=None)[source]¶
Initialize directory prefix/name as a new project
name: str, Project name. If prefix/name does not exist it will be created. description: str, Project description. prefix: str, The project directory will be created at prefix/name. remote_config: RemoteConfig, The remote where the project will be created.
proj: mcapi.Project
- MCCLIException: If any of the following occur:
prefix does not exist
prefix/name is a file
prefix/name/.mc already exists