Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

marmot-cli

Package Overview
Dependencies
Maintainers
5
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

marmot-cli

A collection of cli commands for Marmot.

  • 2.4.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
5
Created
Source

marmot-cli

A collection of cli commands for Marmot.


Installation

npm i marmot-cli -g

Commands

marmot upload

Archive the current directory as marmot-source.tgz and upload to Marmot.

Use the following environmental variables to configure the storage location and credentials:

KeyValue
MARMOT_SERVER_URLMarmot server URL
MARMOT_ACCESS_KEY_IDMarmot Access Key ID
MARMOT_ACCESS_KEY_SECRETMarmot Access Key Secret

marmot genkey

Generate a new RSA private key that can be used for signing at ~/.marmot/rsa-key/.

marmot pack

Pack the content from ./dist folder into ./._temp/{APP_ID}.tar, where APP_ID is an environmental variable.

marmot sign

Sign the artifact generated by the pack command at ./._temp/{APP_ID}.tar into ./_packages/{APP_ID}_{VERSION}.amr, where APP_ID and VERSION are environmental variables.

marmot create

Create new app package based on templates.

$ marmot create <template> [path-to-project] [options]

For example:

$ marmot create h5-app path/to/project -c yarn

Architecture

The CLI is split into two parts, bin and lib:

  • bin contains logic for command line invocation, parsing options, parameters and environmental variables. Files inside bin are meant to be executed directly and they should not contain business logic.
  • lib contains the business logic. Files inside lib expose functions that can be used by bin.

The separation between bin and lib allows business logic to be unit-tested in isolated without actually running the commands.

FAQs

Package last updated on 06 Dec 2021

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc