|
1 | | -# Arduino App CLI |
| 1 | +# arduino-app-cli |
2 | 2 |
|
3 | 3 | `arduino-app-cli` is a command line tool and a service running on Arduino UNO Q boards, that: |
4 | 4 |
|
5 | 5 | - manages and runs Arduino Apps on the board (both Linux and microcontroller parts) |
6 | 6 | - provides multiple APIs to perform actions and fetch data, used by the front-end (ArduinoAppsLab) |
7 | 7 | - auto-updates itself and other components |
8 | 8 |
|
9 | | -## Environment Variables |
| 9 | +[](https://github.com/arduino/arduino-app-cli/actions/workflows/go-test.yml) |
10 | 10 |
|
11 | | -The following environment variables are used to configure `arduino-app-cli`: |
| 11 | +## Docs |
| 12 | +For guidance on installation and development, see the [User documentation]. |
12 | 13 |
|
13 | | -### Application Directories |
| 14 | +## Quickstart |
14 | 15 |
|
15 | | -- **`ARDUINO_APP_CLI__APPS_DIR`** Path to the directory where Arduino Apps created by the user are stored.\ |
16 | | - **Default:** `/home/arduino/ArduinoApps` |
| 16 | +## How to contribute |
17 | 17 |
|
18 | | -- **`ARDUINO_APP_CLI__DATA_DIR`** Path to the directory where internal data is stored.\ |
19 | | - **Default:** `/home/arduino/.local/share/arduino-app-cli`\ |
20 | | - This folder contains: |
21 | | - - **`examples/`** default example Apps (_e.g._ `/home/arduino/.local/share/arduino-app-cli/examples`) |
22 | | - - **`assets/`** contains a subfolder for each asset version (_e.g._ `/home/arduino/.local/share/arduino-app-cli/assets/0.4.5`) |
23 | | - - Each asset folder includes: |
24 | | - - `bricks-list.yaml` |
25 | | - - `models-list.yaml` |
26 | | - - **other data** such as `properties.msgpack` containing variable values |
27 | 18 |
|
28 | | -- **`ARDUINO_APP_BRICKS__CUSTOM_MODEL_DIR`** Path to the directory where custom models are stored.\ |
29 | | - **Default:** `$HOME/.arduino-bricks/ei-models`\ |
30 | | - (_e.g._ `/home/arduino/.arduino-bricks/ei-models`) |
31 | 19 |
|
32 | | ---- |
| 20 | +## Security |
33 | 21 |
|
34 | | -### Execution Settings |
| 22 | +If you think you found a vulnerability or other security-related bug in the Arduino CLI, please read our [security |
| 23 | +policy] and report the bug to our Security Team 🛡️ Thank you! |
35 | 24 |
|
36 | | -- **`ARDUINO_APP_CLI__ALLOW_ROOT`** Allow running `arduino-app-cli` as root.\ |
37 | | - **Default:** `false` **Not recommended to set to true.** |
| 25 | +e-mail contact: security@arduino.cc |
38 | 26 |
|
39 | | ---- |
| 27 | +## License |
40 | 28 |
|
41 | | -### External Services |
| 29 | +Arduino CLI is licensed under the GPL-3.0 license. |
42 | 30 |
|
43 | | -- **`LIBRARIES_API_URL`** URL of the external service used to search libraries.\ |
44 | | - **Default:** `https://api2.arduino.cc/libraries/v1/libraries` |
| 31 | +You can be released from the requirements of the above license by purchasing a commercial license. Buying such a license |
| 32 | +is mandatory if you want to modify or otherwise use the software for commercial activities involving the Arduino |
| 33 | +software without disclosing the source code of your own applications. To purchase a commercial license, send an email to |
| 34 | +license@arduino.cc |
45 | 35 |
|
46 | | ---- |
47 | 36 |
|
48 | | -### Docker Settings |
49 | | - |
50 | | -- **`DOCKER_REGISTRY_BASE`** Docker registry used to pull images.\ |
51 | | - **Default:** `ghcr.io/arduino/` |
52 | | - |
53 | | -- **`DOCKER_PYTHON_BASE_IMAGE`** Tag of the Docker image for the Python runner.\ |
54 | | - **Default:** `app-bricks/python-apps-base:<RUNNER_VERSION>` |
55 | | - |
56 | | -### App folder and persistent data |
57 | | - |
58 | | -When running an app, persistent files will be saved in the `data` folder inside the app folder; other supporting files, including the Python venv are saved in the `.cache` folder inside the app folder. |
59 | | - |
60 | | -### Docker images registry |
61 | | - |
62 | | -Arduino Apps bricks might required a docker image, in that case the orchestrator will pull those from the registry configured with the `DOCKER_REGISTRY_BASE` environment variable. By default this points to an Arduino GitHub Container Registry (ghcr.io/arduino). |
63 | | - |
64 | | -The only image that needs to be referenced directly is the base Python image (`DOCKER_PYTHON_BASE_IMAGE`), all other containers can be downloaded automatically by the orchestrator depending on the bricks specified as dependencies in the app.yml file. |
| 37 | +[user documentation]: https://github.com/arduino/arduino-app-cli/docs/user-documentation.md |
| 38 | +[how to contribute]: https://arduino.github.io/arduino-app-cli/latest/CONTRIBUTING/ |
| 39 | +[security policy]: https://github.com/arduino/arduino-app-cli/security/policy |
0 commit comments