Versions Compared

Key

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

...

  • Started - you have started the tool
  • Connected to server - you have successfully logged in to your account on a specific server
  • Opened project - you have opened a project you have access to
  • Opened dump - you have created a new dump, or opened an existing one

...

...

stored in credentials file
Parameter nameTypeOptionalityDescriptionConstraints

email

string
Status
colourGreen
titleOPTIONAL
your email accountstored in credentials file
passwordstring
Status
colourGreen
titleOPTIONAL
your password
accessTokenstring
Status
colourGreen
titleOPTIONAL

generated CleverMaps access token

(see how to get one)

stored in config file
bearerTokenstring
Status
colourGreen
titleOPTIONAL
JWT token generated after signing with limited 1h validity
dumpDirectorystring
Status
colourGreen
titleOPTIONAL
directory where your dumps will be storedstored in config file
serverstring
Status
colourGreen
titleOPTIONAL

server to connect to

default = https://secure.clevermaps.io

stored in config file
proxyHoststring
Status
colourGreen
titleOPTIONAL

proxy server hostname

stored in config file
proxyPortinteger
Status
colourGreen
titleOPTIONAL
proxy server portstored in config file
s3AccessKeyIdstring
Status
colourGreen
titleOPTIONAL

AWS S3 Access Key ID

required for S3 upload (loadCsv --s3Uri)

stored in config file
s3SecretAccessKeystring
Status
colourGreen
titleOPTIONAL

AWS S3 Secret Access Key

required for S3 upload (loadCsv --s3Uri)

stored in config file

Anchor
setupAnchor
setupAnchor

...

emailyour email account
Parameter nameTypeOptionalityDescriptionConstraints
accessTokenstring
Status
colourGreen
titleOPTIONAL

generated CleverMaps access token

(see how to get one)

stored in credentials file config file
passwordserverstring
Status
colourGreen
titleOPTIONAL
your password

server to connect to

stored in credentials config file
accessTokendumpDirectorystring
Status
colourGreen
titleOPTIONAL

generated CleverMaps access token

(see how to get one)

stored in config file
serverstring
Status
colourGreen
titleOPTIONAL

server to connect to

stored in config file
dumpDirectorystring
Status
colourGreen
titleOPTIONAL
directory where your dumps will be storedstored in config file
proxyHoststring
Status
colourGreen
titleOPTIONAL

proxy server hostname

stored in config file
proxyPortinteger
Status
colourGreen
titleOPTIONAL
proxy server portstored in config file
s3AccessKeyIdstring
Status
colourGreen
titleOPTIONAL

AWS S3 Access Key ID

required for S3 upload (loadCsv --s3Uri)

stored in config file
s3SecretAccessKeystring
Status
colourGreen
titleOPTIONAL

AWS S3 Secret Access Key

required for S3 upload (loadCsv --s3Uri)

stored in config file

Connected to server

...

Open a project and set as current. Opens dump if it exists.

Parameter nameTypeOptionalityDescriptionConstraints

project

string
Status
colourRed
titleREQUIRED
Project ID of project to be opened

...

importProject

Allows you to import either:

  • project from a server (e.g. a data dimension)
  • a local dump of a project (See the tutorial)
  • perform import on server

You can also import a part of a project with one of the parameters (dashboards, datasets, indicators, indicatorDrills, markers, markerSelectors, metrics, views). If you specify none of these parameters, the whole project will be imported. Everytime you specify a datasets parameter, corresponding data will be imported.

...

Parameter nameTypeOptionalityDescriptionConstraints
projectstring
Status
colourYellowRed
titleVARIESREQUIRED

Project ID of the project from which files will be imported(info) either project or


dump must be specifieddumpbooleanstring
Status
colourYellow
titleVARIES

ID of a import project from local dump to be imported

(info) either  project or dump must  must be specified


serverSideboolean
Status
colourYellow
titleVARIES

performs import of specified project on server

(info) project 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
dataPermissionsboolean
Status
colourGreen
titleOPTIONAL
import data permission only
datasetsboolean
Status
colourGreen
titleOPTIONAL
import datasets only
exportsboolean
Status
colourGreen
titleOPTIONAL
import exports 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


...

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

Code Block
themeMidnight
titleLoad CSV from AWS S3
loadCsv --dataset orders --mode full --s3Uri s3://my-company/data/orders.csv --verbose

...

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

stringname of the dataset do dump
Parameter nameTypeOptionalityDescriptionConstraints
directorydatasetstring
Status
colourGreenRed
titleOPTIONAL
path to a directory where project's dump will be createdstored in config filedataset
REQUIRED
name of the dataset do dump
forceboolean
Status
colour
Red
Green
title
REQUIRED
OPTIONAL
overwrites dumped data

Anchor
dumpProjectAnchor
dumpProjectAnchor

...

Dump project data and metadata to a directory. If the dump if is 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

overwrites current dump

default = false


nativeDatasetsOnlyboolean
Status
colourGreen
titleOPTIONAL

import only native datasets (without origin attribute)

default = false

...


...

listDumps

List all project dumps in a local directory.

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

stored in config file

...

openDump

Open a specific dump.

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 specified dump (eg. 2019-01-01_12-00-00)

if not specified, latest dump is openedskip failed dataset dumps (for projects with incomplete data)

default = false


Anchor
openDumpAnchor
openDumpAnchor

openDump

Open dump of project.

This command has no parameters.

Anchor
truncateProjectAnchor
truncateProjectAnchor

...

Info
titleUpdating existing metadata objects

When modifying already added (uploaded) metadata objects use pushProject command for uploading modified objects to the project.

...

Parameter nameTypeOptionalityDescriptionConstraints
skipMetadataboolean
Status
colourGreen
titleOPTIONAL

skip metadata push

default = false


skipDataboolean
Status
colourGreen
titleOPTIONAL

skip data push

default = false


skipValidateboolean
Status
colourGreen
titleOPTIONAL

skip the run of validate after push

default = false

forceboolean
Status
colourGreen
titleOPTIONAL

force metadata push when there's a share breaking change

default = false


verbose


boolean
Status
colourGreen
titleOPTIONAL

enables more verbose output

default = false


multipartboolean
Status
colourGreen
titleOPTIONAL

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

default = false


gzipboolean
Status
colourGreen
titleOPTIONAL

enables gzip compression

default = true


...

This command detects files which have been locally or remotely changed, are missing in dump, and also detects files which have a syntax error or constraint violations.

...