API Reference

lean init


Scaffold a Lean configuration file and data directory.

$ lean init [options]


Fills the current directory with all the files needed to get going. It'll create a Lean configuration file and a data directory containing some sample data. To view a full list of the created files, see Directory Structure.


The lean init command supports the following options:

--organization <value>The name or id of the organization to link with the workspace.
--language <value>, -l <value>The default language of new projects (python or csharp).
--verboseEnable debug logging.
--helpDisplay the help text of the lean init command and exit.

You can also see our Videos. You can also get in touch with us via Discord.

Did you find this page helpful?

Contribute to the documentation: