balena-os / Resin Device Toolbox
Programming Languages
Resin Device Toolbox - rdt
The official resinOS command line tool.
Resin Device Toolbox or rdt
is a collection of utilities that can help you develop resinOS based application containers.
Preview
Click below to see a preview of rdt push
Dependencies
-
NodeJS >= 4
-
ssh
: Any recent version of the OpenSSH ssh client (required byrdt ssh
andrdt push
) -
rsync
: >= 2.6.9 (required byrdt push
)
-
Windows Support
rdt push
and rdt ssh
have not been thoroughly tested on the standard Windows cmd.exe shell. We recommend using bash (or a similar) shell, like Bash for Windows 10 or Git for Windows.
If you still want to use cmd.exe
you will have to use a package manager like MinGW or chocolatey. For MinGW the steps are:
- Install MinGW.
- Install the
msys-rsync
andmsys-openssh
packages. - Add MinGW to the
%PATH%
if this hasn't been done by the installer already. The location where the binaries are places is usuallyC:\MinGW\msys\1.0\bin
, but it can vary if you selected a different location in the installer.
Install
You can install Resin Device Toolbox by running:
$ npm install -g resin-device-toolbox
Getting Started
If you want a quick introduction on development with resinOS you can also check our tutorial.
Usage
You can get a list of available commands with rdt -h
:
Usage: rdt [COMMAND] [OPTIONS]
If you need help, or just want to say hi, don't hesitate in reaching out at:
GitHub: https://github.com/resin-os/resin-device-toolbox/issues/new
Gitter: https://gitter.im/resin-io/chat
Primary commands:
ssh [deviceIp] Get a shell into a resinOS device
push [deviceIp] Push your changes to a container on local resinOS device
logs [deviceIp] Get or attach to logs of a running container on a resinOS device
scan Scan for resinOS devices in your local network
configure <target> (Re)configure a resinOS drive or image
flash <image> Flash an image to a drive
version Output the version number
help [command...] Show help
Global Options:
--help, -h
Support
If you're having any problem, please raise an issue on GitHub and the Resin.io team will be happy to help. You can also get in touch with us in the resin.io forums.
License
Resin Device Toolbox is free software, and may be redistributed under the terms specified in the license.