Skip to content

Latest commit

 

History

History
116 lines (83 loc) · 5.76 KB

institutions.md

File metadata and controls

116 lines (83 loc) · 5.76 KB

institutions

Usage

$ ezmesure-admin institutions --help

Commands

Name Description
get [institutions...] Get institution(s) informations
export [institutions...] Export institution(s)
import Import institution(s)

Commands details

get

Usage

$ ezmesure-admin institutions get --help

Options

Name Type Description
-a, --all String Export all institutions
-j, --json Boolean Print result(s) in json
-n, --ndjson boolean Output newline delimited JSON file

Example :

$ ezmesure-admin institutions get MyInstitution # with insitution(s) name

╔══════════════════╤═══════════╤═════════════════════════════════╤═════════╤═══════════╤═══════════╤════════════════╤════════════════╤═════════════════════╗
║ Name             │ City      │ Website                         │ Domains │ Auto      │ Validate  │ Index prefix   │ Role           │ Contact             ║
╟──────────────────┼───────────┼─────────────────────────────────┼─────────┼───────────┼───────────┼────────────────┼────────────────┼─────────────────────╢
║ MyInstitution 1  │ Paris     │ https://www.my-institution.fr/  │         │ ezPAARSE  │ Validated │ my_institution │ my_institution │ Doc : DOC Contact   ║
║                  │           │                                 │         │ ezMESURE  │           │                │                │ Tech : TECH Contact ║
║                  │           │                                 │         │ Reporting │           │                │                │                     ║
╚══════════════════╧═══════════╧═════════════════════════════════╧═════════╧═══════════╧═══════════╧════════════════╧════════════════╧═════════════════════╝

or

$ ezmesure-admin institutions get

? Institutions : 
❯◯ MyInstitution
 ◯ MyInstitution 2

╔══════════════════╤═══════════╤═════════════════════════════════╤═════════╤═══════════╤═══════════╤════════════════╤════════════════╤═════════════════════╗
║ Name             │ City      │ Website                         │ Domains │ Auto      │ Validate  │ Index prefix   │ Role           │ Contact             ║
╟──────────────────┼───────────┼─────────────────────────────────┼─────────┼───────────┼───────────┼────────────────┼────────────────┼─────────────────────╢
║ MyInstitution 1  │ Paris     │ https://www.my-institution.fr/  │         │ ezPAARSE  │ Validated │ my_institution │ my_institution │ Doc : DOC Contact   ║
║                  │           │                                 │         │ ezMESURE  │           │                │                │ Tech : TECH Contact ║
║                  │           │                                 │         │ Reporting │           │                │                │                     ║
╚══════════════════╧═══════════╧═════════════════════════════════╧═════════╧═══════════╧═══════════╧════════════════╧════════════════╧═════════════════════╝

export

Usage

$ ezmesure-admin institutions export --help

Options

Name Type Description
-a, --all String Export all institutions

Example :

$ ezmesure-admin institutions export ~/Documents/exports

? Institutions : 
❯◯ MyInstitution
 ◯ MyInstitution 2

institution [MyInstitution] exported successfully

or

$ ezmesure-admin institutions export ~/Documents/exports --all

institution [MyInstitution] exported successfully

import

Usage

$ ezmesure-admin institutions import --help

Options

Name Type Description
-f, --files String Files path

Example :

$ ezmesure-admin institutions import -f ~/Documents/import/*.json

Successfully imported institution(s).