|
1 | 1 | # Arduino App CLI |
2 | 2 |
|
3 | | -`arduino-app-cli` is a command line tool and a service running on Arduino UNO Q boards, that: |
| 3 | +`arduino-app-cli` is a command line tool running on the [Arduino UNO Q](https://docs.arduino.cc/hardware/uno-q/) boards, that manages and runs Arduino Apps (both Linux and microcontroller parts), provides a HTTP daemon mode to expose RestFul APIs, and auto-updates itself and other components. |
4 | 4 |
|
5 | | -- manages and runs Arduino Apps on the board (both Linux and microcontroller parts) |
6 | | -- provides multiple APIs to perform actions and fetch data, used by the front-end (ArduinoAppsLab) |
7 | | -- auto-updates itself and other components |
| 5 | +[](https://github.com/arduino/arduino-app-cli/actions/workflows/go-test.yml) |
8 | 6 |
|
9 | | -## Environment Variables |
| 7 | +## Docs |
10 | 8 |
|
11 | | -The following environment variables are used to configure `arduino-app-cli`: |
| 9 | +For guidance on installation and development, see the [User documentation]. |
12 | 10 |
|
13 | | -### Application Directories |
| 11 | +## Quickstart |
14 | 12 |
|
15 | | -- **`ARDUINO_APP_CLI__APPS_DIR`** Path to the directory where Arduino Apps created by the user are stored.\ |
16 | | - **Default:** `/home/arduino/ArduinoApps` |
| 13 | +// TODO |
17 | 14 |
|
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 |
| 15 | +## How to contribute |
27 | 16 |
|
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`) |
| 17 | +Contributions are welcome! |
31 | 18 |
|
32 | | ---- |
| 19 | +Please read the [Contributor Guide] document, which will show you how to build the source code, run the tests, and |
| 20 | +contribute your changes to the project. |
33 | 21 |
|
34 | | -### Execution Settings |
| 22 | +:sparkles: Thanks to all our [contributors]! :sparkles: |
35 | 23 |
|
36 | | -- **`ARDUINO_APP_CLI__ALLOW_ROOT`** Allow running `arduino-app-cli` as root.\ |
37 | | - **Default:** `false` **Not recommended to set to true.** |
| 24 | +## Security |
38 | 25 |
|
39 | | ---- |
| 26 | +If you think you found a vulnerability or other security-related bug in the Arduino CLI, please read our [security |
| 27 | +policy] and report the bug to our Security Team 🛡️ Thank you! |
40 | 28 |
|
41 | | -### External Services |
| 29 | +e-mail contact: security@arduino.cc |
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 | +## License |
45 | 32 |
|
46 | | ---- |
| 33 | +Arduino App CLI is licensed under the GPL-3.0 license. |
47 | 34 |
|
48 | | -### Docker Settings |
| 35 | +You can be released from the requirements of the above license by purchasing a commercial license. Buying such a license |
| 36 | +is mandatory if you want to modify or otherwise use the software for commercial activities involving the Arduino |
| 37 | +software without disclosing the source code of your own applications. To purchase a commercial license, send an email to |
| 38 | +license@arduino.cc |
49 | 39 |
|
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. |
| 40 | +[user documentation]: docs/user-documentation.md |
| 41 | +[contributor guide]: docs/CONTRIBUTING.md |
| 42 | +[security policy]: https://github.com/arduino/arduino-app-cli/security/policy |
| 43 | +[contributors]: https://github.com/arduino/arduino-app-cli/graphs/contributors |
0 commit comments