Skip to content

Migrate content for Sanity dataset from global (production) to test (global test)

Wenche Tollevsen edited this page May 23, 2022 · 2 revisions

The global test environment uses a copy of the production dataset. The test dataset should be updated at some intervals and the easiest way is to use the Sanity CLI

  1. Log in sanity login --sso equinor-sanity
  2. Use export to export the production dataset sanity dataset export global global-copy
    sanity dataset export --help will give an overview over available commands
  3. Import the dataset into the test dataset sanity dataset import global.tar.gz global-test --replace