New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@red5/cli

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@red5/cli

red5 command line tools for managing and creating red5 projects.

npmnpm
Version
1.0.2
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

Red5 Command Line Tool

  • Installation
  • Project Management
  • Package Management
  • Making Files

Installation

To install the command line tool run an npm install

npm install -g @red5/cli

Once installed you can create projects and project files.

New Project

New projects are created by going to the directory that you want to create a new project within. The command will then create a new folder and install everything into that folder.

red5 new <project-name>

The following steps are taken:

  • git clone the bare bones project from github
  • Install the node dependencies
  • Start a test server
  • Opens http://localhost:5000 within a browser to make sure everything works

Add Package

Adds a supported @red5 package to the current project.

red5 add <package-name>

The following steps are taken:

  • Check the registry to make sure the package is a red5 package (@red5/<package-name>)
  • If the package exists, install it npm i -s @red5/<package-name>

Remove Package

Removes a supported @red5 package from the current project.

red5 remove <package-name>

The following steps are taken:

  • Check the registry to make sure the package is a red5 package (@red5/<package-name>)
  • If the package exists, remove it npm rm -s @red5/<package-name>

Make Controller

Make controller can create 3 different types of controllers:

  • A basic controller (default)
  • An API controller
  • A Resource controller

Creates a basic controller containing only a main endpoint. This is the default action.

red5 make:controller <controller-name>

Creates an API controller containing only API endpoints

red5 make:controller <controller-name> --api

Creates a Resource controller containing all resource endpoints

red5 make:controller <controller-name> --resource

Make Middleware

Make Middleware will make middleware that can then be hooked into within your routes.

red5 make:middleware <middleware-name>

FAQs

Package last updated on 02 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts