2015-04-16 13:34:40 +00:00
|
|
|
# Resin CLI Documentation
|
|
|
|
|
|
|
|
This tool allows you to interact with the resin.io api from the comfort of your command line.
|
|
|
|
|
|
|
|
To get started download the CLI from npm.
|
|
|
|
|
|
|
|
$ npm install resin-cli -g
|
|
|
|
|
|
|
|
Then authenticate yourself:
|
|
|
|
|
|
|
|
$ resin login
|
|
|
|
|
|
|
|
Now you have access to all the commands referenced below.
|
|
|
|
|
|
|
|
# Table of contents
|
|
|
|
|
|
|
|
- Application
|
|
|
|
|
2015-07-07 22:01:25 +00:00
|
|
|
- [app create <name>](#app-create-60-name-62-)
|
|
|
|
- [apps](#apps)
|
|
|
|
- [app <name>](#app-60-name-62-)
|
|
|
|
- [app restart <name>](#app-restart-60-name-62-)
|
|
|
|
- [app rm <name>](#app-rm-60-name-62-)
|
|
|
|
- [app associate <name>](#app-associate-60-name-62-)
|
|
|
|
- [init](#init)
|
2015-04-16 13:34:40 +00:00
|
|
|
|
|
|
|
- Authentication
|
|
|
|
|
2015-07-07 22:01:25 +00:00
|
|
|
- [login [token]](#login-token-)
|
|
|
|
- [logout](#logout)
|
|
|
|
- [signup](#signup)
|
|
|
|
- [whoami](#whoami)
|
2015-04-16 13:34:40 +00:00
|
|
|
|
|
|
|
- Device
|
|
|
|
|
2015-07-07 22:01:25 +00:00
|
|
|
- [devices](#devices)
|
|
|
|
- [device <name>](#device-60-name-62-)
|
|
|
|
- [device rm <name>](#device-rm-60-name-62-)
|
|
|
|
- [device identify <uuid>](#device-identify-60-uuid-62-)
|
|
|
|
- [device rename <name> [newName]](#device-rename-60-name-62-newname-)
|
|
|
|
- [devices supported](#devices-supported)
|
|
|
|
- [device await <name>](#device-await-60-name-62-)
|
|
|
|
- [device init [device]](#device-init-device-)
|
2015-04-16 13:34:40 +00:00
|
|
|
|
|
|
|
- Drive
|
|
|
|
|
2015-07-07 22:01:25 +00:00
|
|
|
- [drives](#drives)
|
2015-04-16 13:34:40 +00:00
|
|
|
|
|
|
|
- Environment Variables
|
|
|
|
|
2015-07-07 22:01:25 +00:00
|
|
|
- [envs](#envs)
|
|
|
|
- [env rm <id>](#env-rm-60-id-62-)
|
|
|
|
- [env add <key> [value]](#env-add-60-key-62-value-)
|
|
|
|
- [env rename <id> <value>](#env-rename-60-id-62-60-value-62-)
|
2015-04-16 13:34:40 +00:00
|
|
|
|
|
|
|
- Examples
|
|
|
|
|
2015-07-07 22:01:25 +00:00
|
|
|
- [examples](#examples)
|
|
|
|
- [example <name>](#example-60-name-62-)
|
|
|
|
- [example clone <name>](#example-clone-60-name-62-)
|
2015-04-16 13:34:40 +00:00
|
|
|
|
|
|
|
- Help
|
|
|
|
|
2015-07-07 22:01:25 +00:00
|
|
|
- [help [command...]](#help-command-)
|
2015-04-16 13:34:40 +00:00
|
|
|
|
|
|
|
- Information
|
|
|
|
|
2015-07-07 22:01:25 +00:00
|
|
|
- [version](#version)
|
|
|
|
- [config](#config)
|
2015-04-16 13:34:40 +00:00
|
|
|
|
|
|
|
- Keys
|
|
|
|
|
2015-07-07 22:01:25 +00:00
|
|
|
- [keys](#keys)
|
|
|
|
- [key <id>](#key-60-id-62-)
|
|
|
|
- [key rm <id>](#key-rm-60-id-62-)
|
|
|
|
- [key add <name> [path]](#key-add-60-name-62-path-)
|
2015-04-16 13:34:40 +00:00
|
|
|
|
|
|
|
- Logs
|
|
|
|
|
2015-07-07 22:01:25 +00:00
|
|
|
- [logs <uuid>](#logs-60-uuid-62-)
|
2015-04-16 13:34:40 +00:00
|
|
|
|
|
|
|
- Notes
|
|
|
|
|
2015-07-07 22:01:25 +00:00
|
|
|
- [note <|note>](#note-60-note-62-)
|
2015-04-16 13:34:40 +00:00
|
|
|
|
|
|
|
- Plugin
|
|
|
|
|
2015-07-07 22:01:25 +00:00
|
|
|
- [plugins](#plugins)
|
|
|
|
- [plugin install <name>](#plugin-install-60-name-62-)
|
|
|
|
- [plugin update <name>](#plugin-update-60-name-62-)
|
|
|
|
- [plugin rm <name>](#plugin-rm-60-name-62-)
|
2015-04-16 13:34:40 +00:00
|
|
|
|
|
|
|
- Preferences
|
|
|
|
|
2015-07-07 22:01:25 +00:00
|
|
|
- [preferences](#preferences)
|
2015-04-16 13:34:40 +00:00
|
|
|
|
|
|
|
- Update
|
|
|
|
|
2015-07-07 22:01:25 +00:00
|
|
|
- [update](#update)
|
2015-04-16 13:34:40 +00:00
|
|
|
|
|
|
|
# Application
|
2015-04-16 14:42:09 +00:00
|
|
|
|
2015-04-16 13:34:40 +00:00
|
|
|
## app create <name>
|
|
|
|
|
|
|
|
Use this command to create a new resin.io application.
|
|
|
|
|
|
|
|
You can specify the application type with the `--type` option.
|
|
|
|
Otherwise, an interactive dropdown will be shown for you to select from.
|
|
|
|
|
|
|
|
You can see a list of supported device types with
|
|
|
|
|
|
|
|
$ resin devices supported
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
$ resin app create MyApp
|
|
|
|
$ resin app create MyApp --type raspberry-pi
|
|
|
|
|
|
|
|
### Options
|
|
|
|
|
|
|
|
#### --type, -t <type>
|
|
|
|
|
|
|
|
application type
|
|
|
|
|
|
|
|
## apps
|
|
|
|
|
|
|
|
Use this command to list all your applications.
|
|
|
|
|
|
|
|
Notice this command only shows the most important bits of information for each app.
|
|
|
|
If you want detailed information, use resin app <name> instead.
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
$ resin apps
|
|
|
|
|
|
|
|
## app <name>
|
|
|
|
|
|
|
|
Use this command to show detailed information for a single application.
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
$ resin app MyApp
|
|
|
|
|
|
|
|
## app restart <name>
|
|
|
|
|
|
|
|
Use this command to restart all devices that belongs to a certain application.
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
$ resin app restart MyApp
|
|
|
|
|
|
|
|
## app rm <name>
|
|
|
|
|
|
|
|
Use this command to remove a resin.io application.
|
|
|
|
|
|
|
|
Notice this command asks for confirmation interactively.
|
|
|
|
You can avoid this by passing the `--yes` boolean option.
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
$ resin app rm MyApp
|
|
|
|
$ resin app rm MyApp --yes
|
|
|
|
|
|
|
|
### Options
|
|
|
|
|
|
|
|
#### --yes, -y
|
|
|
|
|
|
|
|
confirm non interactively
|
|
|
|
|
|
|
|
## app associate <name>
|
|
|
|
|
|
|
|
Use this command to associate a project directory with a resin application.
|
|
|
|
|
|
|
|
This command adds a 'resin' git remote to the directory and runs git init if necessary.
|
|
|
|
|
2015-06-02 16:32:35 +00:00
|
|
|
Notice this command asks for confirmation interactively.
|
|
|
|
You can avoid this by passing the `--yes` boolean option.
|
|
|
|
|
2015-04-16 13:34:40 +00:00
|
|
|
Examples:
|
|
|
|
|
|
|
|
$ resin app associate MyApp
|
|
|
|
$ resin app associate MyApp --project my/app/directory
|
|
|
|
|
2015-07-07 22:01:25 +00:00
|
|
|
### Options
|
|
|
|
|
|
|
|
#### --yes, -y
|
|
|
|
|
|
|
|
confirm non interactively
|
|
|
|
|
2015-04-16 13:34:40 +00:00
|
|
|
## init
|
|
|
|
|
|
|
|
Use this command to initialise a directory as a resin application.
|
|
|
|
|
|
|
|
This command performs the following steps:
|
|
|
|
- Create a resin.io application.
|
|
|
|
- Initialize the current directory as a git repository.
|
|
|
|
- Add the corresponding git remote to the application.
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
$ resin init
|
|
|
|
$ resin init --project my/app/directory
|
|
|
|
|
|
|
|
# Authentication
|
2015-04-16 14:42:09 +00:00
|
|
|
|
2015-04-16 13:34:40 +00:00
|
|
|
## login [token]
|
|
|
|
|
|
|
|
Use this command to login to your resin.io account.
|
|
|
|
|
|
|
|
To login, you need your token, which is accesible from the preferences page:
|
|
|
|
|
2015-04-20 13:14:47 +00:00
|
|
|
https://dashboard.resin.io/preferences
|
2015-04-16 13:34:40 +00:00
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
$ resin login
|
|
|
|
$ resin login "eyJ0eXAiOiJKV1Qi..."
|
|
|
|
|
|
|
|
## logout
|
|
|
|
|
|
|
|
Use this command to logout from your resin.io account.o
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
$ resin logout
|
|
|
|
|
|
|
|
## signup
|
|
|
|
|
|
|
|
Use this command to signup for a resin.io account.
|
|
|
|
|
|
|
|
If signup is successful, you'll be logged in to your new user automatically.
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
$ resin signup
|
|
|
|
Email: me@mycompany.com
|
|
|
|
Username: johndoe
|
|
|
|
Password: ***********
|
|
|
|
|
|
|
|
$ resin signup --email me@mycompany.com --username johndoe --password ***********
|
|
|
|
|
|
|
|
$ resin whoami
|
|
|
|
johndoe
|
|
|
|
|
|
|
|
### Options
|
|
|
|
|
|
|
|
#### --email, -e <email>
|
|
|
|
|
|
|
|
user email
|
|
|
|
|
|
|
|
#### --username, -u <username>
|
|
|
|
|
|
|
|
user name
|
|
|
|
|
|
|
|
#### --password, -p <user password>
|
|
|
|
|
|
|
|
user password
|
|
|
|
|
2015-04-27 14:51:26 +00:00
|
|
|
## whoami
|
|
|
|
|
|
|
|
Use this command to find out the current logged in username.
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
$ resin whoami
|
|
|
|
|
2015-04-16 13:34:40 +00:00
|
|
|
# Device
|
2015-04-16 14:42:09 +00:00
|
|
|
|
2015-04-16 13:34:40 +00:00
|
|
|
## devices
|
|
|
|
|
2015-04-27 15:20:53 +00:00
|
|
|
Use this command to list all devices that belong to you.
|
|
|
|
|
|
|
|
You can filter the devices by application by using the `--application` option.
|
2015-04-16 13:34:40 +00:00
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
2015-04-27 15:20:53 +00:00
|
|
|
$ resin devices
|
2015-04-16 13:34:40 +00:00
|
|
|
$ resin devices --application MyApp
|
2015-04-27 15:20:53 +00:00
|
|
|
$ resin devices --app MyApp
|
|
|
|
$ resin devices -a MyApp
|
2015-04-16 13:34:40 +00:00
|
|
|
|
|
|
|
### Options
|
|
|
|
|
|
|
|
#### --application, --a,app, --a,app <application>
|
|
|
|
|
|
|
|
application name
|
|
|
|
|
|
|
|
## device <name>
|
|
|
|
|
|
|
|
Use this command to show information about a single device.
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
$ resin device MyDevice
|
|
|
|
|
|
|
|
## device rm <name>
|
|
|
|
|
|
|
|
Use this command to remove a device from resin.io.
|
|
|
|
|
|
|
|
Notice this command asks for confirmation interactively.
|
|
|
|
You can avoid this by passing the `--yes` boolean option.
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
$ resin device rm MyDevice
|
|
|
|
$ resin device rm MyDevice --yes
|
|
|
|
|
|
|
|
### Options
|
|
|
|
|
|
|
|
#### --yes, -y
|
|
|
|
|
|
|
|
confirm non interactively
|
|
|
|
|
|
|
|
## device identify <uuid>
|
|
|
|
|
|
|
|
Use this command to identify a device.
|
|
|
|
|
|
|
|
In the Raspberry Pi, the ACT led is blinked several times.
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
$ resin device identify 23c73a12e3527df55c60b9ce647640c1b7da1b32d71e6a39849ac0f00db828
|
|
|
|
|
|
|
|
## device rename <name> [newName]
|
|
|
|
|
|
|
|
Use this command to rename a device.
|
|
|
|
|
|
|
|
If you omit the name, you'll get asked for it interactively.
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
$ resin device rename MyDevice MyPi
|
|
|
|
$ resin device rename MyDevice
|
|
|
|
|
|
|
|
## devices supported
|
|
|
|
|
|
|
|
Use this command to get the list of all supported devices
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
$ resin devices supported
|
|
|
|
|
2015-05-05 05:08:11 +00:00
|
|
|
## device await <name>
|
|
|
|
|
|
|
|
Use this command to await for a device to become online.
|
|
|
|
|
|
|
|
The process will exit when the device becomes online.
|
|
|
|
|
|
|
|
Notice that there is no time limit for this command, so it might run forever.
|
|
|
|
|
|
|
|
You can configure the poll interval with the --interval option (defaults to 3000ms).
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
$ resin device await MyDevice
|
|
|
|
$ resin device await MyDevice --interval 1000
|
|
|
|
|
|
|
|
### Options
|
|
|
|
|
|
|
|
#### --interval, -i <interval>
|
|
|
|
|
|
|
|
poll interval
|
|
|
|
|
2015-04-16 13:34:40 +00:00
|
|
|
## device init [device]
|
|
|
|
|
|
|
|
Use this command to download the OS image of a certain application and write it to an SD Card.
|
|
|
|
|
|
|
|
Note that this command requires admin privileges.
|
|
|
|
|
|
|
|
If `device` is omitted, you will be prompted to select a device interactively.
|
|
|
|
|
|
|
|
Notice this command asks for confirmation interactively.
|
|
|
|
You can avoid this by passing the `--yes` boolean option.
|
|
|
|
|
2015-07-07 22:01:25 +00:00
|
|
|
You can quiet the progress bar and other logging information by passing the `--quiet` boolean option.
|
2015-04-16 13:34:40 +00:00
|
|
|
|
|
|
|
You need to configure the network type and other settings:
|
|
|
|
|
|
|
|
Ethernet:
|
|
|
|
You can setup the device OS to use ethernet by setting the `--network` option to "ethernet".
|
|
|
|
|
|
|
|
Wifi:
|
|
|
|
You can setup the device OS to use wifi by setting the `--network` option to "wifi".
|
|
|
|
If you set "network" to "wifi", you will need to specify the `--ssid` and `--key` option as well.
|
|
|
|
|
|
|
|
You can omit network related options to be asked about them interactively.
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
$ resin device init
|
2015-04-20 13:14:47 +00:00
|
|
|
$ resin device init --application MyApp
|
|
|
|
$ resin device init --application MyApp --network ethernet
|
|
|
|
$ resin device init /dev/disk2 --application MyApp --network wifi --ssid MyNetwork --key secret
|
2015-04-16 13:34:40 +00:00
|
|
|
|
|
|
|
### Options
|
|
|
|
|
|
|
|
#### --application, --a,app, --a,app <application>
|
|
|
|
|
|
|
|
application name
|
|
|
|
|
|
|
|
#### --network, -n <network>
|
|
|
|
|
|
|
|
network type
|
|
|
|
|
|
|
|
#### --ssid, -s <ssid>
|
|
|
|
|
|
|
|
wifi ssid, if network is wifi
|
|
|
|
|
|
|
|
#### --key, -k <key>
|
|
|
|
|
|
|
|
wifi key, if network is wifi
|
|
|
|
|
|
|
|
# Drive
|
2015-04-16 14:42:09 +00:00
|
|
|
|
2015-04-16 13:34:40 +00:00
|
|
|
## drives
|
|
|
|
|
|
|
|
Use this command to list all drives that are connected to your machine.
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
$ resin drives
|
|
|
|
|
|
|
|
# Environment Variables
|
2015-04-16 14:42:09 +00:00
|
|
|
|
2015-04-16 13:34:40 +00:00
|
|
|
## envs
|
|
|
|
|
2015-07-07 22:01:25 +00:00
|
|
|
Use this command to list all environment variables for
|
|
|
|
a particular application or device.
|
2015-04-16 13:34:40 +00:00
|
|
|
|
2015-07-07 22:01:25 +00:00
|
|
|
This command lists all custom environment variables.
|
|
|
|
If you want to see all environment variables, including private
|
2015-04-16 13:34:40 +00:00
|
|
|
ones used by resin, use the verbose option.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2015-07-07 22:01:25 +00:00
|
|
|
$ resin envs --application MyApp
|
|
|
|
$ resin envs --application MyApp --verbose
|
|
|
|
$ resin envs --device MyDevice
|
2015-04-16 13:34:40 +00:00
|
|
|
|
|
|
|
### Options
|
|
|
|
|
|
|
|
#### --application, --a,app, --a,app <application>
|
|
|
|
|
|
|
|
application name
|
|
|
|
|
2015-07-07 22:01:25 +00:00
|
|
|
#### --device, -d <device>
|
|
|
|
|
|
|
|
device name
|
|
|
|
|
2015-04-16 13:34:40 +00:00
|
|
|
#### --verbose, -v
|
|
|
|
|
|
|
|
show private environment variables
|
|
|
|
|
|
|
|
## env rm <id>
|
|
|
|
|
|
|
|
Use this command to remove an environment variable from an application.
|
|
|
|
|
|
|
|
Don't remove resin specific variables, as things might not work as expected.
|
|
|
|
|
|
|
|
Notice this command asks for confirmation interactively.
|
|
|
|
You can avoid this by passing the `--yes` boolean option.
|
|
|
|
|
2015-07-07 22:01:25 +00:00
|
|
|
If you want to eliminate a device environment variable, pass the `--device` boolean option.
|
|
|
|
|
2015-04-16 13:34:40 +00:00
|
|
|
Examples:
|
|
|
|
|
|
|
|
$ resin env rm 215
|
|
|
|
$ resin env rm 215 --yes
|
2015-07-07 22:01:25 +00:00
|
|
|
$ resin env rm 215 --device
|
2015-04-16 13:34:40 +00:00
|
|
|
|
|
|
|
### Options
|
|
|
|
|
|
|
|
#### --yes, -y
|
|
|
|
|
|
|
|
confirm non interactively
|
|
|
|
|
2015-07-07 22:01:25 +00:00
|
|
|
#### --device, -d
|
|
|
|
|
|
|
|
device name
|
|
|
|
|
2015-04-16 13:34:40 +00:00
|
|
|
## env add <key> [value]
|
|
|
|
|
|
|
|
Use this command to add an enviroment variable to an application.
|
|
|
|
|
|
|
|
If value is omitted, the tool will attempt to use the variable's value
|
|
|
|
as defined in your host machine.
|
|
|
|
|
2015-07-07 22:01:25 +00:00
|
|
|
Use the `--device` option if you want to assign the environment variable
|
|
|
|
to a specific device.
|
|
|
|
|
2015-04-16 13:34:40 +00:00
|
|
|
If the value is grabbed from the environment, a warning message will be printed.
|
|
|
|
Use `--quiet` to remove it.
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
2015-07-07 22:01:25 +00:00
|
|
|
$ resin env add EDITOR vim --application MyApp
|
|
|
|
$ resin env add TERM --application MyApp
|
|
|
|
$ resin env add EDITOR vim --device MyDevice
|
2015-04-16 13:34:40 +00:00
|
|
|
|
|
|
|
### Options
|
|
|
|
|
|
|
|
#### --application, --a,app, --a,app <application>
|
|
|
|
|
|
|
|
application name
|
|
|
|
|
2015-07-07 22:01:25 +00:00
|
|
|
#### --device, -d <device>
|
|
|
|
|
|
|
|
device name
|
|
|
|
|
2015-04-16 13:34:40 +00:00
|
|
|
## env rename <id> <value>
|
|
|
|
|
|
|
|
Use this command to rename an enviroment variable from an application.
|
|
|
|
|
2015-07-07 22:01:25 +00:00
|
|
|
Pass the `--device` boolean option if you want to rename a device environment variable.
|
|
|
|
|
2015-04-16 13:34:40 +00:00
|
|
|
Examples:
|
|
|
|
|
|
|
|
$ resin env rename 376 emacs
|
2015-07-07 22:01:25 +00:00
|
|
|
$ resin env rename 376 emacs --device
|
|
|
|
|
|
|
|
### Options
|
|
|
|
|
|
|
|
#### --device, -d
|
|
|
|
|
|
|
|
device name
|
2015-04-16 13:34:40 +00:00
|
|
|
|
|
|
|
# Examples
|
2015-04-16 14:42:09 +00:00
|
|
|
|
2015-04-16 13:34:40 +00:00
|
|
|
## examples
|
|
|
|
|
|
|
|
Use this command to list available example applications from resin.io
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
$ resin examples
|
|
|
|
|
2015-07-07 22:01:25 +00:00
|
|
|
## example <name>
|
2015-04-16 13:34:40 +00:00
|
|
|
|
|
|
|
Use this command to show information of a single example application
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2015-07-07 22:01:25 +00:00
|
|
|
$ resin example cimon
|
2015-04-16 13:34:40 +00:00
|
|
|
|
2015-07-07 22:01:25 +00:00
|
|
|
## example clone <name>
|
2015-04-16 13:34:40 +00:00
|
|
|
|
|
|
|
Use this command to clone an example application to the current directory
|
|
|
|
|
|
|
|
This command outputs information about the cloning process.
|
|
|
|
Use `--quiet` to remove that output.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2015-07-07 22:01:25 +00:00
|
|
|
$ resin example clone cimon
|
2015-04-16 13:34:40 +00:00
|
|
|
|
|
|
|
# Help
|
2015-04-16 14:42:09 +00:00
|
|
|
|
2015-04-16 13:34:40 +00:00
|
|
|
## help [command...]
|
|
|
|
|
|
|
|
Get detailed help for an specific command.
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
$ resin help apps
|
|
|
|
$ resin help os download
|
|
|
|
|
|
|
|
# Information
|
2015-04-16 14:42:09 +00:00
|
|
|
|
2015-04-16 13:34:40 +00:00
|
|
|
## version
|
|
|
|
|
|
|
|
Display the Resin CLI version.
|
|
|
|
|
2015-07-07 22:01:25 +00:00
|
|
|
## config
|
|
|
|
|
|
|
|
See your current Resin CLI configuration.
|
|
|
|
|
|
|
|
Configuration lives in $HOME/.resin/config.
|
|
|
|
|
2015-04-16 13:34:40 +00:00
|
|
|
# Keys
|
2015-04-16 14:42:09 +00:00
|
|
|
|
2015-04-16 13:34:40 +00:00
|
|
|
## keys
|
|
|
|
|
|
|
|
Use this command to list all your SSH keys.
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
$ resin keys
|
|
|
|
|
|
|
|
## key <id>
|
|
|
|
|
|
|
|
Use this command to show information about a single SSH key.
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
$ resin key 17
|
|
|
|
|
|
|
|
## key rm <id>
|
|
|
|
|
|
|
|
Use this command to remove a SSH key from resin.io.
|
|
|
|
|
|
|
|
Notice this command asks for confirmation interactively.
|
|
|
|
You can avoid this by passing the `--yes` boolean option.
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
$ resin key rm 17
|
|
|
|
$ resin key rm 17 --yes
|
|
|
|
|
|
|
|
### Options
|
|
|
|
|
|
|
|
#### --yes, -y
|
|
|
|
|
|
|
|
confirm non interactively
|
|
|
|
|
|
|
|
## key add <name> [path]
|
|
|
|
|
|
|
|
Use this command to associate a new SSH key with your account.
|
|
|
|
|
|
|
|
If `path` is omitted, the command will attempt
|
|
|
|
to read the SSH key from stdin.
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
$ resin key add Main ~/.ssh/id_rsa.pub
|
|
|
|
$ cat ~/.ssh/id_rsa.pub | resin key add Main
|
|
|
|
|
|
|
|
# Logs
|
2015-04-16 14:42:09 +00:00
|
|
|
|
2015-04-16 13:34:40 +00:00
|
|
|
## logs <uuid>
|
|
|
|
|
|
|
|
Use this command to show logs for a specific device.
|
|
|
|
|
|
|
|
By default, the command prints all log messages and exit.
|
|
|
|
|
|
|
|
To limit the output to the n last lines, use the `--num` option along with a number.
|
|
|
|
This is similar to doing `resin logs <uuid> | tail -n X`.
|
|
|
|
|
|
|
|
To continuously stream output, and see new logs in real time, use the `--tail` option.
|
|
|
|
|
2015-04-27 14:51:26 +00:00
|
|
|
Note that for now you need to provide the whole UUID for this command to work correctly.
|
2015-04-16 13:34:40 +00:00
|
|
|
|
|
|
|
This is due to some technical limitations that we plan to address soon.
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
$ resin logs 23c73a12e3527df55c60b9ce647640c1b7da1b32d71e6a39849ac0f00db828
|
|
|
|
$ resin logs 23c73a12e3527df55c60b9ce647640c1b7da1b32d71e6a39849ac0f00db828 --num 20
|
|
|
|
$ resin logs 23c73a12e3527df55c60b9ce647640c1b7da1b32d71e6a39849ac0f00db828 --tail
|
|
|
|
|
|
|
|
### Options
|
|
|
|
|
|
|
|
#### --num, -n <num>
|
|
|
|
|
|
|
|
number of lines to display
|
|
|
|
|
|
|
|
#### --tail, -t
|
|
|
|
|
|
|
|
continuously stream output
|
|
|
|
|
|
|
|
# Notes
|
2015-04-16 14:42:09 +00:00
|
|
|
|
2015-04-16 13:34:40 +00:00
|
|
|
## note <|note>
|
|
|
|
|
|
|
|
Use this command to set or update a device note.
|
|
|
|
|
|
|
|
If note command isn't passed, the tool attempts to read from `stdin`.
|
|
|
|
|
|
|
|
To view the notes, use $ resin device <name>.
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
$ resin note "My useful note" --device MyDevice
|
|
|
|
$ cat note.txt | resin note --device MyDevice
|
|
|
|
|
|
|
|
### Options
|
|
|
|
|
|
|
|
#### --device, --d,dev, --d,dev <device>
|
|
|
|
|
|
|
|
device name
|
|
|
|
|
|
|
|
# Plugin
|
2015-04-16 14:42:09 +00:00
|
|
|
|
2015-04-16 13:34:40 +00:00
|
|
|
## plugins
|
|
|
|
|
|
|
|
Use this command to list all the installed resin plugins.
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
$ resin plugins
|
|
|
|
|
|
|
|
## plugin install <name>
|
|
|
|
|
|
|
|
Use this command to install a resin plugin
|
|
|
|
|
|
|
|
Use `--quiet` to prevent information logging.
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
$ resin plugin install hello
|
|
|
|
|
|
|
|
## plugin update <name>
|
|
|
|
|
|
|
|
Use this command to update a resin plugin
|
|
|
|
|
|
|
|
Use `--quiet` to prevent information logging.
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
$ resin plugin update hello
|
|
|
|
|
|
|
|
## plugin rm <name>
|
|
|
|
|
|
|
|
Use this command to remove a resin.io plugin.
|
|
|
|
|
|
|
|
Notice this command asks for confirmation interactively.
|
|
|
|
You can avoid this by passing the `--yes` boolean option.
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
$ resin plugin rm hello
|
|
|
|
$ resin plugin rm hello --yes
|
|
|
|
|
|
|
|
### Options
|
|
|
|
|
|
|
|
#### --yes, -y
|
|
|
|
|
|
|
|
confirm non interactively
|
|
|
|
|
|
|
|
# Preferences
|
2015-04-16 14:42:09 +00:00
|
|
|
|
2015-04-16 13:34:40 +00:00
|
|
|
## preferences
|
|
|
|
|
|
|
|
Use this command to open the preferences form.
|
|
|
|
|
|
|
|
In the future, we will allow changing all preferences directly from the terminal.
|
|
|
|
For now, we open your default web browser and point it to the web based preferences form.
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
$ resin preferences
|
|
|
|
|
|
|
|
# Update
|
2015-04-16 14:42:09 +00:00
|
|
|
|
2015-04-16 13:34:40 +00:00
|
|
|
## update
|
|
|
|
|
|
|
|
Use this command to update the Resin CLI
|
|
|
|
|
|
|
|
This command outputs information about the update process.
|
|
|
|
Use `--quiet` to remove that output.
|
|
|
|
|
|
|
|
The Resin CLI checks for updates once per day.
|
|
|
|
|
|
|
|
Major updates require a manual update with this update command,
|
|
|
|
while minor updates are applied automatically.
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
$ resin update
|
|
|
|
|