@medable/mdctl-axon-tools
v1.0.73
Published
Medable Axon Tools :: Tools For interaction with Axon orgs
Downloads
264
Keywords
Readme
mdctl-axon-tools :: Tools For interaction with Axon orgs
Axon Tools Module
This module provides tools for interacting with axon orgs
How to use
const { Client } = require('@medable/mdctl-api'),
{ StudyManifestTools } = require('@medable/mdctl-axon-tools'),
exportEnv = require('../lib/env/export'),
client = new Client({
strictSSL: false,
environment: {
endpoint: 'https://localhost',
env: 'test'
},
credentials: {
type: 'password',
apiKey: 'abcdefghijklmnopqrstuv',
username: '[email protected]',
password: 'password'
}
})
async function exportStudy(client) {
const studyTools = new StudyManifestTools(client, params)
const { manifest } = await studyTools.getStudyManifest()
const options = {
format: 'json',
manifest
}
console.log('Starting Study Export')
await exportEnv({ client, ...options })
}
exportStudy(client)