ldcli
v0.0.1
Published
Fullstack's Learn Dot CLI
Downloads
4
Readme
ldcli - Learn Dot CLI
Workshop Exporter and Importer for Learn Dot
Installation:
git clone https://github.com/FullstackAcademy/ldcli
cd ldcli
npm link
If npm
is set up correctly this will make ldcli
available as a command line tool and npm install
able from the repos. To clone a LearnDot Repo, do this:
Download a Workshop
# this creates a directory that's ready for importing a workshop
ldcli start auther
cd auther
# that's the Workshop ID from Learn Dot
ldcli import 55db96d6c1565e0300b63a76
git commit -am 'initial'
Making/Uploading Changes
Once you make your changes, you can:
git commit -am 'changes'
git push
ldcli validate # make sure the files are set up correctly
ldcli upload # uploads it back into LearnDot
CLI Tool
Output of ldcli
Usage: ldcli [options] [command]
Learn Dot Command Line Interface for Workshops
Options:
-V, --version output the version number
-h, --help output usage information
Commands:
auth Save API credentials to ~/.learn.token
start <dir> Create a directory ready for a workshop
import [options] <workshop-id> Import a Learn Dot workshop into output-dir (concepts/ default)
validate [workshop-def-file] [workshop-slug] Validate workshop (default is to look for workshop in index.js)
upload [workshop-def-file] [workshop-slug] Upload workshop (will also validate and stop if validation fails).