@ledgerhq/live-cli 21.33.1-universal.0 → 22.0.0-nightly.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +60 -2
- package/lib/commands/deviceInfo.d.ts +1 -1
- package/lib/commands/deviceVersion.d.ts +1 -1
- package/lib/commands/genuineCheck.d.ts +1 -1
- package/lib/commands/getAddress.d.ts +1 -1
- package/lib/commands/signMessage.d.ts +1 -1
- package/lib/commands-index.d.ts +10 -10
- package/package.json +16 -13
package/README.md
CHANGED
|
@@ -1,10 +1,68 @@
|
|
|
1
|
-
|
|
1
|
+
# ledger-live CLI
|
|
2
2
|
|
|
3
3
|
> Please be advised this software is experimental and shall not create any obligation for Ledger to continue to develop, offer, support or repair any of its features. The software is provided “as is.” Ledger shall not be liable for any damages whatsoever including loss of profits or data, business interruption arising from using the software.
|
|
4
4
|
|
|
5
|
+
This package wraps functionality from `@ledgerhq/live-common` into a suite of tools that can be used directly from the terminal
|
|
6
|
+
|
|
7
|
+
# Usage
|
|
8
|
+
|
|
9
|
+
## Install the CLI
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm i --global @ledgerhq/live-cli
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Run commands
|
|
16
|
+
|
|
17
|
+
Jump to the [documentation](#Documentation) for more informations on the available commands
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
ledger-live <commands>
|
|
5
21
|
```
|
|
6
|
-
Ledger Live @ https://github.com/LedgerHQ/ledger-live-common
|
|
7
22
|
|
|
23
|
+
# Development
|
|
24
|
+
|
|
25
|
+
## Setup
|
|
26
|
+
|
|
27
|
+
### Requirements
|
|
28
|
+
|
|
29
|
+
- [NodeJS](https://nodejs.org) `lts/fermium` (v14.x)
|
|
30
|
+
- [PnPm](https://pnpm.io) (v7.x)
|
|
31
|
+
- [Python](https://www.python.org/) (v3.5+)
|
|
32
|
+
- On Linux: `sudo apt-get update && sudo apt-get install libudev-dev libusb-1.0-0-dev`
|
|
33
|
+
|
|
34
|
+
## Install
|
|
35
|
+
|
|
36
|
+
> Reminder: all commands should be run at the root of the monorepository
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
# install dependencies
|
|
40
|
+
pnpm i
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Dev
|
|
44
|
+
```bash
|
|
45
|
+
# launch a watch mode on the source files and recompiles on the fly
|
|
46
|
+
pnpm dev:cli
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Run
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
# run a command of the cli
|
|
53
|
+
pnpm run:cli <command>
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Build
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
# build the cli for publishing
|
|
60
|
+
pnpm build:cli
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
# Documentation
|
|
64
|
+
|
|
65
|
+
```
|
|
8
66
|
Usage: ledger-live <command> ...
|
|
9
67
|
|
|
10
68
|
Usage: ledger-live cosmosValidators
|
|
@@ -8,7 +8,7 @@ declare const _default: {
|
|
|
8
8
|
}[];
|
|
9
9
|
job: ({ device, }: Partial<{
|
|
10
10
|
device: string;
|
|
11
|
-
}>) => import("rxjs").Observable<import("
|
|
11
|
+
}>) => import("rxjs").Observable<import("@ledgerhq/live-common/lib/types/manager").DeviceInfo>;
|
|
12
12
|
};
|
|
13
13
|
export default _default;
|
|
14
14
|
//# sourceMappingURL=deviceInfo.d.ts.map
|
|
@@ -8,7 +8,7 @@ declare const _default: {
|
|
|
8
8
|
}[];
|
|
9
9
|
job: ({ device, }: Partial<{
|
|
10
10
|
device: string;
|
|
11
|
-
}>) => import("rxjs").Observable<import("
|
|
11
|
+
}>) => import("rxjs").Observable<import("@ledgerhq/live-common/lib/types/manager").FirmwareInfo>;
|
|
12
12
|
};
|
|
13
13
|
export default _default;
|
|
14
14
|
//# sourceMappingURL=deviceVersion.d.ts.map
|
|
@@ -9,7 +9,7 @@ declare const _default: {
|
|
|
9
9
|
}[];
|
|
10
10
|
job: ({ device, }: Partial<{
|
|
11
11
|
device: string;
|
|
12
|
-
}>) => import("rxjs").Observable<import("
|
|
12
|
+
}>) => import("rxjs").Observable<import("@ledgerhq/live-common/lib/types/manager").SocketEvent>;
|
|
13
13
|
};
|
|
14
14
|
export default _default;
|
|
15
15
|
//# sourceMappingURL=genuineCheck.d.ts.map
|
|
@@ -22,7 +22,7 @@ declare const _default: {
|
|
|
22
22
|
path: string;
|
|
23
23
|
derivationMode: string;
|
|
24
24
|
verify: boolean;
|
|
25
|
-
}>) => import("rxjs").Observable<import("
|
|
25
|
+
}>) => import("rxjs").Observable<import("@ledgerhq/live-common/lib/hw/getAddress/types").Result>;
|
|
26
26
|
};
|
|
27
27
|
export default _default;
|
|
28
28
|
//# sourceMappingURL=getAddress.d.ts.map
|
|
@@ -10,7 +10,7 @@ declare const _default: {
|
|
|
10
10
|
type: StringConstructor;
|
|
11
11
|
desc: string;
|
|
12
12
|
})[];
|
|
13
|
-
job: (arg: any) => import("rxjs").Observable<import("
|
|
13
|
+
job: (arg: any) => import("rxjs").Observable<import("@ledgerhq/live-common/lib/hw/signMessage/types").Result>;
|
|
14
14
|
};
|
|
15
15
|
export default _default;
|
|
16
16
|
//# sourceMappingURL=signMessage.d.ts.map
|
package/lib/commands-index.d.ts
CHANGED
|
@@ -54,7 +54,7 @@ declare const _default: {
|
|
|
54
54
|
}[];
|
|
55
55
|
job: ({ device, }: Partial<{
|
|
56
56
|
device: string;
|
|
57
|
-
}>) => import("rxjs").Observable<import("
|
|
57
|
+
}>) => import("rxjs").Observable<import("@ledgerhq/live-common/lib/apps").State>;
|
|
58
58
|
};
|
|
59
59
|
appsCheckAllAppVersions: {
|
|
60
60
|
description: string;
|
|
@@ -85,7 +85,7 @@ declare const _default: {
|
|
|
85
85
|
}[];
|
|
86
86
|
job: ({ device, }: Partial<{
|
|
87
87
|
device: string;
|
|
88
|
-
}>) => import("rxjs").Observable<import("
|
|
88
|
+
}>) => import("rxjs").Observable<import("@ledgerhq/live-common/lib/apps").State>;
|
|
89
89
|
};
|
|
90
90
|
appsUpdateTestAll: {
|
|
91
91
|
description: string;
|
|
@@ -375,7 +375,7 @@ declare const _default: {
|
|
|
375
375
|
}[];
|
|
376
376
|
job: ({ device, }: Partial<{
|
|
377
377
|
device: string;
|
|
378
|
-
}>) => import("rxjs").Observable<import("
|
|
378
|
+
}>) => import("rxjs").Observable<import("@ledgerhq/live-common/lib/types/manager").DeviceInfo>;
|
|
379
379
|
};
|
|
380
380
|
deviceVersion: {
|
|
381
381
|
args: {
|
|
@@ -387,7 +387,7 @@ declare const _default: {
|
|
|
387
387
|
}[];
|
|
388
388
|
job: ({ device, }: Partial<{
|
|
389
389
|
device: string;
|
|
390
|
-
}>) => import("rxjs").Observable<import("
|
|
390
|
+
}>) => import("rxjs").Observable<import("@ledgerhq/live-common/lib/types/manager").FirmwareInfo>;
|
|
391
391
|
};
|
|
392
392
|
discoverDevices: {
|
|
393
393
|
args: ({
|
|
@@ -697,7 +697,7 @@ declare const _default: {
|
|
|
697
697
|
}[];
|
|
698
698
|
job: ({ device, }: Partial<{
|
|
699
699
|
device: string;
|
|
700
|
-
}>) => import("rxjs").Observable<import("
|
|
700
|
+
}>) => import("rxjs").Observable<import("@ledgerhq/live-common/lib/types/manager").SocketEvent>;
|
|
701
701
|
};
|
|
702
702
|
getAddress: {
|
|
703
703
|
description: string;
|
|
@@ -723,7 +723,7 @@ declare const _default: {
|
|
|
723
723
|
path: string;
|
|
724
724
|
derivationMode: string;
|
|
725
725
|
verify: boolean;
|
|
726
|
-
}>) => import("rxjs").Observable<import("
|
|
726
|
+
}>) => import("rxjs").Observable<import("@ledgerhq/live-common/lib/hw/getAddress/types").Result>;
|
|
727
727
|
};
|
|
728
728
|
getTransactionStatus: {
|
|
729
729
|
description: string;
|
|
@@ -1142,7 +1142,7 @@ declare const _default: {
|
|
|
1142
1142
|
}[];
|
|
1143
1143
|
job: ({ continuous }: {
|
|
1144
1144
|
continuous?: boolean | undefined;
|
|
1145
|
-
}) => import("rxjs").Observable<import("
|
|
1145
|
+
}) => import("rxjs").Observable<import("@ledgerhq/live-common/lib/families/bitcoin/satstack").SatStackStatus>;
|
|
1146
1146
|
};
|
|
1147
1147
|
scanDescriptors: {
|
|
1148
1148
|
description: string;
|
|
@@ -1155,7 +1155,7 @@ declare const _default: {
|
|
|
1155
1155
|
job: (opts: Partial<{
|
|
1156
1156
|
device: string;
|
|
1157
1157
|
currency: string;
|
|
1158
|
-
}>) => import("rxjs").Observable<import("
|
|
1158
|
+
}>) => import("rxjs").Observable<import("@ledgerhq/live-common/lib/families/bitcoin/descriptor").AccountDescriptor>;
|
|
1159
1159
|
};
|
|
1160
1160
|
send: {
|
|
1161
1161
|
description: string;
|
|
@@ -1233,7 +1233,7 @@ declare const _default: {
|
|
|
1233
1233
|
type: StringConstructor;
|
|
1234
1234
|
desc: string;
|
|
1235
1235
|
})[];
|
|
1236
|
-
job: (arg: any) => import("rxjs").Observable<import("
|
|
1236
|
+
job: (arg: any) => import("rxjs").Observable<import("@ledgerhq/live-common/lib/hw/signMessage/types").Result>;
|
|
1237
1237
|
};
|
|
1238
1238
|
speculosList: {
|
|
1239
1239
|
description: string;
|
|
@@ -1406,7 +1406,7 @@ declare const _default: {
|
|
|
1406
1406
|
index: number;
|
|
1407
1407
|
length: number;
|
|
1408
1408
|
paginateOperations: number;
|
|
1409
|
-
}>) => import("rxjs").Observable<import("
|
|
1409
|
+
}>) => import("rxjs").Observable<import("@ledgerhq/live-common/lib/types").Operation[]>;
|
|
1410
1410
|
};
|
|
1411
1411
|
testGetTrustedInputFromTxHash: {
|
|
1412
1412
|
args: ({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/live-cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "22.0.0-nightly.1",
|
|
4
4
|
"description": "ledger-live CLI version",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,21 +14,22 @@
|
|
|
14
14
|
"lib"
|
|
15
15
|
],
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"@ledgerhq/hw-transport-node-ble": "^6.27.
|
|
17
|
+
"@ledgerhq/hw-transport-node-ble": "^6.27.2-nightly.0"
|
|
18
18
|
},
|
|
19
19
|
"optionalDependencies": {
|
|
20
|
-
"@ledgerhq/hw-transport-node-ble": "^6.27.
|
|
20
|
+
"@ledgerhq/hw-transport-node-ble": "^6.27.2-nightly.0"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@ledgerhq/cryptoassets": "^6.28.
|
|
24
|
-
"@ledgerhq/errors": "^6.10.0",
|
|
25
|
-
"@ledgerhq/hw-app-btc": "^6.27.
|
|
26
|
-
"@ledgerhq/hw-transport
|
|
27
|
-
"@ledgerhq/hw-transport-
|
|
28
|
-
"@ledgerhq/hw-transport-
|
|
29
|
-
"@ledgerhq/hw-transport-node-
|
|
30
|
-
"@ledgerhq/
|
|
31
|
-
"@ledgerhq/
|
|
23
|
+
"@ledgerhq/cryptoassets": "^6.28.3-nightly.0",
|
|
24
|
+
"@ledgerhq/errors": "^6.10.1-nightly.0",
|
|
25
|
+
"@ledgerhq/hw-app-btc": "^6.27.2-nightly.0",
|
|
26
|
+
"@ledgerhq/hw-transport": "^6.27.2-nightly.0",
|
|
27
|
+
"@ledgerhq/hw-transport-http": "^6.27.2-nightly.0",
|
|
28
|
+
"@ledgerhq/hw-transport-mocker": "^6.27.2-nightly.0",
|
|
29
|
+
"@ledgerhq/hw-transport-node-hid": "^6.27.2-nightly.0",
|
|
30
|
+
"@ledgerhq/hw-transport-node-speculos": "^6.27.2-nightly.0",
|
|
31
|
+
"@ledgerhq/live-common": "^22.2.1-nightly.0",
|
|
32
|
+
"@ledgerhq/logs": "^6.10.1-nightly.0",
|
|
32
33
|
"@walletconnect/client": "^1.7.1",
|
|
33
34
|
"asciichart": "^1.5.25",
|
|
34
35
|
"bignumber.js": "^9.0.1",
|
|
@@ -37,6 +38,7 @@
|
|
|
37
38
|
"command-line-args": "^5.2.1",
|
|
38
39
|
"cors": "^2.8.5",
|
|
39
40
|
"express": "^4.17.2",
|
|
41
|
+
"invariant": "^2.2.4",
|
|
40
42
|
"lodash": "^4.17.21",
|
|
41
43
|
"lodash.product": "^18.9.19",
|
|
42
44
|
"qrcode-terminal": "^0.12.0",
|
|
@@ -45,7 +47,8 @@
|
|
|
45
47
|
"react-dom": "^17.0.2",
|
|
46
48
|
"react-redux": "^7.2.6",
|
|
47
49
|
"rxjs": "^6.6.7",
|
|
48
|
-
"winston": "^3.5.1"
|
|
50
|
+
"winston": "^3.5.1",
|
|
51
|
+
"ws": "^8.6.0"
|
|
49
52
|
},
|
|
50
53
|
"devDependencies": {
|
|
51
54
|
"@types/command-line-args": "^5.2.0",
|