-
Notifications
You must be signed in to change notification settings - Fork 1
datasource move
dbvr datasource move [-hV] [-from=<fromProjectIdOrName>]
-to=<targetProjectIdOrName>
<datasourceIdOrName>
Tip: You can also use global options with this command.
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.
<datasourceIdOrName>
Specify the datasource ID or name. The value must match an existing datasource in the active workspace.
Tip: Run
datasource listto see available datasources. You can use either the value from theIDcolumn or theNAMEcolumn.
-to, --to-project=<targetProjectIdOrName>
The destination project to move the datasource to.
Tip: Run
project listto see available projects.
-from, --from-project=<fromProjectIdOrName>
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.
Move a datasource to a different project:
dbvr datasource move --to-project=Prod postgres-jdbc-1732d7fda0b-4cbc093ffe99f52d
Move a datasource and specify both source and target projects:
dbvr datasource move \
--from-project=Dev \
--to-project=Prod \
postgres-jdbc-1732d7fda0b-4cbc093ffe99f52d
- Getting started
- Reference
- Commands
- Connection options
- Databases support
- Administration
- About dbvr