resin-cli
The official resin.io CLI tool
Last updated a month ago by balena.io .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install resin-cli -g
SYNC missed versions from official npm registry.

Resin CLI

The official resin.io CLI tool.

npm version dependencies Gitter

Requisites

If you want to install the CLI directly through npm, you'll need the below. If this looks difficult, we do now have an experimental standalone binary release available, see 'Standalone install' below.

  • NodeJS (>= v6)
  • Git
  • The following executables should be correctly installed in your shell environment:
    • ssh: Any recent version of the OpenSSH ssh client (required by resin sync and resin ssh)
      • if you need ssh to work behind the proxy you also need proxytunnel installed (available as proxytunnel package for Ubuntu, for example)
    • rsync: >= 2.6.9 (required by resin sync)
Windows Support

Before installing resin-cli, you'll need a working node-gyp environment. If you don't already have one you'll see native module build errors during installation. To fix this, run npm install -g --production windows-build-tools in an administrator console (available as 'Command Prompt (Admin)' when pressing windows+x in Windows 7+).

resin sync and resin 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:

  1. Install MinGW.
  2. Install the msys-rsync and msys-openssh packages.
  3. Add MinGW to the %PATH% if this hasn't been done by the installer already. The location where the binaries are places is usually C:\MinGW\msys\1.0\bin, but it can vary if you selected a different location in the installer.
  4. Copy your SSH keys to %homedrive%%homepath\.ssh.
  5. If you need ssh to work behind the proxy you also need to install proxytunnel

Getting Started

NPM install

If you've got all the requirements above, you should be able to install the CLI directly from npm. If not, or if you have any trouble with this, please try the new standalone install steps just below.

This might require elevated privileges in some environments.

$ npm install resin-cli -g --production --unsafe-perm

--unsafe-perm is only required on systems where the global install directory is not user-writable. This allows npm install steps to download and save prebuilt native binaries. You may be able to omit it, especially if you're using a user-managed node install such as nvm.

In some environments, this process will need to build native modules. This may require a more complex build environment, and notably requires Python 2.7. If you hit any problems with this, we recommend you try the alternative standalone install below instead.

Standalone install

If you don't have node or a working pre-gyp environment, you can still install the CLI as a standalone binary. This is experimental and may not work perfectly yet in all environments, but it seems to work well in initial cross-platform testing, so it may be useful, and we'd love your feedback if you hit any issues.

To install the CLI as a standalone binary:

To update in future, simply download a new release and replace the extracted folder.

Have any problems, or see any unexpected behaviour? Please file an issue!

Login

$ resin login

(Typically useful, but not strictly required for all commands)

Run commands

Take a look at the full command documentation at https://docs.resin.io/tools/cli/, or by running resin help.

Bash completions

Optionally you can enable tab completions for the bash shell, enabling the shell to provide additional context and automatically complete arguments toresin. To enable bash completions, copy the resin-completion.bash file to the default bash completions directory (usually /etc/bash_completion.d/) or append it to the end of ~/.bash_completion.

FAQ

Where is my configuration file?

The per-user configuration file lives in $HOME/.resinrc.yml or %UserProfile%\_resinrc.yml, in Unix based operating systems and Windows respectively.

The Resin CLI also attempts to read a resinrc.yml file in the current directory, which takes precedence over the per-user configuration file.

How do I point the Resin CLI to staging?

The easiest way is to set the RESINRC_RESIN_URL=resinstaging.io environment variable.

Alternatively, you can edit your configuration file and set resinUrl: resinstaging.io to persist this setting.

How do I make the Resin CLI persist data in another directory?

The Resin CLI persists your session token, as well as cached images in $HOME/.resin or %UserProfile%\_resin.

Pointing the Resin CLI to persist data in another location is necessary in certain environments, like a server, where there is no home directory, or a device running resinOS, which erases all data after a restart.

You can accomplish this by setting RESINRC_DATA_DIRECTORY=/opt/resin or adding dataDirectory: /opt/resin to your configuration file, replacing /opt/resin with your desired directory.

Support

If you're having any problems, check our troubleshooting guide and if your problem is not addressed there, 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

The project is licensed under the Apache 2.0 license.

Current Tags

  • 5.3.0                                ...           beta.1 (2 years ago)
  • 8.0.3                                ...           latest (a month ago)
  • 6.11.0-rc1                                ...           next (a year ago)

219 Versions

  • 8.0.4-pdcastro-resin-semver-1.4.0-b12e27914811fc43ab44f853a7f1ba91e3446a62                                ...           a month ago
  • 8.0.3-v8-meta-branch-sshsdk-332e731023cf2354625e02427411a70aadceda63                                ...           a month ago
  • 8.0.3-v8-meta-branch-sshsdk-fb86c0e9a805c43918a9147cd8be7a39efc672a4                                ...           a month ago
  • 8.1.0-add-dev-bin-0467e45038b954f37b8e18a78dbe3a9f5e083d19                                ...           a month ago
  • 8.0.2-drop-sdk-preconfigured-app-patterns-948e6ea6f8971852cb8aa61a34ea0f4348059eaf                                ...           a month ago
  • 8.0.1-fix-push-c904726259b15ab8230c31c1cbbd65143b930cd8                                ...           a month ago
  • 8.0.1-drop-sdk-preconfigured-app-patterns-7da3da17b3414bc1ddaf8d8b132c68b83a9d91e5                                ...           a month ago
  • 8.0.1-v8-meta-branch-sshsdk-c631857a5c1eeb93bf956a11db61dfd66fc7ced3                                ...           a month ago
  • 8.0.0-v8-meta-branch-bf71f9ea167346be1afe15a0f1d37f7ed86fd0bd                                ...           a month ago
  • 8.0.0-v8-meta-branch-8a8bb057630e9270446ffdae0a367381361a1d11                                ...           a month ago
  • 7.10.10-drop-sdk-preconfigured-app-patterns-8d2f506e7d734c38214d7ffbab9dd3e50aa9c9d5                                ...           a month ago
  • 7.10.9-sdk-references-update-64b4f6747749228676de6cc5c0266fa7d794ac17                                ...           a month ago
  • 7.10.8-sdk-references-update-8dd8297a73b874b28faa1b4fc6bc196c8c2b2bb1                                ...           a month ago
  • 7.10.8-sdk-references-update-0d06701e2f1b55f1327056923a67bc140f96e0ed                                ...           a month ago
  • 7.10.8-sdk-references-update-379f1cc2175dd33d54a061dc570b1193cfe412cd                                ...           a month ago
  • 7.10.7-sdk-references-update-cab5bf6570f9d87850c147a1a2d8165582c865ef                                ...           a month ago
  • 7.10.7-sdk-references-update-7b7ae4ff894020fa232fcddd7daaf1c0ab4e174c                                ...           a month ago
  • 7.10.7-resin-rename-notice-c637fdc3c60509d94cd774ef21fa3cabd88b9a17                                ...           a month ago
  • 8.0.0-978-oss-flow-c7b5c3050c73e99329116751f047e3fb1b7ae6a6                                ...           a month ago
  • 8.0.3                                ...           a month ago
  • 8.0.2                                ...           a month ago
  • 8.0.1                                ...           a month ago
  • 8.0.0                                ...           a month ago
  • 7.10.9                                ...           a month ago
  • 7.10.8                                ...           a month ago
  • 7.10.7                                ...           a month ago
  • 7.10.6                                ...           2 months ago
  • 7.10.5                                ...           2 months ago
  • 7.10.4                                ...           2 months ago
  • 7.10.3                                ...           2 months ago
  • 7.10.2                                ...           2 months ago
  • 7.10.1                                ...           2 months ago
  • 7.10.0                                ...           2 months ago
  • 7.9.4                                ...           2 months ago
  • 7.9.3                                ...           3 months ago
  • 7.9.2                                ...           3 months ago
  • 7.9.1                                ...           3 months ago
  • 7.9.0                                ...           3 months ago
  • 7.8.6                                ...           3 months ago
  • 7.8.5                                ...           3 months ago
  • 7.8.4                                ...           4 months ago
  • 7.8.3                                ...           4 months ago
  • 7.8.2                                ...           4 months ago
  • 7.8.1                                ...           4 months ago
  • 7.8.0                                ...           4 months ago
  • 7.7.4                                ...           4 months ago
  • 7.7.3                                ...           4 months ago
  • 7.7.2                                ...           4 months ago
  • 7.7.1                                ...           4 months ago
  • 7.7.0                                ...           4 months ago
  • 7.6.2                                ...           5 months ago
  • 7.6.1                                ...           5 months ago
  • 7.6.0                                ...           5 months ago
  • 7.5.2                                ...           5 months ago
  • 7.5.1                                ...           6 months ago
  • 7.5.0                                ...           6 months ago
  • 7.4.1                                ...           6 months ago
  • 7.4.0                                ...           6 months ago
  • 7.3.8                                ...           7 months ago
  • 7.3.7                                ...           7 months ago
  • 7.3.6                                ...           7 months ago
  • 7.3.5                                ...           7 months ago
  • 7.3.4                                ...           7 months ago
  • 7.3.3                                ...           7 months ago
  • 7.3.2                                ...           7 months ago
  • 7.3.1                                ...           7 months ago
  • 7.3.0                                ...           7 months ago
  • 7.2.4                                ...           7 months ago
  • 7.2.3                                ...           7 months ago
  • 7.2.2                                ...           8 months ago
  • 7.2.1                                ...           8 months ago
  • 7.2.0                                ...           8 months ago
  • 7.1.6                                ...           8 months ago
  • 7.1.5                                ...           8 months ago
  • 7.1.4                                ...           8 months ago
  • 7.1.3                                ...           8 months ago
  • 7.1.2                                ...           8 months ago
  • 7.1.1                                ...           8 months ago
  • 7.1.0                                ...           8 months ago
  • 7.0.7                                ...           8 months ago
  • 7.0.6                                ...           8 months ago
  • 7.0.5                                ...           8 months ago
  • 7.0.4                                ...           8 months ago
  • 7.0.3                                ...           8 months ago
  • 7.0.2                                ...           8 months ago
  • 7.0.1                                ...           8 months ago
  • 7.0.0                                ...           8 months ago
  • 6.13.5                                ...           8 months ago
  • 6.13.4                                ...           9 months ago
  • 6.13.3                                ...           9 months ago
  • 6.13.2                                ...           9 months ago
  • 6.13.1                                ...           9 months ago
  • 6.13.0                                ...           9 months ago
  • 6.12.9                                ...           10 months ago
  • 6.12.8                                ...           10 months ago
  • 6.12.7                                ...           10 months ago
  • 6.12.6                                ...           10 months ago
  • 6.12.5                                ...           10 months ago
  • 6.12.4                                ...           10 months ago
  • 6.12.3                                ...           10 months ago
  • 6.12.2                                ...           10 months ago
  • 6.12.1                                ...           a year ago
  • 6.12.0                                ...           a year ago
  • 6.11.0                                ...           a year ago
  • 6.10.3                                ...           a year ago
  • 6.11.0-rc1                                ...           a year ago
  • 6.10.2                                ...           a year ago
  • 6.10.1                                ...           a year ago
  • 6.10.0                                ...           a year ago
  • 6.9.0                                ...           a year ago
  • 6.8.3                                ...           a year ago
  • 6.8.2                                ...           a year ago
  • 6.8.1                                ...           a year ago
  • 6.8.0                                ...           a year ago
  • 6.7.4                                ...           a year ago
  • 6.7.3                                ...           a year ago
  • 6.7.2                                ...           a year ago
  • 6.7.1                                ...           a year ago
  • 6.7.0                                ...           a year ago
  • 6.6.13                                ...           a year ago
  • 6.6.12                                ...           a year ago
  • 6.6.11                                ...           a year ago
  • 6.6.10                                ...           a year ago
  • 6.6.9                                ...           a year ago
  • 6.6.8                                ...           a year ago
  • 6.6.7                                ...           a year ago
  • 6.6.6                                ...           a year ago
  • 6.6.5                                ...           a year ago
  • 6.6.4                                ...           a year ago
  • 6.6.3                                ...           a year ago
  • 6.6.2                                ...           a year ago
  • 6.6.1                                ...           a year ago
  • 6.6.0                                ...           a year ago
  • 6.5.3                                ...           a year ago
  • 6.5.2                                ...           a year ago
  • 6.5.1                                ...           a year ago
  • 6.5.0                                ...           a year ago
  • 6.4.0                                ...           a year ago
  • 6.3.1                                ...           a year ago
  • 6.3.0                                ...           a year ago
  • 6.2.0                                ...           a year ago
  • 6.1.1                                ...           a year ago
  • 6.1.0                                ...           a year ago
  • 6.0.0                                ...           a year ago
  • 5.11.1                                ...           a year ago
  • 5.11.0 [deprecated]           ...           a year ago
  • 5.10.2                                ...           a year ago
  • 5.10.1                                ...           a year ago
  • 5.10.0                                ...           a year ago
  • 5.9.1                                ...           2 years ago
  • 5.8.1                                ...           2 years ago
  • 5.8.0                                ...           2 years ago
  • 5.7.2                                ...           2 years ago
  • 5.7.1                                ...           2 years ago
  • 5.7.0                                ...           2 years ago
  • 5.6.1                                ...           2 years ago
  • 5.4.0                                ...           2 years ago
  • 5.6.0                                ...           2 years ago
  • 5.5.0                                ...           2 years ago
  • 5.3.0                                ...           2 years ago
  • 5.2.4                                ...           2 years ago
  • 5.2.3                                ...           2 years ago
  • 5.2.2                                ...           2 years ago
  • 5.2.1                                ...           2 years ago
  • 5.2.0                                ...           2 years ago
  • 5.1.0                                ...           2 years ago
  • 5.0.0                                ...           2 years ago
  • 4.5.0                                ...           2 years ago
  • 4.4.0                                ...           2 years ago
  • 4.3.0                                ...           2 years ago
  • 4.2.1                                ...           2 years ago
  • 4.2.0                                ...           2 years ago
  • 4.1.0                                ...           2 years ago
  • 4.0.3                                ...           3 years ago
  • 4.0.2                                ...           3 years ago
  • 4.0.1                                ...           3 years ago
  • 4.0.0                                ...           3 years ago
  • 3.0.2                                ...           3 years ago
  • 3.0.1                                ...           3 years ago
  • 3.0.0                                ...           3 years ago
  • 2.7.0                                ...           3 years ago
  • 2.6.2                                ...           3 years ago
  • 2.6.1                                ...           3 years ago
  • 2.6.0                                ...           3 years ago
  • 2.5.0                                ...           3 years ago
  • 2.4.0                                ...           3 years ago
  • 2.3.0                                ...           3 years ago
  • 2.2.0                                ...           3 years ago
  • 2.1.0                                ...           3 years ago
  • 2.0.1                                ...           3 years ago
  • 2.0.0                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
  • 0.11.1                                ...           3 years ago
  • 0.11.0                                ...           3 years ago
  • 0.10.8                                ...           4 years ago
  • 0.10.7                                ...           4 years ago
  • 0.10.6                                ...           4 years ago
  • 0.10.5                                ...           4 years ago
  • 0.10.4                                ...           4 years ago
  • 0.10.3                                ...           4 years ago
  • 0.10.2                                ...           4 years ago
  • 0.10.1                                ...           4 years ago
  • 0.10.0                                ...           4 years ago
  • 0.9.0                                ...           4 years ago
  • 0.8.1                                ...           4 years ago
  • 0.8.0                                ...           4 years ago
  • 0.7.0                                ...           4 years ago
  • 0.6.0                                ...           4 years ago
  • 0.5.0                                ...           4 years ago
  • 0.4.1                                ...           4 years ago
  • 0.4.0                                ...           4 years ago
  • 0.3.0                                ...           4 years ago
  • 0.2.3                                ...           4 years ago
  • 0.2.2                                ...           4 years ago
  • 0.2.1                                ...           4 years ago
  • 0.2.0                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
  • 0.0.1                                ...           4 years ago
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 6,072
Dependencies (86)
Dev Dependencies (29)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |