init¶
Initialise a project.
If ‘<project-dir>’ is provided, initialise in that directory, otherwise initialise in the current working directory.
If ‘–name <name>’ is provided, the project will be named ‘<name>’. Otherwise, the project will be named after the directory it is initialised in.
‘–profile <profile>’ is used to initialise the project for a specific use case.
Init can work in an existing project directory. If there are any files in the directory that would be overwritten, then init command will fail.
Usage¶
snapcraft init [options] <project_dir>
Required¶
project_dirPath to initialise project in; defaults to current working directory.
Options¶
--nameThe name of project; defaults to the name of <project_dir>.
--profileUse the specified project profile (default is simple, choices are ‘simple’).
Global options¶
-hor--helpShow this help message and exit.
-qor--quietOnly show warnings and errors, not progress.
-vor--verboseShow debug information and be more verbose.
--verbositySet the verbosity level to ‘quiet’, ‘brief’, ‘verbose’, ‘debug’ or ‘trace’.
-Vor--versionShow the application version and exit.