Skip to content

datasource move

dbeaver-devops edited this page Jun 2, 2026 · 1 revision

Table of contents

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

<datasourceIdOrName>

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

-to, --to-project=<targetProjectIdOrName>

The destination project to move the datasource to.

Tip: Run project list to see available projects.

Options

--from-project

-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.

Example

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

Clone this wiki locally