In this step, you will install Sam. Sam is a CLI (Command Line Interface) that you will be using to create, manage and deploy your assistants, to configure your hardware, to view the logs of your assistants on the Raspberry, as well as to run your application locally for quick prototyping.
From a command shell on your local machine, run the following command:
sudo npm install -g snips-sam
You'll be asked to fill your computer password first.
You are now able to run the
sam command from your command shell.
Let's try to find nearby Raspberry Pi devices on your network, using the command
sam devicesScanning Raspberry Pi devices on the network...Found 1 device:- raspberrypi (192.168.9.2)
Connect to your device (you may use your device IP or hostname, and in the latter case, make sure to append
.local to the hostname):
sam connect raspberrypi.local? Enter username for the device: pi? Enter password for the device: [hidden]Connected to raspberrypi.local
You are now connected to your Snips device!
sam statusConnected to device raspberrypi.localOS version ................... Raspbian GNU/Linux 9 (stretch)Status ....................... Snips Platform not installedYou may install the Snips Platform using sam initTo install specific components, check the help using sam init --help
In the next step, you will install the Snips Platform on the device.