Skip to content

leanpanda-com/datocms-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

datocms-tools

Utilities for DatoCMS.

Install globally with npm:

npm add -g datocms-tools

Install globally with yarn:

yarn global add datocms-tools

datocms-dump

Dumps all project data as JSON files.

$ DATOCMS_API_KEY={{your DatoCMS read-only API key}} datocms-dump

Creates the following:

  • itemTypes.json
  • items.json
  • site.json
  • uploads.json

datocms-get-uploads

Downloads all the project uploads to a local directory.

$ DATOCMS_API_KEY={{your DatoCMS read-only API key}} datocms-get-uploads {{output path}}

If you want logging, pass the VERBOSE environment:

$ DATOCMS_API_KEY={{your DatoCMS read-only API key}} VERBOSE=1 datocms-get-uploads {{output path}}

The download is progressive, so if files are already present, they will not be re-downloaded.

If you want to forse re-download, supply the OVERWRITE_EXISTING environment:

$ DATOCMS_API_KEY={{your DatoCMS read-only API key}} OVERWRITE_EXISTING=1 datocms-get-uploads {{output path}}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published