Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Parameter nameTypeOptionalityDescriptionConstraints
verboseboolean
Status
colourGreen
titleOPTIONAL
specifies if the output should be more detailedverbose
shareenum
Status
colourGreen
titleOPTIONAL
list projects by share type[demo, dimension, template]
organizationstring
Status
colourGreen
titleOPTIONAL
list projects by organization (organization ID)

...

Parameter nameTypeOptionalityDescriptionConstraints
serverstring
Status
colourGreen
titleOPTIONAL

Hostname of the server from which the project will be imported

default = https://secure.clevermaps.io


projectstring
Status
colourYellow
titleVARIES

Project ID of the project from which files will be imported

(info) either project or dump must be specified


dumpstring
Status
colourYellow
titleVARIES

ID of a project dump to be imported

(info) either project or dump must be specified


cascadeFromstring
Status
colourGreen
titleOPTIONAL

cascade import object and all objects it references

see usage examples below


prefixstring
Status
colourGreen
titleOPTIONAL
specify a prefix for the metadata objects and data files
dashboardsboolean
Status
colourGreen
titleOPTIONAL
import dashboards only
datasetsboolean
Status
colourGreen
titleOPTIONAL
import datasets only
indicatorsboolean
Status
colourGreen
titleOPTIONAL
import indicators only
indicatorDrills
boolean
Status
colourGreen
titleOPTIONAL
import indicator drills only
markersboolean
Status
colourGreen
titleOPTIONAL
import markers only
markerSelectorsboolean
Status
colourGreen
titleOPTIONAL
import marker selectors only
metricsboolean
Status
colourGreen
titleOPTIONAL
import metrics only
projectSettingsboolean
Status
colourGreen
titleOPTIONAL
import project settings only
sharesboolean
Status
colourGreen
titleOPTIONAL

import shares only


viewsboolean
Status
colourGreen
titleOPTIONAL

import views only


forceboolean
Status
colourGreen
titleOPTIONAL

ignore source project validate errors and proceed with import anyway

skip failed dataset dumps (for projects with incomplete data)

default = false


skipDataboolean
Status
colourGreen
titleOPTIONAL

skip data import

default = false


Usage examples:
Code Block
themeMidnight
titleCascade import examples
// import all objects referenced from catchment_area_view including datasets & data
importProject --project djrt22megphul1a5 --server --cascadeFrom catchment_area_view

// import all objects referenced from catchment_area_view except including datasets & data
importProject --project djrt22megphul1a5 --server --cascadeFrom catchment_area_view --dashboards --exports --indicatorDrills --indicators --markerSelectors --markers --metrics --views

// import all objects referenced from catchment_area_dashboard
importProject --project djrt22megphul1a5 --server --cascadeFrom catchment_area_dashboard

// import all objects (datasets) referenced from baskets dataset - data model subset
importProject --project djrt22megphul1a5 --server --force --cascadeFrom baskets

...

Parameter nameTypeOptionalityDescriptionConstraints
engineenum
Status
colourRed
titleREQUIRED

name of the database engine

[postgresql]
hoststring
Status
colourRed
titleREQUIRED

database server hostname

for local databases, use localhost


portinteger
Status
colourRed
titleREQUIRED
database server port
schemastring
Status
colourGreen
titleOPTIONAL

name of the database schema

leave out if your engine does not support schemas, or the schema is public


databasestring
Status
colourRed
titleREQUIRED
name of the database
userstring
Status
colourRed
titleREQUIRED
user name for login to the database
passwordstring
Status
colourRed
titleREQUIRED
user's password
tablesarray
Status
colourGreen
titleOPTIONAL

list of tables to import

leave out if you want to import all tables from the database

example = "orders,clients,stores"


skipDataboolean
Status
colourGreen
titleOPTIONAL

skip data import

default = false


skipMetadataboolean
Status
colourGreen
titleOPTIONAL

skip metadata import

default = false


Usage examples:
Code Block
themeMidnight
importDatabase --engine postgresql --host localhost --port 5432 --database my_db --user postgres --password test
importDatabase --engine postgresql --host 172.16.254.1 --port 6543 --schema my_schema --database my_db --user postgres --password test --tables orders,clients,stores

...

[true, ][, false]
Parameter nameTypeOptionalityDescriptionConstraints
filestring
Status
colourYellow
titleVARIES

path to the CSV file

(info) one of file, s3Uri or url parameters must be specified


s3Uristring
Status
colourYellow
titleVARIES

URI of an object on AWS S3 to upload (see examples below)

(info) one of file, s3Uri or url parameters must be specified


urlstring
Status
colourYellow
titleVARIES

HTTPS URL which contains a CSV file to be loaded into the dataset

(info) one of file, s3Uri or url parameters must be specified


datasetstring
Status
colourRed
titleREQUIRED
name of dataset into which the data should be loaded
modeenum
Status
colourRed
titlerequired

data load mode

incremental mode appends the data to the end of the table

full mode truncates the table and loads the table anew

[incremental, full]

csvHeader

boolean
Status
colourGreen
titleOPTIONAL

specifies if the CSV file to upload has a header

default = true

[

true

, false]


csvSeparatorchar
Status
colourGreen
titleOPTIONAL

specifies the CSV column separator character

default = ,


csvQuotechar
Status
colourGreen
titleOPTIONAL

specifies the CSV quote character

default = "


csvEscapechar
Status
colourGreen
titleOPTIONAL

specifies the CSV escape character

default = \


csvNullstring
Status
colourGreen
titleOPTIONAL
specifies the replacement of custom CSV null values
csvForceNullenum
Status
colourGreen
titleOPTIONAL
specifies which CSV columns should enforce the null replacement
verboseboolean
Status
colourGreen
titleOPTIONAL

enables more verbose output

default = false

[true, false]
multipartboolean
Status
colourGreen
titleOPTIONAL

enables multipart file upload (recommended for files larger than 2 GB)

default = true

false


gzipboolean
Status
colourGreen
titleOPTIONAL

enables gzip compression

default = true

true


Usage examples:

Please note that your AWS S3 Access Key ID and Secret Access Key must be set using setup command first.

...

Dump data from a specified dataset into a CSV file. Creates new dump with dumped data.

Parameter nameTypeOptionalityDescriptionConstraints
filedirectorystring
Status
colourGreen
titleOPTIONAL
path to the CSV filea directory where project's dump will be createdstored in config file
datasetstring
Status
colourRed
titleREQUIRED
dataset whose data will be dumpedname of the dataset do dump

Anchor
dumpProjectAnchor
dumpProjectAnchor

dumpProject

Dump project data & and metadata to a directory. If the dump if successfull, the current dump is opened.

Parameter nameTypeOptionalityDescriptionConstraints
directorystring
Status
colourGreen
titleOPTIONAL
path to a directory to which the dump will be saved

stored in config file

skipMetadataboolean
Status
colourGreen
titleOPTIONAL

skip metadata dump

default = false


skipDataboolean
Status
colourGreen
titleOPTIONAL

skip data dump

default = false


forceboolean
Status
colourGreen
titleOPTIONAL

skip failed dataset dumps (for projects with incomplete data)

default = false


nativeDatasetsOnlyboolean
Status
colourGreen
titleOPTIONAL

import only native datasets (without origin attribute)

default = false


Anchor
listDumpsAnchor
listDumpsAnchor

listDumps

List all local project dumps in a local directory.

Parameter nameTypeOptionalityDescriptionConstraints
directorystring
Status
colourGreen
titleOPTIONAL
path to a parent directory of a specific project's dumps

stored in config file

...

Parameter nameTypeOptionalityDescriptionConstraints
directorystring
Status
colourGreen
titleOPTIONAL
path to a parent directory of a specific project's dumps

stored in config file

dumpstring
Status
colourGreen
titleOPTIONAL

open a specific dumpspecified dump (eg. 2019-01-01_12-00-00)

if not specified, latest dump is opened


...

Validate the project's data model and data integrity.

Parameter nameTypeOptionalityDescriptionConstraints
projectstring
Status
colourGreen
titleOPTIONAL
validate any other project than the currently opened one

project ID of other project which will be validated


skipModelstring
Status
colourGreen
titleOPTIONAL

skip validations of the data model

default = false


skipDatastring
Status
colourGreen
titleOPTIONAL

skip validations of the data itself

default = false


Opened dump

Anchor
addMetadataAnchor
addMetadataAnchor

...

[true, ][true, false]
Parameter nameTypeOptionalityDescriptionConstraints
skipMetadataboolean
Status
colourGreen
titleOPTIONAL
skip metadata push
skipDataboolean
Status
colourGreen
titleOPTIONAL
skip data push
skipValidateboolean
Status
colourGreen
titleOPTIONAL
skip the run of validate after push
forceboolean
Status
colourGreen
titleOPTIONAL
force metadata push when there's a share breaking change
verbose


boolean
Status
colourGreen
titleOPTIONAL

enables more verbose output

default = false

false


multipartboolean
Status
colourGreen
titleOPTIONAL

enables multipart file upload (recommended for files larger than 2 GB)

default = true


gzipboolean
Status
colourGreen
titleOPTIONAL

enables gzip compression

default = true

[

true

, false]


Anchor
statusAnchor
statusAnchor

...