Initialize a project in the current directory.
For each project,
mesmer init will create a file named
.mesmer.yml, in the current directory, containing tenant and project IDs. This is intended to be checked in to version control, and versioned alongside your app's code.
To set up a project in the current directory, run
mesmer init, passing the tenant and project IDs:
# Initialize a project by selecting it interactively$ mesmer initSelect a tenant:> some.tenant.mesmerhq.com another.tenant.here.mesmerhq.comSelect a project: Calculator Contacts> Chrome Calculator TestApp Music✓ Created Mesmer project in "/home/wgoodall01/Dev" # Reset by removing the project file$ rm .mesmer.yml # Initialize a project literally$ mesmer --tenant my.tenant.here.mesmerhq.com --project $PROJECT_ID init ✓ Created Mesmer project in "/your/working/directory" # Look at the config file created$ cat .mesmer.yml---tenantUrl: my.tenant.here.mesmerhq.comprojectId: $PROJECT_ID
This sets up the project configuration, so later invocations in this directory know what tenant and project you're talking about.