Pushing environments

Step 1: Get an API key:

You will need an API key to authenticate against Momentic’s servers.

Step 2: Push environments to Momentic Cloud:

Make sure this is in the same directory as your ./momentic directory.

npx momentic@latest env push [options] [envs...]

Arguments

ArgumentDescriptionDefault
envsOne or more environment names to push.

Options

OptionDescriptionDefault
-a, --allSelect all environments in your organization from Momentic Cloud. Cannot be used together with <paths> arguments.

Pulling environments

Step 1: Get an API key:

You will need an API key to authenticate against Momentic’s servers.

Step 2: Pull environments from Momentic Cloud:

Make sure this is in the same directory as your ./momentic directory.

npx momentic@latest env pull [options] [envs...]

Arguments

ArgumentDescriptionDefault
envsOne or more environment names to pull.

Options

OptionDescriptionDefault
-a, --allSelect all environments in your organization from Momentic Cloud. Cannot be used together with <paths> arguments.