Installation
Installing the CLI from NPM
Prerequisite: Please install Node.js version 20 or higher before proceeding.
Migrating from V0? Please follow the migration guide instead.
Quick start
Get an API key
You will need an API key to authenticate against Momentic’s servers.
To automatically pass the key to all Momentic CLI invocations, you can export the key in your shell configuration file (usually .bashrc
or .zshrc
) like so:
or pass it in as a flag to all CLI commands:
Initialize a Momentic project
Run the init
command. This will start an interactive wizard that will guide you through initializing a momentic.config.yaml
file in the current directory. This file lets Momentic identify your project root, under which all your Momentic tests, modules, environments, and other configuration files will live.
If you are using source control (e.g. Git, Subversion, Mercurial), you should commit this file so that all team members can share the same configuration.
Install browsers
This will download the latest version of Chrome, Firefox, and WebKit browsers to your local machine. These are required to run tests locally.
Was this page helpful?