Data source EdgeCmd scripts
- Last UpdatedJul 24, 2026
- 1 minute read
The following EdgeCmd commands configure specific facets of the data source.
The examples in this topic use the default port number 5590. If your adapter uses a different port, you will have to include that in the command. For instance: edgecmd -port 5591 <RestOfTheCommand>.
Also, the examples in the table show different componentIds, so make sure to use the right componentId for your adapter.
|
EdgeCmd command |
Description |
Examples |
|---|---|---|
|
edgecmd get DataSource -cid <componentId> |
Get the data source configuration for the specified component. |
edgecmd get DataSource -cid OpcUa1 |
|
edgecmd set DataSource -cid <componentId> [-file <filepath>] |
Import the data source configuration for the specified component. |
edgecmd set DataSource -cid MQTT1 -file C:\Users\TestUser\DataSource\Configuration.json |
|
edgecmd set DataSource -cid <componentId> [-<adapterSpecificParameter> <value>] |
Import the data source configuration parameter for the specified component. |
edgecmd set DataSource -cid RDBMS1 -UseSecureConnection true |
|
edgecmd edit DataSource -cid <componentId> [-<adapterSpecificParameter> <value>] |
Change the data source configuration parameter for the specified component. |
edgecmd edit DataSource -cid OpcUa1 -UseSecureConnection false |
|
edgecmd remove Datasource -cid <componentId> [-y] |
Remove the data source configuration for the specified component. |
edgecmd remove Datasource -cid MQTT1 -y |
|
edgecmd help Datasource -cid <componentId> |
Display the help output for the data source facet. |
edgecmd help Datasource -cid RDBMS1 |
Use EdgeCmd utility to add and remove adapter, and to configure facets of the components.
If a command contains slashes, you must add escape characters as follows:
-
In Windows, add a second backslash (\).
Example: TestUser\OilCompany becomes TestUser\\OilCompany
-
In Linux, replace each backslash (\) with four backslashes (\\\\).
Example: TestUser\OilCompany becomes TestUser\\\\OilCompany