Keep up with latest product news
To check if your package is published in the registry and then installed from it, use the test registry: https://test.pm.community.intersystems.com/registry/
login: test
password: test
To switch to the test registry use the command
repo -r -n registry -url https://test.pm.community.intersystems.com/registry/ -user test -pass test
Once a day, the test registry is updated and all data in it is reset
Previously, to publish a module in the current registry, you had to use the module-action command, for example module-action mymodule publish
, and it could be written shorter mymodule publish
.
Now you can use the publish command: publish mymodule
- use the organic word order
New commands:
Using the generate
command, you can create a module.xml file template in a second.
Usage:
generate -template /my/project
Creates a module.xml file with fictional data in /my/project
After that you must open and edit this file to change module meta information and specify module resources (classes, csp pages, globals, test)
generate /my/project
Without -template (or -t) flag this command creates a module.xml file in an interactive mode. Just answer several questions. Use -author (-a) flag to add information about module author
zpm: USER>generate /temp/zzzz
Enter module name: zzzz
Enter module version: 1.0.0 => 1.0.1
Enter module description: module description
Enter module keywords: module keywords
Enter module source folder: src =>
Existing Web Applications:
/csp/user
Enter a comma separated list of web applications or * for all: /csp/user
Enter path to csp files for /csp/user: src/web
Dependencies:
Enter module:version or empty string to continue: sslclient:1.0.1
Enter module:version or empty string to continue:
zpm: USER>
Now Globals are expected in /src/gbl (but not in /gbl )
Version command displays currently installed zpm version number; shows locally installed zpm registry and connected remote repository and their version.
zpm: USER>version
zpm 0.2.2
Locally installed zpm-registry not found
https://pm.community.intersystems.com - 0.0.2
If you do not specify the username and password modifiers in the repo command for the remote registry, the previously set values for username and password will be reset.
zpm: USER>repo -r -n registry -url https://pm.community.intersystems.com/