Send text-based data to a feed created from a Push Connection. The data can be read from a file, a string literal, or via standard input (using |, <, or manual entry terminated by Ctrl+D).
Command
bin/es-cli.sh push feed [--clear] [-f file] [-d value]
Options
Flag | Required | Description |
---|---|---|
clear | No | Excludes any data specified by file, string, or standard input. Removes existing data from the specified feed. |
Parameters
Flag | Required | Description |
---|---|---|
feed | Yes | Must refer to an existing feed in edgeCore. If redirecting data to standard input (using | or <), masked password prompts will not function, as the JVM is in non-interactive mode. This mode disables the console that is necessary for the password prompt. |
f | No | File name. Must point to a readable file. |
d | No | String literal data. |
Examples
Clears existing data from the feed named MyFeed:
bin/es-cli.sh --user admin --pass admin push MyFeed --clear
Pushes the data “MyData,MyData1,MyData2″ to the feed named MyFeed using the direct string literal option:
bin/es-cli.sh --user admin --pass admin push MyFeed -d "MyData1,MyData2,MyData3"
Pushes the data from My.csv to the feed named MyFeed using the direct string literal option:
bin/es-cli.sh --user admin --pass admin push MyFeed -f "My.csv"