Socket
Socket
Sign inDemoInstall

@episerver/content-definitions

Package Overview
Dependencies
42
Maintainers
5
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @episerver/content-definitions

CLI tool for managing content definitions manifest files.


Version published
Weekly downloads
11
decreased by-78.85%
Maintainers
5
Created
Weekly downloads
 

Readme

Source

Optimizely Content Delivery JavaScript SDK - Content Definitions

SDK and CLI for managing content definitions and modelling of data in an Optimizely application running the Content Definitions API.

Please visit Optimizely World for full documentation of the APIs.

Installing

Using npm:

$ npm install @episerver/content-definitions@latest --save-dev

using yarn:

$ yarn install @episerver/content-definitions@latest --save-dev

Examples

Help:

$ npx content-definitions --help
Usage: cli <command> [options]

Options:
  -V, --version          Output the version number
  -h, --help             Display help for command

Commands:
  push [options] <path>  Push a manifest with content definitions to a management application from the specified path.
  pull [options] [path]  Pull a manifest with content definitions from a management application to the specified path.
  help [command]         Display help for command

Push content definitions manifest:

$ npx content-definitions push manifest.json -s https://example.com --allowed-upgrades major --authority https://example.com --client-id xxx --client-secret xxx
Usage: cli push [options] <path>

Push a manifest with content definitions to a management application from the specified path.

Options:
  -s, --source <source>                     URL to the management application.
  --authority <authority>                   Login authority.
  --client-id <clientId>                    Login client ID.
  --client-secret <clientSecret>            Login client secret.
  --allowed-upgrades [allowedUpgrades]      Which semantic upgrades of definitions should be allowed. Allowed values are "none", "patch", "minor", and "major".  
  -f, --force [force]                       Should the push proceed even though there are warnings or the changes are not allowed.
  -h, --help                                Display help for command

Pull content definitions manifest:

$ npx content-definitions pull manifest.json -s https://example.com --authority https://example.com --client-id xxx --client-secret xxx

Note that path is optional, if left empty the manifest will be displayed in the output instead.

Usage: cli pull [options] [path]

Pull a manifest with content definitions from a management application to the specified path.

Options:
  -s, --source <source>           URL to the management application.
  --authority <authority>         Login authority.
  --client-id <clientId>          Login client ID.
  --client-secret <clientSecret>  Login client secret.
  -h, --help                      Display help for command

Keywords

FAQs

Last updated on 25 Mar 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc