mixin-cli
Command line tool set that easy DApp development in Mixin Network.
Table of Contents
Install
yarn add mixin-cli --global# OR npm install mixin-cli -g
Usage
Please note that currently only mixin dapp:config
works.
$ mixinUsage: mixin [options] [command] Options: -V, --version output the version number -h, --help output usage information Commands: dapp:config Generate mixin-node-client config from a newly generated DApp session info dapp:create Bootstrap a new DAPP that have mixin-client-sdk integrated dapp:start Start an DApp bootstrapped with `mixin dapp:create` dapp:build Build an DApp bootstrapped with `mixin dapp:create`
Generate DApp Config
See follow screen cast in action:
Please note that the generated config still missing 2 important pieces of info to be used with mixin-node-sdk. As shown below:
// Generated with awesome https://github.com/wangshijun/mixin-climoduleexports = clientId: '<PUT YOUR DAPP CLIENT_ID HERE>' clientSecret: '<PUT YOUR DAPP CLIENT_SECRET HERE>' assetPin: '310012' sessionId: '621c905b-1739-45e7-b668-b5531dd83646' aesKey: '******s2EFHBPV2Xsb/OiwLdgjGt3q53JcFeLmbUutEk=' privateKey: `-----BEGIN RSA PRIVATE KEY-----MIICXAIBAAKBgQCsNaGbDx1UeKrTux01nC6R7/bu2GUELe6Q2mBSPymkZW2fpiaOvr3RYbwfcFEuBDA9GQQoTiMYe/TUiYLGIycvpR5oifBQjgsTvxnwxqThD0VkrDKMCA2ezXSb3e5yD0fn6X5HrkfVfYmNKwSbr7Yes/rYsVHCbZgq49omzitHwQIDAQABAoGANSsRzBfsjEn9JAXfTM/9qN0XtkJlXdb4kwx5NKt/pdwS7nmT6fqGDIFKXcKFrdlpM1Pn7rHBMCwFOSGDmLz9ubxvXaLrViWNf50eUWEWlIYsGolChDWquG+LRXExBtdaJrzA1DucS/MlirQ4nGnnQ4jRXzbs/lIyuqph8T5rh0kCQQDTXfKcBtwa4u0s0VG7Fz0tSm+8uW9FVZfRAlR+dMlllBnDaQT6FvVik1lfObli3+RLPeJYfyONmsuOyMRvtboTAkEA0JLppAMZfwdkgfanzsyM+SAeiw3BIfn302G+K0rlkJAgJbv5zDKaBTtpFtPO6SsuPKWuqDlQRA21MycmfsmxWwJAWh+s2qpyH2SzDHEUEFoQU8dxbV8D-----END RSA PRIVATE KEY-----`;
clientId
and clientSecret
can be obtained from Mixin Developer Dashboard.
Debugging
If you are curious what happened during each command, try run following command:
DEBUG=mixin-cli:* mixin
Contributors
Name |
---|
wangshijun |
License
MIT © wangshijun