Giter Site home page Giter Site logo

dc-cli's Introduction

dc-cli

Command line interface for Amplience Dynamic Content service.

Description

dc-cli is a command line interface application for Amplience Dynamic Content management APIs.

Run dc-cli to get a list of available commands

Installation

Installing the DC CLI from the NPM package manager can be achieved using the following command:

npm install -g @amplience/dc-cli

Or you can download the executable for your operating system on the releases page.

Configuration

dc-cli requires a valid set of Amplience client credentials (--clientId & --clientSecret) and hub ID (--hubId) to operate. These parameters must be set using the command dc-cli configure --clientId <YOUR_CLIENT_ID> --clientSecret <YOUR_CLIENT_SECRET> --hubId <YOUR_HUB_ID> before using the CLI.

Once the tool has been configured the individual parameters can be overwritten by supplying them when running any of the commands, e.g dc-cli <command> <action> --hubId <YOUR_HUB_ID>.

By default the configuration is saved to a file in the directory <HOME_DIR>/.amplience/, this can be overridden using the --config option.

See dc-cli configure --help for more information.

Usage

Building the CLI

We have included some NPM scripts to help create various installations of the CLI.

Required permissions

Outlined below are the detailed permissions required to run each command of the CLI. To request an API key to run the CLI, please contact Amplience support.

Command Required ACL(s) Required Functional Permission(s)
configure Hub - READ
content-repositories get <id> Hub - READ CONTENT:FUNCTIONAL:REPOSITORY:READ
content-repositories list Hub - READ CONTENT:FUNCTIONAL:REPOSITORY:READ
content-repositories assign-content-type <id> ContentRepository - EDIT
Hub - READ
CONTENT:FUNCTIONAL:REPOSITORY:EDIT
content-repositories unassign-content-type <id> ContentRepository - EDIT
Hub - READ
CONTENT:FUNCTIONAL:REPOSITORY:EDIT
content-type get <id> Hub - READ CONTENT:FUNCTIONAL:CONTENT_TYPE:READ
content-type list Hub - READ CONTENT:FUNCTIONAL:CONTENT_TYPE:READ
content-type register Hub - READ CONTENT:FUNCTIONAL:CONTENT_TYPE:CREATE
content-type sync <id> Hub - READ CONTENT:FUNCTIONAL:CONTENT_TYPE:EDIT
content-type update <id> Hub - READ CONTENT:FUNCTIONAL:CONTENT_TYPE:EDIT
content-type import <dir> ContentRepository - EDIT
Hub - READ
CONTENT:FUNCTIONAL:CONTENT_TYPE:READ
CONTENT:FUNCTIONAL:CONTENT_TYPE:CREATE
CONTENT:FUNCTIONAL:CONTENT_TYPE:EDIT
content-type export <dir> Hub - READ CONTENT:FUNCTIONAL:CONTENT_TYPE:READ
content-type-schema create Hub - READ CONTENT:FUNCTIONAL:CONTENT_TYPE:CREATE
content-type-schema get <id> Hub - READ CONTENT:FUNCTIONAL:CONTENT_TYPE:READ
content-type-schema list Hub - READ CONTENT:FUNCTIONAL:CONTENT_TYPE:READ
content-type-schema update <id> Hub - READ CONTENT:FUNCTIONAL:CONTENT_TYPE:EDIT
content-type-schema import <dir> Hub - READ CONTENT:FUNCTIONAL:CONTENT_TYPE:READ
CONTENT:FUNCTIONAL:CONTENT_TYPE:CREATE
CONTENT:FUNCTIONAL:CONTENT_TYPE:EDIT

dc-cli's People

Contributors

easen-amp avatar simonmudd avatar rs-amp avatar benj0s avatar c-bibby avatar amp-automation avatar pikinerliliya avatar techiedarren avatar seanives avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.