Gathering detailed insights and metrics for contentful-utility-suite
Gathering detailed insights and metrics for contentful-utility-suite
Gathering detailed insights and metrics for contentful-utility-suite
Gathering detailed insights and metrics for contentful-utility-suite
Suite of tools for managing Content in Contentful CMS
npm install contentful-utility-suite
Typescript
Module System
Node Version
NPM Version
TypeScript (95.33%)
JavaScript (4.67%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
3 Stars
34 Commits
1 Watchers
1 Branches
2 Contributors
Updated on Jul 07, 2025
Latest Version
1.4.1
Package Id
contentful-utility-suite@1.4.1
Unpacked Size
60.34 kB
Size
14.51 kB
File Count
23
NPM Version
10.1.0
Node Version
20.9.0
Published on
Jun 21, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
4
Contentful Utility Suite is a CLI tool designed to simplify and streamline common tasks in Contentful. With this tool, you can migrate content from environment to environment or even Space to Space, you can export specific content collections, you can import and export full Spaces, and you can search for specific content across environments or aliases in your Contentful space.
If you just stumbled onto this package from Google, please find my Medium article on this package for a full walkthrough on how to promote content from development to production environments in Contentful.
The config for this package is global, it's not based in the working directory. You can store multiple Spaces in the config. The CLI tool will test the authentication of your Space credentials upon entering them, if there are errors, the CLI tool will alert you and prompt you to fix (you can bypass).
If you would prefer to update the config with a text editor, you can find the global config file here:
Platform | Config File Path |
---|---|
Windows | C:\Users\Your-User\AppData\Roaming\contentful-utility-suite\config.json |
macOS | /Users/your-user/.config/contentful-utility-suite/config.json |
Linux | /home/your-user/.config/contentful-utility-suite/config.json |
This command is documented in detail in both my Medium article and in my Contentful + Next.js Starter Kit. For the most in depth guide on enterprise level and free tier content promotions, you're best off purchasing the starter kit.
This command allows the user to migrate content from environment to environment in a specific Space. I recommend you use this command for content promotion from your development to production environment. Just like all commands in the CLI tool, you can use both environments and aliases here. You will be able to merge Content Types as well as content.
Export a specific collection of content from a specified environment or alias for further analysis or backup.
1{ 2 "collectionsKey": "pageCollection", 3 "fields": ["name", "slug"] 4}
This example would export all your Pages
"name" and "slug" fields
collectionsKey
: The GraphQL collection key of the content type being exported. Your collection key will be a camel-cased version of your Content Type title followed by Collection
.fields
: An array of fields to include in the export. Add fields as needed.The app will initialize with this example.json
as a template. When using the command you will be prompted to choose a .json
file from a directory called /gqlfields
in your working directory.
You will be prompted to select a Space and then an environment/alias for that Space. The CLI tool will export all content from the chosen environment and will then allow you to run exact string searches on all content (case insensitive).
You can use this command to create backups of an entire environments. These exports can be later be imported to other Spaces through the Import Environment from JSON
command.
Remember to select "Yes" to download all assets if you plan to use this command to transfer environments across Spaces. If you do not, your assets will still be linked to the original Space. And if that original Space is deleted, all your asset links will be broken.
If you import from an environment that has multiple locales to an environment without locales set up, Contentful with automatically set up those missing locales in the target environment.
You can use this command to import full environment export .json
files generated by Export Entire Environment
to replace environments across Spaces or within the same Space. I recommend you only use this command when you are transferring environments across Spaces. If you are trying to move content across environments, you should use Migrate Selected Content
.
Use this command to test that your Space ID, management API key, and content API key are all correctly configured in your .config
file. Sometimes your keys expire and break the other commands. You can use this function to test if authentication is the issue.
To install the Contentful Utility Suite globally:
npm install -g contentful-utility-suite
contentful-utility-suite
If you're looking for someone to set up resilient processes for promoting content, moving it across environments or spaces, or migrating it from another CMS into Contentful, check out my Contentful Content Migration Strategy & Implementation Package on my consulting site. For free resources, see my Medium articles.
If this repo helped you, consider giving it a ⭐ to help others discover it!
If you would consider supporting me I would be very appreciative. At my highest subscription tier, I offer face-to-face support and bug prioritization.
This project is licensed under the ISC License.
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA, OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
No vulnerabilities found.
No security vulnerabilities found.