Endpoints SDK for JavaScript
pnpm add -D endpoints-sdk-cli
npx mes --helpinitialize endpoints.config.json
npx mes initadd service to dependencies & make endpoints files.
npx mes add [REPOSITORY]Examples:
mes add [username/repository_name]
mes add [username/repository_name] -b [branch_name]
mes add [username/repository_name] -w [workspace_name]
mes add [username/repository_name] -e [period_name]generate endpoints files based on endpoints.config.json
npx mes installupdate service version & regenerate endpoints files
npx mes update [SERVICE]{
"environment_identifier": "process.env.REACT_APP_ENV"
}{
"dependencies": {
"my-service": {
"version": "ba832b61d0319f42b3cbb30c815cbdecfece959a",
"repository": "[email protected]:hoge/my-service.git",
"roots": {
"dev": "https://dev.hoge.com",
"prod": "https://hoge.com",
"local": "http://localhost:3000"
}
}
}
}