JSPM

  • Created
  • Published
  • Downloads 347
  • Score
    100M100P100Q115530F
  • License ISC

Package Exports

  • @archer-edu/dxp-directus-cli
  • @archer-edu/dxp-directus-cli/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@archer-edu/dxp-directus-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

DXP Directus CLI

NPM version NPM monthly downloads NPM total downloads

This is the DXP Directus CLI for incorporating Directus data into DXP builds.

Getting started

Install the CLI

yarn add @archer-edu/dxp-directus-cli -D

Once it is installed, you can call one of two commands: pull-pages or pull-blog.

Pull Blog

Usage:

cmsctl pull-blog|b [options] <siteId>

Pull a site's blog posts to the 'blog' directory inside content

Options:

  -b, --blog-dir              Change the 'blog' path. (This directory is relative to /content)
  -i, --download-images <d>   Download images to a directory (ie 'assets/images'). If omitted, images use the CDN
  -r, --redirect [redirect]   Add a global redirect for each of the blog entries, relative to their path (slug/redirect).
  -d, --debug                 Enable debug mode
  -h, --help                  Display help for command

Pull pages

Usage:

cmsctl pull-pages|p [options] <siteId>

Pull content pages from directus into the 'content' directory

Options:

  -d, --debug  Enable debug mode
  -i, --download-images  <imageDir>  Download images to a directory (ie 'assets/images'). If omitted, images use the CDN
  -h, --help   display help for command