datasource move
Synopsis¶
dbvr datasource move [-hV] [-from=<fromProjectIdOrName>]
-to=<targetProjectIdOrName>
<datasourceIdOrName>
Tip
You can also use global options with this command.
Description¶
Move a datasource to a different project within the workspace.
Use this command to reorganize connections across projects - for example, to promote a datasource from a development project to production.
The datasource configuration is preserved. Only its project location changes.
Note
The datasource gets a new ID after being moved. Update any scripts or automation that reference the old ID.
Required argument¶
Specify the datasource ID or name. The value must match an existing datasource in the active workspace.
Tip
Run datasource list to see available datasources. You can use either the value from
the ID column or the NAME column.
Required option¶
--to-project¶
The destination project to move the datasource to.
Tip
Run project list to see available projects.
Options¶
--from-project¶
The source project to move the datasource from. If not set, the current project is used.
Tip
Use this option if the datasource name is not unique across projects.
Example¶
Move a datasource to a different project:
Move a datasource and specify both source and target projects: