Socket
Socket
Sign inDemoInstall

endpoints-sdk-cli

Package Overview
Dependencies
134
Maintainers
2
Versions
38
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    endpoints-sdk-cli

endpoints sdk cli


Version published
Maintainers
2
Install size
23.6 MB
Created

Readme

Source

matsuri-tech/endpoints-sdk-cli (mes)

Endpoints SDK for JavaScript

※ Include the generated endpoint files in commits.

Usage

$ npm install -g endpoints-sdk-cli
$ mes COMMAND
running command...
$ mes (-v|--version|version)
endpoints-sdk-cli/2.8.0 darwin-arm64 node-v18.19.0
$ mes --help [COMMAND]
USAGE
  $ mes COMMAND
...

Commands

mes add [REPOSITORY]

add service to dependencies & make endpoints files.

USAGE
  $ mes add [REPOSITORY]

OPTIONS
  -b, --branch=branch        branch name to clone
  -e, --excludes=excludes    exclude periods
  -v, --version=version      latest or commit hash
  -w, --workspace=workspace  a path to workspace containing .endpoints.json

DESCRIPTION
  add service to dependencies & make endpoints files.

  1. make endpoints.config.json for version control.

  {
    "dependencies": {
      "service-name": {
        "version": "26177ed7e673daf0cc5a69e9793dd863424d272f",
        "repository": "git@github.com:[username/repository].git"
      }
    }
  }

  > service name is inferred from Repository name.

  2. make src/endpoints/[service-name].ts

EXAMPLES
  $ mes add [username/repository]
  $ mes add [username/repository] --version [commmit hash]
  $ mes add [username/repository] -v [commmit hash]
  $ mes add [username/repository] -v latest
  $ mes add [username/repository] --workspace [workspace directory]
  $ mes add [username/repository] -w [workspace directory]
  $ mes add [username/repository] --branch [branch name]
  $ mes add [username/repository] -b [branch name]
  $ mes add [username/repository] --excludes [period name]
  $ mes add [username/repository] -e [period name]
  $ mes add [username/repository] -e [period name] [period name]
  $ mes add /Users/.../local-repository/
  $ mes add ./local-repository
  $ mes add git@github.com:[username/repository].git
  $ mes add https://github.com/[username/repository].git

See code: src/commands/add.ts

mes help [COMMAND]

display help for mes

USAGE
  $ mes help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

mes install

generate endpoints files based on endpoints.config.json

USAGE
  $ mes install

See code: src/commands/install.ts

mes update [SERVICE]

update service version & regenerate endpoints files

USAGE
  $ mes update [SERVICE]

See code: src/commands/update.ts

Support of create-react-app

{
  "environment_identifier": "process.env.REACT_APP_ENV",
}

Override root url

{
  "dependencies": {
    "my-service": {
      "version": "ba832b61d0319f42b3cbb30c815cbdecfece959a",
      "repository": "git@github.com:hoge/my-service.git",
      "roots":{
        "dev": "https://dev.hoge.com",
        "prod": "https://hoge.com",
        "local": "http://localhost:3000"
      }
    },
  }
}

Keywords

FAQs

Last updated on 05 Dec 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc