Commands¶
Cheat Sheet¶
System¶
command | arguments | description |
---|---|---|
? | [script|../something.js] |
Run the specified script. |
version | - |
Displays the version information. |
new | [name] |
Can specify rules to manage the values of corresponding messages. |
push | - |
Push project to repository. |
pull | - |
Pull project from repository. |
pack | [--path <project-path>] [--o <output package-name>] |
Pack port-package-files. |
run | [name] |
Runs the pkg server based on the specified repository. |
ls | [repo] |[pkg] |[tcp] |[comm] |
Displays the specified items in a list. |
kill | [kill-code] |
Shutdown pkg server. |
env | - |
Displays the system environment settings. |
help | - |
. |
Server¶
command | arguments | description |
---|---|---|
set | [group-name|pkg-name] [message-name] [value] |
Set values in the pkg server. |
get | [group-name|pkg-name] [message-name] |
Get values from the pkg server. |
init | [pkg-name] |
Initializes the Package. |
event | [pkg-name] |
Displays a events. |
view | [group-name|pkg-name] [--message|--history] [name|args|arguments|event] |
detail view. |
queue |
|
Create new queue. Displays queue list. Displays queue items. Push a item to queue. Pop a item from queue. |
stack |
|
Create new stack. Displays stack list. Displays stack items. Push a item to stack. Pop a item from stack. |
storage |
|
Create new storage. Displays storage list. Displays storage items. Push a item to storage. Pop a item from storage. |
list |
|
Create new list. Displays a lists. Displays list items. Add a item. Insert a item. Remove a item. |
flow |
|
Loads the Flow resource into the currently running pkg server. Initializes the Flow resource. Remove Flow resource Displays a events from the Flow resource. |
System¶
script
¶
-Support for ECMAScript5
ecmascript
js_es5
port push
¶
- push project to repository
port pull
¶
- pull project from repository
Tip
The application runs based on the values stored in the repository. The push action must precede the application startup. Subsequently, users can perform a pull action at any desired moment to restore the repository.
port set [group] [message] [value]
¶
- set the message value to current repository
port set groupA sayHelloMessage1 Hello?
[set-ok]
port get [group] [message]
¶
- get the message value to current repository
port get groupA sayHelloMessage1
[Hello?]
Server¶
port run [repository-name]
¶
- run server from repository
port shutdown
¶
- terminated current server