Contentful's command line interface tool. Use Contentful features straight from your CLI.
Contentful provides a content infrastructure for digital teams to power content in websites, apps, and devices. Unlike a CMS, Contentful was built to integrate with the modern software stack. It offers a central hub for structured content, powerful management and delivery APIs, and a customizable web app that enable developers and content creators to ship digital products faster.
- Securely login and logout with our OAuth service.
- Manage spaces - List, create, ...
- Seed your space with example data
- Manage installation of extensions in a space
- Run a guide which introduces you to the Contentful basics.
- Find all available commands in the docs section.
- More to come soon! 🚀
Using npm:
npm install -g contentful-cliUsing yarn:
yarn global add contentful-cliPlease note that for the non standalone versions you need node => v6 to use the CLI.
Use the --help parameter to display the help section for CLI tool or combined with a specific command to get the help section for that command.
contentful --help
# or
contentful space --helpTo enable bash-completion for available commands use the completion command and concat the generated script to your .bashrc or .bash_profile.
contentful completionYou can save the proxy configuration in your .contentfulrc.json via:
contentful config add --proxy user:auth@host:portWe also respect the http(s)_proxy environment variables:
https_proxy=user:auth@host:port contentfulWhen multiple proxy configurations exists, precedence is taken in this form:
http_proxytakes precedence over.contentfulrc.jsonhttps_proxytakes precedence over.contentfulrc.jsonhttps_proxytakes precedence overhttp_proxy
More detailed documentation for every command can be found in the docs section.
After installing the dependencies, there is a trick to get your version of the CLI tool available globally on your system:
npm linkThis may collide with your already globally installed Contentful CLI. Make sure to remove that one first.
CLI_E2E_CMA_TOKEN = <cma_auth_token>
CLI_E2E_ORG_ID = <organization_id>
npm run test:e2e$ ava test/integration/** --verbose --serialrm ~/.contentfulrc.json
If you have a problem with this tool, please file an issue here on Github.
If you have other problems with Contentful not related to this library, you can contact Customer Support.
See CONTRIBUTING.md
MIT