Installing Newtmgr on Mac OS

Newtmgr is supported on Mac OS X 64 bit platforms and has been tested on Mac OS 10.9 and higher.

This page shows you how to install the following versions of newtmgr:

  • The latest stable release version (1.0.0)
  • The latest from the master branch (unstable)

Note: If you would like to contribute to the newtmgr tool, see Setting Up Go Environment to Contribute to Newt and Newtmgr Tools.

Adding the runtimeco/homebrew-mynewt Tap:

You should have added the runtimeco/homebrew-mynewt tap when you installed the newt tool. Run the following commands if you have not done so:

$brew tap runtimeco/homebrew-mynewt
$brew update

Usage: newtmgr [flags] newtmgr [command]

Available Commands: config Read or write a config value on a device conn Manage newtmgr connection profiles crash Send a crash command to a device datetime Manage datetime on a device echo Send data to a device and display the echoed back data fs Access files on a device image Manage images on a device log Manage logs on a device mpstat Read memory pool statistics from a device reset Send reset request to a device run Run test procedures on a device stat Read statistics from a device taskstat Read task statistics from a device

Flags: -c, --conn string connection profile to use -h, --help Help for newtmgr commands -l, --loglevel string log level to use (default “info”) -t, --trace print all bytes transmitted and received

Use “newtmgr [command] --help” for more information about a command.

<br>
#### Installing Newtmgr from the Master Branch 
We recommend that you use the latest stable release version (1.0.0) of newtmgr. If you would like to use the master branch with the latest updates, you can install newtmgr from the HEAD of the master branch. 

** Notes: **

* The master branch may be unstable.
* This installation will install the latest version of Go on your computer, if it is not installed, and compile newtmgr locally. 

<br>
If you already installed newtgmr, unlink the current version:
```no-highlight
$brew unlink mynewt-newtmgr