Entry
Entry is a command-line tool that helps if you want to run multiple long-running processes in the same terminal session.
It takes an entry.json
file containing an array of commands and runs them as sequential and/or parallel processes. It means you don't have to remember to run multiple commands in many terminal sessions when starting you app.
Installation
$ npm install -g node-entry
Usage
$ entry
Configuration
Arguments
Name | Details |
---|---|
‑‑env (optional) | The environment file to source, defaults to ./.env . |
‑‑config (optional) | The config entry.json file for your project. The default location is in the projects's root directory, but Entry will recursively search from the current working directory up a project tree for a file named entry.json . |
An entry task
handle
(string, required, must be unique): The identifier available forwaitOn
properties on other entries in the file.command
(string, required): The command you want Entry to run.args
(array, optional): Arguments passed to thecommand
.waitOn
(string, optional): Allows sequential execution.waitOn
takes ahandle
that is already defined within the file and waits for thathandle
's command to exit before running.stdinPrefix
(string, optional, must be unique): Gives the ability to pass information to a particular entry while Entry is running. For example, astdinPrefix
ofnd
fornodemon
can be used to callnd.rs
to restart node while entry is running.
Example entry.json files
Sequential
Parallel
Real Example
This is an actual entryfile for one of our projects: