Skip to main content

pull

Usage

➜  ~ mprove pull -h
Pull committed changes from Remote to repo, validate BlockML for selected env

━━━ Usage ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

$ mprove pull

━━━ Options ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

--project-id #0 (required) Project Id
--repo #0 (required, "dev" or "production")
--branch #0 (required) Git Branch
--env #0 (required) Environment
--get-errors (default false), show validation errors in output
--get-repo (default false), show repo in output
--json (default false)
--env-file-path #0 (optional) Path to ".env" file

━━━ Examples ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Pull committed changes from Remote to Dev repo, validate BlockML for env prod
$ mprove pull --project-id DXYE72ODCP5LWPWH2EXQ --repo dev --branch main --env prod

Pull committed changes from Remote to Production repo, validate BlockML for env prod
$ mprove pull --project-id DXYE72ODCP5LWPWH2EXQ --repo production --branch main --env prod

Example Output

➜  ~ mprove pull \
--env-file-path ~/mprove/.env \
--project-id DXYE72ODCP5LWPWH2EXQ \
--repo dev \
--branch main \
--env prod

message: Pulled changes from Remote
validationErrorsTotal: 0
url: https://cloud.mprove.io/org/AWNCAHWLFQTQJYCH3ZSE/project/DXYE72ODCP5LWPWH2EXQ/repo/XWZVQJLVR3NZJTBB4ZA6/branch/main/env/prod/files