automatic-lpk

Create, upload and check a Cogito LPK

Usage no npm install needed!

<script type="module">
  import automaticLpk from 'https://cdn.skypack.dev/automatic-lpk';
</script>

README

automatic-lpk

This package lets you:

  • connect to a Cogito Server via ssh
  • checkout (SVN) a given Cogito project
  • create the LPK from a checkedout Cogito project
  • upload the LPK to a given server
  • verify the LPK correctness against some predefined tests

Setup

$ npm i

Tests

$ npm t

CLI

Command-based CLI. To see docs, simply run

$ automatic-lpk

or install CLI globally from this local module:

$ npm i -g .

SVN Checkout

Checkout (SVN) a given Cogito project

$ automatic-lpk svn-checkout --projectName 'Wonderflow_EN'

Locally

 LOG=debug bin/run svn-checkout --projectName 'Wonderflow_EN'

Generate an LPK

Create the LPK from a checkedout Cogito project

$ automatic-lpk create-lpk --projectName 'Wonderflow_EN'


Locally

 LOG=debug bin/run create-lpk --projectName 'Wonderflow_EN'

Upload an LPK

Upload the LPK to a given server

$ automatic-lpk upload-lpk --projectName 'Wonderflow_EN' --lpkName 'wonderflow_en.lpk' --server 'discover1.wonderflow.co'
$ automatic-lpk upload-lpk --p 'Wonderflow_EN' --l 'wonderflow_en.lpk' --s 'discover1.wonderflow.co'


Locally

 LOG=debug bin/run upload-lpk --projectName 'Wonderflow_EN' --lpkName 'wonderflow_en.lpk' --server 'discover1.wonderflow.co'
 LOG=debug bin/run upload-lpk --p 'Wonderflow_EN' --l 'wonderflow_en.lpk' --s 'discover1.wonderflow.co'

Verify an LPK