Data-sharing tasks

Use data-share to query publications and subscriptions, create, update, or delete a publication, or subscribe to and unsubscribe from an existing publication.

moi-cli -o data-share publishes
moi-cli -o data-share subscriptions
moi-cli data-share --help

Manage publications and subscriptions

Task

Commands

Notes

Check a publication name

check-publish-name

Checks availability only; it does not create a publication.

Manage publications

create-publish, update-publish, delete-publish

Confirm source tables and target workspaces before a write.

Manage subscriptions

subscribe, unsubscribe

These commands change access relationships.

Confirm target workspaces

resolve-workspace-names

Use the confirmed workspace identity for later steps.

Data sharing changes cross-workspace data visibility. Before publishing, subscribing, unsubscribing, or deleting, confirm source objects, target workspaces, and access permissions; query publication or subscription state again after the operation.

Check publication scope

Object to inspect

Commands

Notes

Source tables available to publish

source-tables

Confirm source tables before creating or updating a publication.

Existing publication

publish-summary

Reads the summary of a publication.

Target workspace

workspace-names-result, resolve-workspace-names

Confirms the name and workspace relationship.

Save confirmed source-table and target-workspace identifiers before creating or updating a publication. Deleting a publication or unsubscribing changes access relationships, so confirm that dependents no longer require the shared data first.

Last updated on