⌨️ CLI
Stencila on the command line
⚠️ Deprecated
This project is deprecated and no longer maintained. Please see, our main repository, stencila/stencila
, for other projects that provide similar or alternative functionality.
📦 Install
The installation requires two steps:
- Download and unpack the binary file with the CLI for your operating system.
- Copy the binary file to the relevant location in your operating system so that you can easily access the tool in the command line:
- on Windows, create a folder in
C:/ProgramFiles/stencila
and copy thestencila.exe
file into it; then open Windows Command Line and add the folder to thePATH
:setx PATH "$env:path;C:/ProgramFiles/stencila"
- on Linux, copy the
stencila
binary file to/usr/local/bin/
; - on Mac OS X, copy the
stencila
file to the/Applications
folder.
⚡ Use
Get a list of available commands...
stencila help
Get help on a specific command e.g.
stencila help convert
⚒️ Develop
npm install
npm run lint
npm test
npm run build
Or, if you prefer make
:
make setup lint test build
The binaries stencila-cli-linux
, stencila-cli-macos
and stencila-cli-win.exe
in the build
directory. You can test them out there e.g.
./build/stencila-cli-linux convert test/fixtures/hello-world.md test/outputs/hello-world.html
The Travis CI build will upload binaries to the releases page. So, if there is no lint and all tests pass, make a release by pushing a tag:
git tag v0.29.0
git push && git push --tags
npm run release