New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@archer-edu/dxp-directus-cli

Package Overview
Dependencies
Maintainers
0
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@archer-edu/dxp-directus-cli

README.md

  • 2.2.1
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

DXP Directus CLI

NPM version NPM monthly downloads NPM total downloads

This is the DXP Directus CLI for incorporating CMS data from Directus into our into DXP website builds.

Getting started

Install the CLI

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

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

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 data

Usage:

cmsctl pull-data|d [options] <siteId>

Pull site data from directus and write to the 'data' directory

Options:

  -D, --directory <directory>  Directory output for file creation.
  -f, --force                  Force-delete the directory before writing files.
  -d, --debug                  Enable debug mode
  -r, --drafts                 Include drafts (used for preview environment)
  -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

Keywords

FAQs

Package last updated on 17 Dec 2024

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