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

@ezpaarse-project/ezmesure-admin

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ezpaarse-project/ezmesure-admin

Command line utilities to manage ezMESURE

  • 2.3.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

ezmesure-admin

Prerequisite

  • git >= 2.27.0
  • NodeJS >= 14.15.0
  • npm >= 6.14.8

Install

$ npm i -g @ezpaarse-project/ezmesure-admin

Usage

$ ezmesure-admin --help
$ ezadmin --help
$ eza --help

Global options

NameTypeDescription
-t, --timeoutStringRequest timeout in milliseconds
-v, --verboseBooleanMake the operation more talkative
--versionBooleanPrint the version number
--helpBooleanShow some help

Commands

NameDescription
clusterManage cluster
completionUse auto completion
configManage ezmesure-admin config
counter4 (deprecated)Load counter4 files in Kibana
counter5COUNTER5 commands
dashboardManage Kibana dashboards
indicesManager ezMESURE/Kibana users
index-patternManager ezMESURE/Kibana users
institutionsManage ezMESURE institutions
loginLogin user in commands
logoutLog out from ezMESURE
pingPing ElasticSearch and ezMESURE
profileDisplays the person who is connected to the command
reportingManage ezMESURE reporting
rolesManage Kibana roles
spacesManage Kibana spaces
sushiManage ezMESURE sushi
usersManage ezMESURE/Kibana users

Development

$ git clone https://github.com/ezpaarse-project/ezmesure-admin.git
$ cd ezmesure-admin
$ npm install

To use the command in development mode simply use it as follows: ./ezmesure-admin <command>

Tests

Set EZMESURE_ADMIN_USERNAME and EZMESURE_ADMIN_PASSWORD envrionment variables.

You need configure elastic and ezmesure config before use.

The user cannot be a reserved user (ex: elastic, ...). He must have superuser rights to perform the tests

It can be the default user created at the initialization of ezMESURE using the same environment variables.

$ npm run test

i18n

  1. In ezmesure-admin file, add your locale in locales array.
  2. Create your locale JSON file in locales folder.
  3. Import i18n in your commande file
  4. Use i18n.t() function to translate

Example :

Command file :

const { i18n } = global;

exports.command = 'mycmd';
exports.desc = i18n.t('mycmd.description');
exports.builder = {};
exports.handler = async function handler() {
  console.log(i18n.t('mycmd.helloWorld'))
};

Locale file :

{
  "mycmd": {
    "descritpion": "This is my command",
    "helloWorld": "Hello World"
  }
}

License

CeCILL.

FAQs

Package last updated on 24 Mar 2023

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