Note
The feature described in this article is available in Pagico v4.0 and later.
As a new addition to Pagico 4, the Command Line Interface (CLI) component provides users with various access to their data stored in Pagico databases via the command line (or, “Terminal” application on Mac OS X).
The CLI component of the Pagico 4 is designed as a plugin system. Various plugins covering different purposes have been developed or are being developed. Currently the following plugins are shipped with the Pagico 4 installation package:
- Inbox
- Tasks
The CLI component, on Macs and Linux systems, is accessible from /opt/pagico/plugins folder.
On Ubuntu, the CLI components are located at /opt/pagico/plugins/.
Setting up the CLI interface on Mac
Due to many reasons, we stopped creating the /opt folder on Mac during the installation process. But if you wish to use them, you can still access the CLI components by following these steps:
Step 1: Launch the Terminal app.
The Terminal app can be located under Applications/Utilities folder).
Step 2: Create the necessary folders.
Type in this command in the Terminal app, and hit enter:
mkdir -p /opt/pagico/plugins
Step 3: Create the alias files to the plugin files
Type in this command in the Terminal app, and hit enter. This creates the link file for the tasks plugin.
ln /Applications/Pagico/Pagico.app/Contents/Resources/Pagico/external/tasks.mac.sh /opt/pagico/plugins/tasks
Type in this command in the Terminal app, and hit enter. This creates the link file for the inbox plugin.
ln /Applications/Pagico/Pagico.app/Contents/Resources/Pagico/external/inbox.mac.sh /opt/pagico/plugins/inbox
Done.
Related posts: