Extension management with the Contentful CLI
These commands will help you manage extensions in Contentful.
Requirements
- A (free) Contentful account
- Locally installed
contentful-cli - Authenticated with
contentful-cli
List available commands and their description
Create a new extension
Create an extension using srcdoc with automatically assigned ID and two field types:
When using the srcdoc property, an extension is considered internally hosted. A file being pointed by the srcdoc property will be loaded and uploaded as a string to Contentful. All local dependencies have to be manually inlined into the file. The command line tool does not take care of link resolving and inlining of referenced local resources. The maximum size of a file used with the srcdoc property is 512kB.
Create an extension using ./extension.json descriptor file and provide installation parameter:
Examples of
extension.jsonfiles and extensions in general can be found here.
Get a list of all available extensions
Lists all available extensions from a space.
The output should look similar to this:
Delete an extension
Deletes an extension from a space.
The output should look similar to this:
Get an extension
Prints information about the requested extension.
The output should look similar to this:
Update an extension
Update an extension without providing its current version:
Update an extension using srcdoc and two field types:
Update an extension using ./extension.json descriptor file and provide installation parameter: