You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/commands/profile/index.ts
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,7 @@ function profileCommands(program: Command, _defaultEnvironment: string) {
31
31
.option("-e, --entity <entity>","entities that will be exported (repeatable)",handleEntities,[])
32
32
.addOption(newOption("--setup [environment]","setup a profile to be exported").conflicts(["to","from","from-token","to-token"]))
33
33
.option("--pick","prompt you to pick which entities to be exported")
34
+
.option("--data [variables...]","copy device data with specified variable names (omit names to copy all)")
34
35
.action(startExport)
35
36
.addHelpText(
36
37
"after",
@@ -44,7 +45,8 @@ function profileCommands(program: Command, _defaultEnvironment: string) {
44
45
45
46
${kleur.bold("Entities Export")}:
46
47
- ${highlightMSG("dashboards")}: Export the dashboard label, blueprint devices, tabs, tags and widgets of the dashboard.
47
-
- ${highlightMSG("devices")}: Export the devices and copy relevant data from it, after erasing the data. Must specify the data with the --data option.
48
+
${kleur.bold("Note")}: To export the dashboards while preserving the relationship between Devices/Analysis, ensure they have the export_id tag or any other tag you choose.
49
+
- ${highlightMSG("devices")}: Export the devices configuration. Use --data to also copy device data: --data copies all variables, --data var1 var2 copies only specified variables.
48
50
If you are using device-tokens in Environment Variables or tags, you want to include the device in the export command.
49
51
- ${highlightMSG("analysis")}: Export the analysis name, code, tags, mode and timeout settings.
50
52
- ${highlightMSG("access")}: Export the access rules.
0 commit comments