@mimik/mimik-edge-cli

    1.2.2 • Public • Published

    mimik-edge-cli

    mimik edge engine command line interface (CLI) for edge microservice developer to utilize our edge engine.

    Installation

    npm install -g @mimik/mimik-edge-cli
    

    Usage

    Account

    Retrieve edge ID token

    mimik-edge-cli account get-edge-id-token [{--api-key-file PATH_TO_API_KEY_FILE | --api-key YOUR_API_KEY}]
    

    Retrieve edge node status

    mimik-edge-cli account get-me
    

    Retrieve edge access token

    mimik-edge-cli account get-edge-access-token {--token DEVELOPER_ID_TOKEN | --token-file DEVELOPER_ID_TOKEN_FILE_PATH} [{--api-key-file PATH_TO_API_KEY_FILE | --api-key YOUR_API_KEY}]
    

    Node association

    mimik-edge-cli account associate {--token EDGE_ACCESS_TOKEN | --token-file PATH_TO_YOUR_TOKEN_FILE} [{--api-key-file PATH_TO_API_KEY_FILE | --api-key YOUR_API_KEY}]
    

    Container Image

    Deploy container image

    mimik-edge-cli image deploy --image IMAGE_PATH {--token EDGE_ACCESS_TOKEN | --token-file PATH_TO_YOUR_TOKEN_FILE}
    

    List container image

    mimik-edge-cli image list {--token EDGE_ACCESS_TOKEN | --token-file PATH_TO_YOUR_TOKEN_FILE}
    

    Delete container image

    mimik-edge-cli image delete --id IMAGE_ID {--token EDGE_ACCESS_TOKEN | --token-file PATH_TO_YOUR_TOKEN_FILE}
    

    Container Runtime

    Deploy container runtime

    mimik-edge-cli container deploy --payload PATH_TO_YOUR_PAYLOAD_FILE {--token EDGE_ACCESS_TOKEN | --token-file PATH_TO_YOUR_TOKEN_FILE}
    

    Payload must be a JSON file with required property of name (name of container to run), env (environment variables encapsulate in OBJECT) and image (name of image to run)

    List container runtime

    mimik-edge-cli container list {--token EDGE_ACCESS_TOKEN | --token-file PATH_TO_YOUR_TOKEN_FILE}
    

    Delete container runtime

    mimik-edge-cli container delete --id CONTAINER_ID {--token EDGE_ACCESS_TOKEN | --token-file PATH_TO_YOUR_TOKEN_FILE}
    

    Install

    npm i @mimik/mimik-edge-cli

    DownloadsWeekly Downloads

    10

    Version

    1.2.2

    License

    MIT

    Unpacked Size

    35.1 kB

    Total Files

    23

    Last publish

    Collaborators

    • mimik-npm-editor
    • mimikopensource