glue-plugin-develop

glue-plugin-develop is the process manager for the gluestack project. This plugin helps you in managing all the installed **plugin instances** which you have created in your **Gluestack App**, and in order to do that it comes with various commands detailed in the **CLI Reference** section.
Installation
CLI
Plugin Dependencies

Installation

To install this plugin, you need to bootstrap a project using create-gluestack-app, and this plugin is already configured in our base boilerplate.
Here's how to bootstrap a project using create-gluestack-app:
npx create-gluestack-v2-app@latest

CLI

node glue up

This command runs all the installed plugin instances in Docker. You can use the below command to run your gluestack project:
$ node glue up

node glue down

This command stops all the installed plugin instances running in Docker. You can use the below command to stop your gluestack project:
$ node glue down

node glue list

This command lists all the installed plugin instances running in Docker.
You can use the below command to list your installed plugin instances in your gluestack project:
$ node glue list
This command comes up with an option to filter the list of plugin instances which helps in looking up for a specific plugin's instances.
$ node glue list --filter <your-search-string-goes-here>
To obtain information about the Glue Plugin Postgres that has been successfully installed in our application under the instance name "postgres," you can execute the appropriate command:
$ node glue list --filter postgres

node glue watch

This command runs your gluestack project in watch mode. Each plugin's container controller comes with a watch method which holds the list of directories and file paths which are watched for changes.
If changes are made to such directories or files, this command will automatically restart your gluestack project with the latest changes.
The watch() function should return an array of strings. Those strings are the file path upon which your application will run on watch mode.
Here's how you can run watch command:
$ node glue watch

node glue build

This command helps you build plugin's instances. There are two ways to build, one build all plugin instances and other build one plugin instance at a time.
To build all installed plugin instances, you can run the following command:
$ node glue build
To build one plugin instance, you can run the following command:
$ node glue build <instance-name>

Plugin Dependencies

Below is the list of all the plugins the glue-plugin-develop relies on. This information will help you ensure that your project has all the necessary dependencies installed to use the plugin.
  • framework-cli