1.11.0 • Published 7 months ago

jsharmony-cli v1.11.0

Weekly downloads
38
License
LGPL-3.0
Repository
github
Last release
7 months ago

==============

jsharmony-cli

==============

jsHarmony command-line interface

Prerequisites

  • Node.js

Installation

npm install -g jsharmony-cli

After installation, the "jsharmony" program should be available from your shell.

If jsharmony doesn't run, ensure the Node.js npm folder is in your system PATH variable.

Usage

-------------------
:::jsHarmony CLI:::
-------------------
Usage: jsharmony [command] [options]

The following commands are available:

create factory        - Initializes a standard application
    --with-client-portal | --no-client-portal | --with-sample-data | --admin-pass [PASSWORD]
create project [NAME] - Initializes a jsHarmony application from the App Library
    --path [PATH]         (optional) Local filesystem path to project source
    --url [URL]           (optional) URL path to project source
create empty          - Initializes empty scaffolding
create tutorials      - Initializes the quickstart tutorials application

create database       - Creates a new jsHarmony Factory database
init database         - Adds jsHarmony Factory tables to an existing database
    --with-client-portal | --no-client-portal | --with-sample-data | --admin-pass [PASSWORD]

For verbose diagnostic messages, append the -v flag

generate salt         - Generate a random salt
    --no-symbols          Generate without symbols
    --length [LENGTH]     Generate salt with a certain length
generate cert         - Generate a self-signed certificate
    --domain [DOMAIN]     Certificate domain (optional)
generate models      - Auto-generate models based on the database schema
    -t [DATABASE TABLE]  Database table name, or * for all tables (required)
    -f [FILENAME]        Output filename (optional)
    -d [PATH]            Output path (optional)
    -db [DATABASE]      Target database (optional)
generate sqlobjects  - Auto-generate sqlobjects based on the database schema
    -t [DATABASE TABLE]  Database table name, or * for all tables (required)
    -f [FILENAME]        Output filename (optional)
    -d [PATH]            Output path (optional)
    -db [DATABASE]       Target database (optional)
    --with-data          Include data in generated models
    --where [WHERE]      WHERE clause for export data (optional)

test install           - Install jsharmony-test in the current project
test recorder          - Open a browser to record a new test
    --full-element-paths  (optional) Generate full element paths instead of shortest path
test master screenshots- Recreate the master set of screenshots for tests
    [PATH]                (optional) directory of test files (else, current directory)\r\n\
    --config [PATH]       (optional) Local filesystem path to an alternate test config file
    --show-browser        Show the browser window used for screenshot capture
    --silent              Do not open image review afterwards
test screenshots       - Recreate comparison images and run comparison report
    [PATH]                (optional) directory of test files (else, current directory)\r\n\
    --config [PATH]       (optional) Local filesystem path to an alternate test config file
    --show-browser        Show the browser window used for screenshot capture
    --silent              Do not open comparison report afterwards

watch [path1] [path2]  - Watch paths for changes
    --exec [CMD]             (optional) Shell command to execute on change
    --exec-for [REGEX] [CMD] (optional) Shell command to execute on change for path regex
    --notify-port [PORT]     (optional) HTTP Endpoint that notifies clients of changes

Examples

1. Create a new jsHarmony Factory project:

jsharmony create factory

2. Initialize the tutorials project:

jsharmony create tutorials

3. Create a new empty project (for advanced use cases):

jsharmony create empty

4. Creates a new jsHarmony Factory database

jsharmony create database

5. Initialize jsHarmony Factory tables in an existing database

jsharmony init database

6. Generate model files for all the tables in the database

generate -t *

7. Generate model files for the "C" database table

generate -t C

1.11.0

7 months ago

1.6.0

2 years ago

1.9.0

2 years ago

1.7.0

2 years ago

1.10.0

2 years ago

1.5.0

2 years ago

1.4.0

2 years ago

1.2.1

2 years ago

1.2.0

3 years ago

1.1.36

3 years ago

1.1.35

3 years ago

1.1.34

3 years ago

1.1.33

3 years ago

1.1.32

3 years ago

1.1.31

3 years ago

1.1.30

3 years ago

1.1.29

3 years ago

1.1.28

3 years ago

1.1.27

4 years ago

1.1.26

4 years ago

1.1.25

4 years ago

1.1.24

4 years ago

1.1.23

4 years ago

1.1.22

4 years ago

1.1.21

4 years ago

1.1.20

4 years ago

1.1.19

4 years ago

1.1.18

5 years ago

1.1.17

5 years ago

1.1.16

5 years ago

1.1.15

5 years ago

1.1.13

5 years ago

1.1.12

6 years ago

1.1.11

6 years ago

1.1.10

6 years ago

1.1.9

6 years ago

1.1.8

6 years ago

1.1.7

6 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.8

6 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago