Meenta offers a command line tool to work with our account, instruments and samples. It is designed to provide secure access to the Meenta Cloud, for secure file storage and transfer, as well as labs who are interested in integration with our API.
First step is install the cli. Use the following
npm install -g https://github.com/Meenta/meenta-cli/tarball/master
Remember to include the
-g to ensure the package is available from anywhere.
You need an account. You need to generate API keys. Go to the web application and use the Account -> Setting -> API to generate a token and secret. The CLI will maintain your session.
% meenta login [token] [secret]
If you are a host and need to upload sample data, used the following.
% meenta sample upload <sampleId> <file>
If you are a user and need to download/receive your sample data, use the following.
% meenta sample download <sampleId> <file>
The CLI application has its own internal help support.
meenta help- Get cli help.
meenta sample list- Get a list of all sample/projects for your account.
meenta sample data- Get a list of all project data files.
meenta sample get <id>- Get details for a sample/project.
meenta sample upload <id> <file>- Upload a file to the sample storage.
meenta sample download <sampleId> <file>- Download a data file.
meenta instrument list- Get a list of all instruments for your account.
meenta instrument get <id>- Get an instrument details.
meenta login <token> <secret>- Login into account.
meenta logout- Log out of the CLI.
meenta whoami- Get information about current session/environment.
meenta use <environment>- Change the current environment. For Dev Only.