You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -62,6 +63,8 @@ You can get the latest stable version of *mbed CLI* via PyPI by running:
62
63
$ pip install mbed-cli
63
64
```
64
65
66
+
On Linux/Mac, you may need to run with `sudo`.
67
+
65
68
Alternatively you get the development version of *mbed CLI* by cloning the development repository [https://github.com/ARMmbed/mbed-cli](https://github.com/ARMmbed/mbed-cli):
<spanclass="notes">**Note:** This feature does not work in applications that contain a ```main``` function that is outside of a `TESTS` directory.</span>
688
691
692
+
## mbed CLI configuration
693
+
694
+
Many options in *mbed CLI* can be streamlined with global and local configuration.
695
+
696
+
The *mbed CLI* configuration syntax is:
697
+
```
698
+
mbed config [--global] <var> [value] [--unset]
699
+
```
700
+
701
+
The **global** configuration (via `--global` option) defines the default behavior of *mbed CLI* across programs unless overridden by *local* settings.
702
+
703
+
The **local** configuration (without `--global`) is per mbed program and allows overriding of global or default *mbed CLI* settings within the scope of a program or library and its dependencies.
704
+
705
+
If **no value** is specified then *mbed CLI* will print the currently set value for this settings from either local or global scope.
706
+
707
+
The `--unset` option allows removing of a setting.
708
+
709
+
Here is a list of currently implemented configuration settings:
710
+
*`target` - Define default target for `compile`, `test` and `export`, and is an alias to `mbed target`. Default: none.
711
+
*`toolchain` - Defines default toolchain for `compile` and `test` can be set through `mbed toolchain`. Default: none.
712
+
*`ARM_PATH`, `GCC_ARM_PATH`, `IAR_PATH` - defines default path to ARM Compiler, GCC ARM and IAR Workbench toolchains. Default: none.
713
+
*`protocol` - Defines the default protocol used for importing/cloning of programs and libraries. Possible values are `https`, `http` and `ssh`. Use `ssh` if you have generated and registered SSH keys (Public Key Authentication) with a service like GitHub, GitLab, Bitbucket, etc. Read more about SSH keys [here](https://help.github.com/articles/generating-an-ssh-key/) Default: `https`.
714
+
*`depth` - Defines *clone* depth for importing/cloning and applies only to *Git* repositories. Note that while this option may improve cloning speed, it may also prevent you from correctly checking out a dependency tree when the reference revision hash is older than the clone depth. Read more about shallow clones [here](https://git-scm.com/docs/git-clone). Default: none.
715
+
*`cache` (EXPERIMENTAL) - Defines local path that will be used to store minimalistic copies of the imported/cloned repositories and attempt to use them to minimize traffic and speed up future importing. This feature is still under development, so this should not be used within a production environment. Default: none (disabled).
716
+
689
717
## Known limitations
690
718
691
719
<spanclass="warnings">**Warning**: At this point, *mbed CLI* is alpha quality and very much in development. Breakages are fully expected. Please open issues on this repository for any problems that you find with *mbed CLI*.</span>
0 commit comments