Skip to main content

CLI commands list

Overview

This page provides a list of the commands you can use in tandem with the Cinchy Command LIne Interface (CLI).

Before attempting to use any of the below commands, ensure that you have installed the CLI.

Global command list

CommandDescription
CommandDescription
syncdataUpdate a target dataset (a Cinchy table, a database table) with data from an input source (a delimited file, Salesforce) using a defined key to match recordsView the parameters for this command. below.
exportdataExports the results of a saved query to a delimited file. Example: ./Cinchy.Connections.CLI.exe exportdata -h -s sandbox.cinchy.net/dev-aurora-2 -d Sandbox -n "Query With Over 1000" -u admin -p cinchy -o 'C:\Users\MyUser\Downloads\output.csv' -r
encryptGenerates an encrypted string for use in other areas of the CLI. View the parameters for this command below.
version Outputs the current version of the CLI.
helpDisplays more information about a specific command.

Parameters

SyncData parameters

ParameterConditionDescription
-h, -HTTPSOptionalFlag indicating connections to Cinchy should be over HTTPS.
-s, --serverRequiredThe full path to the Cinchy server without the protocol (such as cinchy.co/Cinchy).
-u, --useridRequiredThe user id to login to Cinchy.
-p, --passwordRequiredThe password of the specified user. This can be optionally encrypted using the CLI's encrypt command.
-f, --feedRequiredThe Connection name from your Cinchy instance.
-d, --tempdirectoryRequiredOnly applies to Cinchy v4.. The path to a directory that the CLI can use for storing temporary files to support the sync (such as error files).
-b, --batchsizeOptional(Default: 5000) The number of rows to sync per batch (within a partition) when executing inserts/updates.
-z, --retrievalbatchsizeOptional(Default: 5000) The max number of rows to retrieve in a single batch from Cinchy when downloading data.
-v, --param-valuesOptionalJob parameter values defined as one or more name value pairs delimited by a colon. For example, -v name1:value1 name2:value2.
--fileOptionalWorks exactly as -v but it's for parameters that are files.
--helpOptionalDisplays the help screen with the options.
-w, --writetofileOptionalWrite the data from Cinchy to disk, required for large data sets exceeding 2GB.
--l, --patOptionalThe personal access token of the user you want to run the job as. An alternative to userId/password.

ExportData parameters

ParameterConditionDescription
-h, -HTTPSOptionalFlag indicating connections to Cinchy should be over HTTPS.
-s, --serverRequiredThe full path to the Cinchy server without the protocol (cinchy.co/Cinchy).
-u, --useridRequiredThe user id to login to Cinchy.
-p, --passwordRequiredThe password of the specified user. This can be optionally encrypted using the CLI's encrypt command.
-d, --domainRequiredThe domain where your saved query resides.
-n, --nameRequired.The name of your saved query.
-o, --outputpathRequiredThe full path for the target output file.
-l, --delimiterOptionalThe delimiter to used in the output. This can be either COMMA, PIPE, or TAB. This defaults to COMMA if you don't set the parameter.
-i, --includeheadersOptionalA flag to include headers in the output file.
-e, --encodingOptionalThe encoding to use for the output file, either ASCII, UTF8, or UTF16. This defaults to UTF16 if you don't set the parameter.
-t, --commandtimeoutOptionalThe wait time in seconds before terminating the query execution. The maximum timeout allowed is 14400 seconds (4 hours). This defaults to 30 seconds if you don't set the parameter.
-g, --progressbatchsizeOptionalWhen downloading data, this is the number of MB after which progress should be logged. Setting this to 0 prevents any progress messages to the console. This defaults to 10 if you don't set the parameter.
-r, --overwriteoutputOptionalA flag indicating whether to overwrite the output file contents if it already exists.
-q, --donotescapeOptionalSetting this flag prevents text values from being escaped using quotes. This should only be used if you are certain the delimiter won't appear in your data, otherwise output may be invalid.
-v, --param-valuesOptionalQuery parameter values defined as one or more name value pairs delimited by a colon (-v name1:value1 name2:value2)
-a, --tlsOptionalThe TLS protocol version.

Encrypt Parameters

ParameterConditionDescription
-h, -HTTPSOptionalFlag indicating connections to Cinchy should be over HTTPS.
-s, --serverRequiredThe full path to the Cinchy server without the protocol (cinchy.co/Cinchy).
-u, --useridRequiredThe user id to login to Cinchy.
-p, --passwordRequiredThe password of the specified user. This can be optionally encrypted using the CLI's encrypt command.
-t, --textRequiredThe full text that you want to encrypt.
-a, --tlsOptionalThe TLS protocol version.