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-)
|
2015-04-16 13:34:40 +00:00
|
|
|
|
|
|
|
- Authentication
|
|
|
|
|
2015-11-11 12:45:38 +00:00
|
|
|
- [login](#login)
|
2015-07-07 22:01:25 +00:00
|
|
|
- [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)
|
2015-08-04 14:00:09 +00:00
|
|
|
- [device <uuid>](#device-60-uuid-62-)
|
2015-09-29 18:33:31 +00:00
|
|
|
- [device register <application>](#device-register-60-application-62-)
|
2015-08-04 14:00:09 +00:00
|
|
|
- [device rm <uuid>](#device-rm-60-uuid-62-)
|
2015-07-07 22:01:25 +00:00
|
|
|
- [device identify <uuid>](#device-identify-60-uuid-62-)
|
2015-08-04 14:00:09 +00:00
|
|
|
- [device rename <uuid> [newName]](#device-rename-60-uuid-62-newname-)
|
2015-11-11 19:00:02 +00:00
|
|
|
- [device move <uuid>](#device-move-60-uuid-62-)
|
2015-09-29 15:10:33 +00:00
|
|
|
- [device init](#device-init)
|
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
|
|
|
|
|
|
|
- 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)
|
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
|
|
|
|
2015-09-29 17:03:14 +00:00
|
|
|
- OS
|
|
|
|
|
|
|
|
- [os download <type>](#os-download-60-type-62-)
|
2015-09-29 17:36:29 +00:00
|
|
|
- [os configure <image> <uuid>](#os-configure-60-image-62-60-uuid-62-)
|
2015-10-15 12:48:34 +00:00
|
|
|
- [os initialize <image>](#os-initialize-60-image-62-)
|
2015-09-29 17:03:14 +00:00
|
|
|
|
2015-11-10 16:53:34 +00:00
|
|
|
- Config
|
|
|
|
|
|
|
|
- [config read](#config-read)
|
2015-11-10 18:27:01 +00:00
|
|
|
- [config write <key> <value>](#config-write-60-key-62-60-value-62-)
|
2015-11-11 14:38:45 +00:00
|
|
|
- [config reconfigure](#config-reconfigure)
|
2015-11-10 16:53:34 +00:00
|
|
|
|
2015-09-01 17:01:47 +00:00
|
|
|
- Wizard
|
2015-04-16 13:34:40 +00:00
|
|
|
|
2015-09-01 17:01:47 +00:00
|
|
|
- [quickstart [name]](#quickstart-name-)
|
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
|
|
|
|
|
2015-11-11 12:45:38 +00:00
|
|
|
# Authentication
|
2015-04-16 13:34:40 +00:00
|
|
|
|
2015-11-11 12:45:38 +00:00
|
|
|
## login
|
2015-04-16 13:34:40 +00:00
|
|
|
|
2015-11-11 12:45:38 +00:00
|
|
|
Use this command to login to your resin.io account.
|
2015-06-02 16:32:35 +00:00
|
|
|
|
2015-04-16 13:34:40 +00:00
|
|
|
Examples:
|
|
|
|
|
2015-11-11 12:45:38 +00:00
|
|
|
$ resin login
|
2015-04-16 13:34:40 +00:00
|
|
|
|
2015-07-07 22:01:25 +00:00
|
|
|
### Options
|
|
|
|
|
2015-11-11 12:45:38 +00:00
|
|
|
#### --email, --e,u, --e,u <email>
|
2015-04-16 13:34:40 +00:00
|
|
|
|
2015-11-11 12:45:38 +00:00
|
|
|
email
|
2015-04-16 13:34:40 +00:00
|
|
|
|
2015-11-11 12:45:38 +00:00
|
|
|
#### --password, -p <password>
|
2015-04-16 13:34:40 +00:00
|
|
|
|
2015-11-11 12:45:38 +00:00
|
|
|
password
|
2015-04-16 13:34:40 +00:00
|
|
|
|
|
|
|
## 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 whoami
|
|
|
|
johndoe
|
|
|
|
|
2015-04-27 14:51:26 +00:00
|
|
|
## whoami
|
|
|
|
|
2015-09-01 17:01:47 +00:00
|
|
|
Use this command to find out the current logged in username and email address.
|
2015-04-27 14:51:26 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2015-08-04 14:00:09 +00:00
|
|
|
## device <uuid>
|
2015-04-16 13:34:40 +00:00
|
|
|
|
|
|
|
Use this command to show information about a single device.
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
2015-08-04 14:00:09 +00:00
|
|
|
$ resin device 7cf02a62a3a84440b1bb5579a3d57469148943278630b17e7fc6c4f7b465c9
|
2015-04-16 13:34:40 +00:00
|
|
|
|
2015-09-29 18:33:31 +00:00
|
|
|
## device register <application>
|
|
|
|
|
|
|
|
Use this command to register a device to an application.
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
$ resin device register MyApp
|
|
|
|
|
2015-10-19 18:16:47 +00:00
|
|
|
### Options
|
|
|
|
|
|
|
|
#### --uuid, -u <uuid>
|
|
|
|
|
|
|
|
custom uuid
|
|
|
|
|
2015-08-04 14:00:09 +00:00
|
|
|
## device rm <uuid>
|
2015-04-16 13:34:40 +00:00
|
|
|
|
|
|
|
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:
|
|
|
|
|
2015-08-04 14:00:09 +00:00
|
|
|
$ resin device rm 7cf02a62a3a84440b1bb5579a3d57469148943278630b17e7fc6c4f7b465c9
|
|
|
|
$ resin device rm 7cf02a62a3a84440b1bb5579a3d57469148943278630b17e7fc6c4f7b465c9 --yes
|
2015-04-16 13:34:40 +00:00
|
|
|
|
|
|
|
### 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
|
|
|
|
|
2015-08-04 14:00:09 +00:00
|
|
|
## device rename <uuid> [newName]
|
2015-04-16 13:34:40 +00:00
|
|
|
|
|
|
|
Use this command to rename a device.
|
|
|
|
|
|
|
|
If you omit the name, you'll get asked for it interactively.
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
2015-08-04 14:00:09 +00:00
|
|
|
$ resin device rename 7cf02a62a3a84440b1bb5579a3d57469148943278630b17e7fc6c4f7b465c9 MyPi
|
|
|
|
$ resin device rename 7cf02a62a3a84440b1bb5579a3d57469148943278630b17e7fc6c4f7b465c9
|
2015-04-16 13:34:40 +00:00
|
|
|
|
2015-11-11 19:00:02 +00:00
|
|
|
## device move <uuid>
|
|
|
|
|
|
|
|
Use this command to move a device to another application you own.
|
|
|
|
|
|
|
|
If you omit the application, you'll get asked for it interactively.
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
$ resin device move 7cf02a62a3a84440b1bb5579a3d57469148943278630b17e7fc6c4f7b465c9
|
|
|
|
$ resin device move 7cf02a62a3a84440b1bb5579a3d57469148943278630b17e7fc6c4f7b465c9 --application MyNewApp
|
|
|
|
|
|
|
|
### Options
|
|
|
|
|
|
|
|
#### --application, --a,app, --a,app <application>
|
|
|
|
|
|
|
|
application name
|
|
|
|
|
2015-09-29 15:10:33 +00:00
|
|
|
## device init
|
2015-04-16 13:34:40 +00:00
|
|
|
|
|
|
|
Use this command to download the OS image of a certain application and write it to an SD Card.
|
|
|
|
|
2015-09-29 15:10:33 +00:00
|
|
|
Notice this command may ask for confirmation interactively.
|
2015-04-16 13:34:40 +00:00
|
|
|
You can avoid this by passing the `--yes` boolean option.
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
$ resin device init
|
2015-04-20 13:14:47 +00:00
|
|
|
$ resin device init --application MyApp
|
2015-04-16 13:34:40 +00:00
|
|
|
|
|
|
|
### Options
|
|
|
|
|
|
|
|
#### --application, --a,app, --a,app <application>
|
|
|
|
|
|
|
|
application name
|
|
|
|
|
2015-09-29 15:10:33 +00:00
|
|
|
#### --yes, -y
|
2015-04-16 13:34:40 +00:00
|
|
|
|
2015-09-29 15:10:33 +00:00
|
|
|
confirm non interactively
|
2015-04-16 13:34:40 +00:00
|
|
|
|
2015-10-20 13:16:56 +00:00
|
|
|
#### --advanced, -v
|
|
|
|
|
|
|
|
enable advanced configuration
|
|
|
|
|
2015-04-16 13:34:40 +00:00
|
|
|
# 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
|
2015-08-04 14:00:09 +00:00
|
|
|
$ resin envs --device 7cf02a62a3a84440b1bb5579a3d57469148943278630b17e7fc6c4f7b465c9
|
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
|
2015-09-30 16:07:44 +00:00
|
|
|
$ resin env add EDITOR vim --device 7cf02a62a3a84440b1bb5579a3d57469148943278630b17e7fc6c4f7b465c9
|
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
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2015-10-15 12:48:34 +00:00
|
|
|
### Options
|
|
|
|
|
|
|
|
#### --verbose, -v
|
|
|
|
|
|
|
|
show additional commands
|
|
|
|
|
2015-04-16 13:34:40 +00:00
|
|
|
# Information
|
2015-04-16 14:42:09 +00:00
|
|
|
|
2015-04-16 13:34:40 +00:00
|
|
|
## version
|
|
|
|
|
|
|
|
Display the Resin CLI version.
|
|
|
|
|
|
|
|
# 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 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 --tail
|
|
|
|
|
|
|
|
### Options
|
|
|
|
|
|
|
|
#### --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`.
|
|
|
|
|
2015-08-04 14:00:09 +00:00
|
|
|
To view the notes, use $ resin device <uuid>.
|
2015-04-16 13:34:40 +00:00
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
2015-08-04 14:00:09 +00:00
|
|
|
$ resin note "My useful note" --device 7cf02a62a3a84440b1bb5579a3d57469148943278630b17e7fc6c4f7b465c9
|
|
|
|
$ cat note.txt | resin note --device 7cf02a62a3a84440b1bb5579a3d57469148943278630b17e7fc6c4f7b465c9
|
2015-04-16 13:34:40 +00:00
|
|
|
|
|
|
|
### Options
|
|
|
|
|
|
|
|
#### --device, --d,dev, --d,dev <device>
|
|
|
|
|
2015-08-04 14:00:09 +00:00
|
|
|
device uuid
|
2015-04-16 13:34:40 +00:00
|
|
|
|
2015-09-29 17:03:14 +00:00
|
|
|
# OS
|
|
|
|
|
|
|
|
## os download <type>
|
|
|
|
|
|
|
|
Use this command to download an unconfigured os image for a certain device type.
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
$ resin os download parallella -o ../foo/bar/parallella.img
|
|
|
|
|
|
|
|
### Options
|
|
|
|
|
|
|
|
#### --output, -o <output>
|
|
|
|
|
|
|
|
output path
|
|
|
|
|
2015-09-29 17:36:29 +00:00
|
|
|
## os configure <image> <uuid>
|
|
|
|
|
|
|
|
Use this command to configure a previously download operating system image with a device.
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
$ resin os configure ../path/rpi.img 7cf02a62a3a84440b1bb5579a3d57469148943278630b17e7fc6c4f7b465c9
|
|
|
|
|
2015-10-19 17:38:09 +00:00
|
|
|
### Options
|
|
|
|
|
|
|
|
#### --advanced, -v
|
|
|
|
|
|
|
|
show advanced commands
|
|
|
|
|
2015-10-15 12:48:34 +00:00
|
|
|
## os initialize <image>
|
2015-09-29 18:52:34 +00:00
|
|
|
|
|
|
|
Use this command to initialize a previously configured operating system image.
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
2015-10-15 12:48:34 +00:00
|
|
|
$ resin os initialize ../path/rpi.img --type 'raspberry-pi'
|
|
|
|
|
|
|
|
### Options
|
|
|
|
|
|
|
|
#### --yes, -y
|
|
|
|
|
|
|
|
confirm non interactively
|
|
|
|
|
|
|
|
#### --type, -t <type>
|
|
|
|
|
|
|
|
device type
|
2015-09-29 18:52:34 +00:00
|
|
|
|
2015-10-20 13:17:48 +00:00
|
|
|
#### --drive, -d <drive>
|
|
|
|
|
|
|
|
drive
|
|
|
|
|
2015-11-10 16:53:34 +00:00
|
|
|
# Config
|
|
|
|
|
|
|
|
## config read
|
|
|
|
|
|
|
|
Use this command to read the config.json file from a provisioned device
|
|
|
|
|
2015-11-10 18:27:01 +00:00
|
|
|
Examples:
|
2015-11-10 16:53:34 +00:00
|
|
|
|
|
|
|
$ resin config read --type raspberry-pi
|
|
|
|
$ resin config read --type raspberry-pi --drive /dev/disk2
|
|
|
|
|
|
|
|
### Options
|
|
|
|
|
|
|
|
#### --type, -t <type>
|
|
|
|
|
|
|
|
device type
|
|
|
|
|
|
|
|
#### --drive, -d <drive>
|
|
|
|
|
|
|
|
drive
|
|
|
|
|
2015-11-10 18:27:01 +00:00
|
|
|
## config write <key> <value>
|
|
|
|
|
|
|
|
Use this command to write the config.json file of a provisioned device
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
$ resin config write --type raspberry-pi username johndoe
|
|
|
|
$ resin config write --type raspberry-pi --drive /dev/disk2 username johndoe
|
|
|
|
$ resin config write --type raspberry-pi files.network/settings "..."
|
|
|
|
|
|
|
|
### Options
|
|
|
|
|
|
|
|
#### --type, -t <type>
|
|
|
|
|
|
|
|
device type
|
|
|
|
|
|
|
|
#### --drive, -d <drive>
|
|
|
|
|
|
|
|
drive
|
|
|
|
|
2015-11-11 14:38:45 +00:00
|
|
|
## config reconfigure
|
|
|
|
|
|
|
|
Use this command to reconfigure a provisioned device
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
$ resin config reconfigure --type raspberry-pi
|
|
|
|
$ resin config reconfigure --type raspberry-pi --advanced
|
|
|
|
$ resin config reconfigure --type raspberry-pi --drive /dev/disk2
|
|
|
|
|
|
|
|
### Options
|
|
|
|
|
|
|
|
#### --type, -t <type>
|
|
|
|
|
|
|
|
device type
|
|
|
|
|
|
|
|
#### --drive, -d <drive>
|
|
|
|
|
|
|
|
drive
|
|
|
|
|
|
|
|
#### --advanced, -v
|
|
|
|
|
|
|
|
show advanced commands
|
|
|
|
|
2015-09-01 17:01:47 +00:00
|
|
|
# Wizard
|
2015-04-16 13:34:40 +00:00
|
|
|
|
2015-09-01 17:01:47 +00:00
|
|
|
## quickstart [name]
|
2015-04-16 14:42:09 +00:00
|
|
|
|
2015-09-01 17:01:47 +00:00
|
|
|
Use this command to run a friendly wizard to get started with resin.io.
|
2015-04-16 13:34:40 +00:00
|
|
|
|
2015-09-01 17:01:47 +00:00
|
|
|
The wizard will guide you through:
|
2015-04-16 13:34:40 +00:00
|
|
|
|
2015-09-01 17:01:47 +00:00
|
|
|
- Create an application.
|
|
|
|
- Initialise an SDCard with the resin.io operating system.
|
|
|
|
- Associate an existing project directory with your resin.io application.
|
|
|
|
- Push your project to your devices.
|
2015-04-16 13:34:40 +00:00
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
2015-09-01 17:01:47 +00:00
|
|
|
$ sudo resin quickstart
|
|
|
|
$ sudo resin quickstart MyApp
|
2015-04-16 13:34:40 +00:00
|
|
|
|