Skip to content

A command line tool for modifying attributes and content of Open Learning XML (OLX)

License

Notifications You must be signed in to change notification settings

ibm-skills-network/olx-cli

Repository files navigation

olx-cli

A command line tool for modifying attributes and content of Open Learning XML (OLX)

oclif Version Downloads/week License

Usage

$ npm install -g @ibm-skills-network/olx-cli
$ olx-cli COMMAND
running command...
$ olx-cli (-v|--version|version)
@ibm-skills-network/olx-cli/0.1.12 darwin-arm64 node-v18.15.0
$ olx-cli --help [COMMAND]
USAGE
  $ olx-cli COMMAND
...

Commands

olx-cli help [COMMAND]

display help for olx-cli

USAGE
  $ olx-cli help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

olx-cli list-labs COURSEARCHIVEPATH

Returns a list of all labs used in the course along with their tool types

USAGE
  $ olx-cli list-labs COURSEARCHIVEPATH

ARGUMENTS
  COURSEARCHIVEPATH  Path to OXL course archive

EXAMPLE
  $ oxl-cli list-labs archive.gz

See code: src/commands/list-labs.js

olx-cli set-course COURSEARCHIVEPATH

Set course attributes

USAGE
  $ olx-cli set-course COURSEARCHIVEPATH

ARGUMENTS
  COURSEARCHIVEPATH  Path to OXL course archive

OPTIONS
  --courseCard=courseCard              path or url to course card image file. PNG, JPG.
  --lti                                enable lti_consumer module

  --ltiPassport=ltiPassport            lti consumer key and secret pair, no speical character is allowed. e.g,
                                       consumer_key:consumer_secret

  --name=name                          course name

  --out=out                            path to output archive

  --overview=overview                  course overview

  --policyXml=policyXml                valid xml string to override course/<url_name>.xml

  --shortDescription=shortDescription  course short description

  --startDate=startDate                course start date in ISO 8601 format

DESCRIPTION
  Update course attributes of an existing course archive.

EXAMPLE
  $ oxl-cli set-course archive.gz --name "New Course Name"

See code: src/commands/set-course.js