Socket
Socket
Sign inDemoInstall

@telusdigital/contentful-cli

Package Overview
Dependencies
Maintainers
7
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@telusdigital/contentful-cli

## Generate Management API Token


Version published
Weekly downloads
0
Maintainers
7
Weekly downloads
 
Created
Source

TELUS Contentful CLI

Generate Management API Token

  1. Go to https://www.contentful.com/developers/docs/references/authentication/#the-content-management-api
  2. Login to retrieve token

To install

$> npm i @telusdigital/contentful-cli -g

Available Commands

  • Create contentful space

Note: this will create the space, add all locales, register both legal and product UI extension

contentful-cli create-space --space-name "Name of the space" --access-token XXXXXXXXXXXXXXXX
  • List available spaces
contentful-cli list-spaces --access-token XXXXXXXXXXXXXXXX
  • Delete a space
contentful-cli delete-space --space-id ID_OF_SPACE --access-token XXXXXXXXXXXXXXXX
  • List locales
contentful-cli list-locales --space-id ID_OF_SPACE --access-token XXXXXXXXXXXXXXXX
  • Add locales
contentful-cli add-locales --space-id ID_OF_SPACE --access-token XXXXXXXXXXXXXXXX
  • Delete locale
contentful-cli delete-locale --space-id ID_OF_SPACE --access-token XXXXXXXXXXXXXXXX --locale-id ID_OF_LOCALE
  • Register Legal UI Extension
contentful-cli register-legal-extension --space-id ID_OF_SPACE --access-token XXXXXXXXXXXXXXXX
  • Register Product UI Extension
contentful-cli register-product-extension --space-id ID_OF_SPACE --access-token XXXXXXXXXXXXXXXX
  • List Templates

List available templates(content types) in a space

contentful-cli list-space-templates --space-id ID_OF_SPACE --access-token XXXXXXXXXXXXXXXX
  • Clone Template

Clone a template(content type) from one space to another

contentful-cli clone-template --from-space-id FROM_SPACE_ID --to-space-id TO_SPACE_ID --access-token XXXXXXXXXXXXXXXX --template-id ID_OF_TEMPLATE_TO_CLONE

FAQs

Package last updated on 03 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc