Skip to content
Branch: master
Find file History
jroehl fix(commands): import --no-update flag
Changed the flag --no-update to --update defaulting to true. In that way it is possible to specify --no-update or --update false to disable update of an entry if it exists.
Latest commit 3af4fda Jul 1, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information. fix(commands): import --no-update flag Jul 1, 2019

Contentful CLI - space import command

This Command helps you to import files generated by the export command to new and empty Contentful spaces.


Usage: contentful space import --content-file <file>

  -h, --help                 Show help                                 [boolean]
  --space-id                 ID of the destination space                [string]
  --environment-id           ID the environment in the destination space
                                                    [string] [default: "master"]
  --management-token         Contentful management API token            [string]
  --content-file             JSON file that contains data to be import to your
                             space                           [string] [required]
  --content-model-only       Import only content types[boolean] [default: false]
  --skip-content-model       Skip importing content types and locales
                                                      [boolean] [default: false]
  --skip-locales             Skip importing locales   [boolean] [default: false]
  --skip-content-publishing  Skips content publishing. Creates content but does
                             not publish it           [boolean] [default: false]
  --update                   Update entries if they already exist
                                                      [boolean] [default: true]
  --error-log-file           Full path to the error log file            [string]
  --management-host          Management API host
                                        [string] [default: ""]
  --proxy                    Proxy configuration in HTTP auth format:
                             [http|https]://host:port or
                             [http|https]://user:password@host:port     [string]
  --config                   An optional configuration JSON file containing all
                             the options for a single run


contentful space import \
  --content-file exported-file.json \


  • This tool currently does not support the import of space memberships.
  • This tool is expecting the target space to have the same default locale as your previously exported space.
  • Imported webhooks with credentials will be imported as normal webhooks. Credentials should be added manually afterwards.
  • If you have custom UI extensions, you need to reinstall them manually in the new space. Check this link on how to install them
You can’t perform that action at this time.