get-state
Usage
➜ ~ mprove get-state -h
Get state (models, dashboards, visualizations, errors, repo nodes)
━━━ Usage ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
$ mprove get-state
━━━ 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
--get-repo-nodes (default false), show repo nodes in output
--get-models (default false), show modelIds in output
--get-dashboards (default false), show dashboardIds in output
--get-vizs (default false), show vizIds in output
--json (default false)
--env-file-path #0 (optional) Path to ".env" file
━━━ Examples ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Get Dev repo state
$ mprove get-state --project-id DXYE72ODCP5LWPWH2EXQ --repo dev --branch main --env prod --get-nodes
Get Production repo state
$ mprove get-state --project-id DXYE72ODCP5LWPWH2EXQ --repo production --branch main --env prod --get-models --get-dashboards --get-vizs
Example Output
➜ ~ mprove get-state \
--project-id DXYE72ODCP5LWPWH2EXQ \
--repo dev \
--branch main \
--env prod \
--get-dashboards \
--get-vizs \
--get-models \
--env-file-path ~/mprove/.env --get-repo
validationErrorsTotal: 0
modelsTotal: 3
dashboardsTotal: 1
visualizationsTotal: 16
needValidate: false
structId: 9NF4W0HU8N2GCZ0D5FO9
visualizations:
-
vizId: 10MLKFYJPPMXZM0DD4MB
url: https://cloud.mprove.io/org/AWNCAHWLFQTQJYCH3ZSE/project/DXYE72ODCP5LWPWH2EXQ/repo/XWZVQJLVR3NZJTBB4ZA6/branch/main/env/prod/visualizations?search=10MLKFYJPPMXZM0DD4MB
-
vizId: 4GI2L3ALYEO9LXWP3O92
url: https://cloud.mprove.io/org/AWNCAHWLFQTQJYCH3ZSE/project/DXYE72ODCP5LWPWH2EXQ/repo/XWZVQJLVR3NZJTBB4ZA6/branch/main/env/prod/visualizations?search=4GI2L3ALYEO9LXWP3O92
-
vizId: 4K9SNSMG0IQPQZ9CL23U
url: https://cloud.mprove.io/org/AWNCAHWLFQTQJYCH3ZSE/project/DXYE72ODCP5LWPWH2EXQ/repo/XWZVQJLVR3NZJTBB4ZA6/branch/main/env/prod/visualizations?search=4K9SNSMG0IQPQZ9CL23U
-
vizId: 4V3KWMRA9MSH21EQZCJQ
url: https://cloud.mprove.io/org/AWNCAHWLFQTQJYCH3ZSE/project/DXYE72ODCP5LWPWH2EXQ/repo/XWZVQJLVR3NZJTBB4ZA6/branch/main/env/prod/visualizations?search=4V3KWMRA9MSH21EQZCJQ
-
vizId: BSANVXV135J7MF4YX32G
url: https://cloud.mprove.io/org/AWNCAHWLFQTQJYCH3ZSE/project/DXYE72ODCP5LWPWH2EXQ/repo/XWZVQJLVR3NZJTBB4ZA6/branch/main/env/prod/visualizations?search=BSANVXV135J7MF4YX32G
-
vizId: C3ENGIP2LC00GUFMP333
url: https://cloud.mprove.io/org/AWNCAHWLFQTQJYCH3ZSE/project/DXYE72ODCP5LWPWH2EXQ/repo/XWZVQJLVR3NZJTBB4ZA6/branch/main/env/prod/visualizations?search=C3ENGIP2LC00GUFMP333
-
vizId: GXSO9LI1KW0GLRQXJ43V
url: https://cloud.mprove.io/org/AWNCAHWLFQTQJYCH3ZSE/project/DXYE72ODCP5LWPWH2EXQ/repo/XWZVQJLVR3NZJTBB4ZA6/branch/main/env/prod/visualizations?search=GXSO9LI1KW0GLRQXJ43V
-
vizId: IERBXW9I5P3IBZ2FM6T4
url: https://cloud.mprove.io/org/AWNCAHWLFQTQJYCH3ZSE/project/DXYE72ODCP5LWPWH2EXQ/repo/XWZVQJLVR3NZJTBB4ZA6/branch/main/env/prod/visualizations?search=IERBXW9I5P3IBZ2FM6T4
-
vizId: K0CPOH4533VJD4HIQGUR
url: https://cloud.mprove.io/org/AWNCAHWLFQTQJYCH3ZSE/project/DXYE72ODCP5LWPWH2EXQ/repo/XWZVQJLVR3NZJTBB4ZA6/branch/main/env/prod/visualizations?search=K0CPOH4533VJD4HIQGUR
-
vizId: KT9LNEP4TZII2I608TNJ
url: https://cloud.mprove.io/org/AWNCAHWLFQTQJYCH3ZSE/project/DXYE72ODCP5LWPWH2EXQ/repo/XWZVQJLVR3NZJTBB4ZA6/branch/main/env/prod/visualizations?search=KT9LNEP4TZII2I608TNJ
-
vizId: MVYVP947OFAQH6R4WNHJ
url: https://cloud.mprove.io/org/AWNCAHWLFQTQJYCH3ZSE/project/DXYE72ODCP5LWPWH2EXQ/repo/XWZVQJLVR3NZJTBB4ZA6/branch/main/env/prod/visualizations?search=MVYVP947OFAQH6R4WNHJ
-
vizId: OPVFHK3Q78NNE947DLPS
url: https://cloud.mprove.io/org/AWNCAHWLFQTQJYCH3ZSE/project/DXYE72ODCP5LWPWH2EXQ/repo/XWZVQJLVR3NZJTBB4ZA6/branch/main/env/prod/visualizations?search=OPVFHK3Q78NNE947DLPS
-
vizId: QIK6ZI4HWSXLL3MTTOAJ
url: https://cloud.mprove.io/org/AWNCAHWLFQTQJYCH3ZSE/project/DXYE72ODCP5LWPWH2EXQ/repo/XWZVQJLVR3NZJTBB4ZA6/branch/main/env/prod/visualizations?search=QIK6ZI4HWSXLL3MTTOAJ
-
vizId: W5LMN2TZJUKJ5EC5MK99
url: https://cloud.mprove.io/org/AWNCAHWLFQTQJYCH3ZSE/project/DXYE72ODCP5LWPWH2EXQ/repo/XWZVQJLVR3NZJTBB4ZA6/branch/main/env/prod/visualizations?search=W5LMN2TZJUKJ5EC5MK99
-
vizId: YHH678TLUMUQPHO3WMRS
url: https://cloud.mprove.io/org/AWNCAHWLFQTQJYCH3ZSE/project/DXYE72ODCP5LWPWH2EXQ/repo/XWZVQJLVR3NZJTBB4ZA6/branch/main/env/prod/visualizations?search=YHH678TLUMUQPHO3WMRS
-
vizId: ZALVQ3YD2NA5KYDEY81S
url: https://cloud.mprove.io/org/AWNCAHWLFQTQJYCH3ZSE/project/DXYE72ODCP5LWPWH2EXQ/repo/XWZVQJLVR3NZJTBB4ZA6/branch/main/env/prod/visualizations?search=ZALVQ3YD2NA5KYDEY81S
dashboards:
-
dashboardId: ec1_d1
url: https://cloud.mprove.io/org/AWNCAHWLFQTQJYCH3ZSE/project/DXYE72ODCP5LWPWH2EXQ/repo/XWZVQJLVR3NZJTBB4ZA6/branch/main/env/prod/dashboard/ec1_d1
models:
-
modelId: ec1_m1
url: https://cloud.mprove.io/org/AWNCAHWLFQTQJYCH3ZSE/project/DXYE72ODCP5LWPWH2EXQ/repo/XWZVQJLVR3NZJTBB4ZA6/branch/main/env/prod/model/ec1_m1/mconfig/empty/query/empty
-
modelId: ec2_m1
url: https://cloud.mprove.io/org/AWNCAHWLFQTQJYCH3ZSE/project/DXYE72ODCP5LWPWH2EXQ/repo/XWZVQJLVR3NZJTBB4ZA6/branch/main/env/prod/model/ec2_m1/mconfig/empty/query/empty
-
modelId: ec3_m1
url: https://cloud.mprove.io/org/AWNCAHWLFQTQJYCH3ZSE/project/DXYE72ODCP5LWPWH2EXQ/repo/XWZVQJLVR3NZJTBB4ZA6/branch/main/env/prod/model/ec3_m1/mconfig/empty/query/empty
repo:
orgId: AWNCAHWLFQTQJYCH3ZSE
projectId: DXYE72ODCP5LWPWH2EXQ
repoId: XWZVQJLVR3NZJTBB4ZA6
repoStatus: NeedPull
currentBranchId: main
conflicts:
(empty array)
url: https://cloud.mprove.io/org/AWNCAHWLFQTQJYCH3ZSE/project/DXYE72ODCP5LWPWH2EXQ/repo/XWZVQJLVR3NZJTBB4ZA6/branch/main/env/prod/files