In this chapter, you will install Contember CLI, start Contember API locally and learn how to create your first project.
Contember CLI is a command line tool which contains many commands to simplify your workflow.
TIP: there is also a Docker image
contember/cliif you don't want to install the CLI as a global NPM dependency.
Execute following command in a terminal:
Alternatively, you can create a workspace using
contember/cli docker image:
TIP: run without
--single-instanceoption for multi-instance setup.
The command will create a directory named "my-contember-workspace" with a sample project and structure similar to this:
Go to created workspace:
And install NPM dependencies:
After this, you can start a Contember instance:
In first run, you will be prompted for email and password. E-mail is for authentication purpose only and is stored only in your local database.
TIP: you can use non-ambiguous abbreviation for commands, for example you can run previous command using
npm run contember i:u