-h,--host <arg> GoodData host (secure.gooddata.com by default)
-f, --ftphost <arg> GoodData FTP host (secure-di.gooddata.com by default)
-t, --proto <arg> Protocol to access GoodData (HTTP or HTTPS, HTTPS by default)
-s, --insecure Disable encryption for HTTP and FTP (prefer this to -t)
-p,--password <arg> GoodData password
-u,--username <arg> GoodData username
-i,--project <arg> GoodData project identifier (takes the form of an MD5 hash)
-e,--execute <arg> Commands to execute
-V, --version Prints out the tool version
-T, --timezone Set the default timezone (i.e. -T UTC or --timezone=UTC)
file path to script file with commands to execute
CreateProject(name="...", desc="...", templateUri="..."); - create a new project on the server
DeleteProject(id="..."); - drop the project on the server - id - (optional) project id, if not specified, the command tries to drop the current project
OpenProject(id="..."); - open an existing project for data modeling and data upload. - id - identifier of an existing project (takes the form of an MD5 hash)
RememberProject(fileName="..."); - saves the current project identifier into the specified file - fileName - file to save the project identifier
UseProject(fileName="..."); - loads the current project identifier from the specified file - fileName - file to load the project identifier from
InviteUser(email="...", msg="...", role="..."); - invites a new user to the project (must call CreateProject or OpenProject before)
admin|editor|dashboard onlyCreateUser(domain="...", username="...", password="...", firstName="...", lastName="...", company="...", phone="...", country="...", position="...", ssoProvider="...", usersFile="...", append="..."); - creates a new user.
GetProjectUsers(usersFile="...", field = "...", activeOnly=<true|false>); - get list of users from the current project
AddUsersToProject(usersFile="...", role="...") - adds users in the usersFile to the open project in a specific role. You must be both domain and project admin to be allowed to use this command.
DisableUsersInProject(usersFile="...") - disables users in the usersFile in the open project - usersFile - the list of user URIs in a file
ExportProject(tokenFile="...", exportUsers="...", exportData="...", authorizedUsers="..."); - exports an existing project to temporary storage and returns the import token
true | falsetrue | falseImportProject(tokenFile="..."); - imports a previously exported project content identified by the import token to a new empty project - tokenFile - a file where the import token will be stored
Important: All the commands in this section expect to know what project to work in already. You must call
CreateProject,OpenProjectorRetrieveProjectin your script at some place before these commands.
ExportMetadataObjects(tokenFile="...", objectIDs=""); - exports metadata objects with all dependencies, the attributes and facts must be created via ExecuteMaql
ImportMetadataObjects(tokenFile="...", overwrite="<true|false>", updateLDM="<true|false>"); - imports metadata objects from the token, the attributes and facts must be created via ExecuteMaql
RetrieveMetadataObject(id="...", file="..."); - retrieves a metadata object and stores it in a file
StoreMetadataObject(file="...", id="..."); - stores a metadata object with a content (JSON) in file to the metadata server
DropMetadataObject(id="..."); - drops the object with specified id from the project’s metadata - id - valid object id (integer number)
Lock(path="..."); - prevents concurrent run of multiple instances sharing the same lock file. Lock files older than 1 hour are discarded. - path - path to a lock file
MigrateDatasets(configFiles="..."); - migrates the project’s datasets from CL 1.1.x to CL 1.2.x - configFiles - the comma separated list of ALL project’s dataset’s XML configuration files
GenerateManifests(configFiles="...", dir="..."); - Generates the SLI manifests for specified XML config files
Important: All the commands in this section expect to know what project to work in and how your data model looks. You must call one of (
CreateProject,OpenProjectorRetrieveProject) commands and aUse<Connector>command in your script at some place before these commands.
GenerateMaql(maqlFile="..."); - generate MAQL DDL script describing data model from the local config file - maqlFile - path to MAQL file (will be overwritten)
GenerateUpdateMaql(maqlFile="..."); - generate MAQL DDL alter script that creates the columns available in the local configuration but missing in the remote GoodData project - maqlFile - path to MAQL file (will be overwritten)
ExecuteMaql(maqlFile="...", ifExists="..."); - run MAQL DDL script on server to generate data model
Important: All the commands in this section expect to know what project to work in and know the data model and data. You must call one of (
CreateProject,OpenProjectorRetrieveProject) commands and aUse<Connector>command in your script at some place before these commands.
TransferData(incremental="...", waitForFinish="..."); - upload data to the GoodData server
Dump(csvFile="..."); - dumps the connector data to a local CSV file - csvFile - path to the CSV file
ExecuteDml(maql="..."); - executes a MAQL DML command (e.g. DELETE) - maql - the maqlDML command
The following commands provide data connectors for consuming data from flat files (CSV Connector), databases (JDBC Connector) and even SaaS apps (Salesforce, Google Analytics, PivotalTracker Connectors). All connectors provide commands like Generate<Type>Config, Use<Type>, Export<Type>ToCsv. Data input should be encoded in UTF-8.
GenerateCsvConfig(csvHeaderFile="...", configFile="...", defaultLdmType="...", facts="...", folder="...", separator="..."); - generate a sample XML config file based on the fields from your CSV file. If the config file exists already, only new columns are added. The config file must be edited as the LDM types (attribute | fact | label etc.) are assigned randomly.
UseCsv(csvDataFile="...", configFile="...", hasHeader="...", separator = "..."); - load CSV data file using config file describing the file structure, must call CreateProject or OpenProject before
GenerateGoogleAnalyticsConfig(name="...", configFile="...", dimensions="...", metrics="..."); - generate an XML config file based on the fields from your GA query.
UseGoogleAnalytics(configFile="...", username="...", password="...", profileId="...", dimensions="...", metrics="...", startDate="...", endDate="...", filters="..."); - load GA data file using config file describing the file structure, must call CreateProject or OpenProject before
GenerateJdbcConfig(name="...", configFile="...", driver="...", url="...", query="...", username="...", password="..."); - generate an XML config file based on the fields from your JDBC query.
jdbc:derby:mydb)SELECT employee,dept,salary FROM payroll)UseJdbc(configFile="...", driver="...", url="...", query="...", username="...", password="..."); - load JDBC data file using config file describing the file structure, must call CreateProject or OpenProject before
ExportJdbcToCsv(dir="...", driver="...", url="...", username="...", password="..."); - exports all tables from the database to CSV file
GenerateSfdcConfig(name="...", configFile="...", query="...", username="...", password="...", token="..."); - generate an XML config file based on the fields from your SFDC query.
UseSfdc(configFile="...", query="...", username="...", password="...", token="..."); - load SalesForce data file using config file describing the file structure, must call CreateProject or OpenProject before
UseMsCrm(configFile="...", username="...", password="...", host="...", org="...", entity="...", fields="..."); - load MS CRM 2011 data file using config file describing the file structure, must call CreateProject or OpenProject before
UseSugarCrm(configFile="...", username="...", password="...", host="...", entity="...", fields="..."); - load Sugar CRM data file using config file describing the file structure, must call CreateProject or OpenProject before
UseChargify(configFile="...", apiKey="...", domain="...", entity="...", fields="..."); - load Chargify data file using config file describing the file structure, must call CreateProject or OpenProject before
UsePivotalTracker(username="...", password="...", pivotalProjectId="...", storyConfigFile="...", labelConfigFile="...", labelToStoryConfigFile="...", snapshotConfigFile="..."); - downloads and transforms the PT data.
UseDateDimension(name="...", includeTime = "...", type = "..."); - load new time dimension into the project, must call CreateProject or OpenProject before