Linux command
trezorctl 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
List connected Trezor devices
trezorctl list
Get device features and info
trezorctl get-features
Get Bitcoin address
trezorctl btc get-address -n "m/84'/0'/0'/0/0"
Sign a message
trezorctl btc sign-message -n "m/84'/0'/0'/0/0" "[message]"
Wipe device
trezorctl device wipe
Update firmware
trezorctl firmware-update
Set device label
trezorctl device set-label "[My Trezor]"
Change PIN
trezorctl device change-pin
说明
trezorctl is the command-line interface for Trezor hardware wallets, providing advanced control over device configuration, cryptocurrency operations, and security settings. It is part of the trezorlib Python package and communicates with Trezor One, Trezor Model T, and Trezor Safe devices. The tool enables signing transactions, deriving addresses, managing device settings, updating firmware, and performing recovery operations without using the graphical Trezor Suite application. It supports multiple cryptocurrencies including Bitcoin, Ethereum, and various altcoins. All sensitive operations require physical confirmation on the device, maintaining security even when using command-line tools. The interface is designed for advanced users who need scriptable access to hardware wallet functions.
参数
- list
- List all connected Trezor devices.
- get-features
- Retrieve device information including model, firmware version, and settings.
- btc get-address -n _path_
- Get a Bitcoin address at the specified BIP32 derivation path.
- btc sign-message -n _path_ _message_
- Sign a message using the key at the specified path.
- btc sign-tx
- Sign a Bitcoin transaction interactively.
- device wipe
- Wipe the device and reset to factory settings.
- device setup
- Initialize a new device with seed generation.
- device recover
- Recover a device using an existing seed phrase.
- device change-pin
- Change or set the device PIN.
- device set-label _label_
- Set a custom label for the device.
- device unlock-bootloader
- Unlock the bootloader for advanced operations.
- firmware-update
- Update device firmware to the latest version.
- set safety-checks _strict_|_prompt_
- Set safety check level. Strict enforces full validation; prompt allows user overrides.
- crypto get-public-key -n _path_
- Get public key at the specified BIP32 derivation path.
- ethereum get-address -n _path_
- Get Ethereum address at the specified derivation path.
- -v, --verbose
- Enable verbose output.
- --help
- Show help for a command.
FAQ
What is the trezorctl command used for?
trezorctl is the command-line interface for Trezor hardware wallets, providing advanced control over device configuration, cryptocurrency operations, and security settings. It is part of the trezorlib Python package and communicates with Trezor One, Trezor Model T, and Trezor Safe devices. The tool enables signing transactions, deriving addresses, managing device settings, updating firmware, and performing recovery operations without using the graphical Trezor Suite application. It supports multiple cryptocurrencies including Bitcoin, Ethereum, and various altcoins. All sensitive operations require physical confirmation on the device, maintaining security even when using command-line tools. The interface is designed for advanced users who need scriptable access to hardware wallet functions.
How do I run a basic trezorctl example?
Run `trezorctl list` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does list do in trezorctl?
List all connected Trezor devices.