pkgs api manage the indexes and tools installed on the system.

Indexes

An index file contains the info about a core and its tools. You can see an example at https://downloads.arduino.cc/packages/package_index.json

index files are saved (with an urlencoded filename) in the folder ~/.arduino-create/indexes

List Indexes

You can list the indexes installed in the system with this simple GET



Add Indexes

You can add a new index with a POST request



You can now check if the new package_index was downloaded by repeating List Indexes.

Remove Indexes

You can add a new index with a POST request



You can now check if the new package_index was removed by repeating List Indexes.

Tools

A tool is an executable that can be used to program a board.

tools are saved in the folder ~/.arduino-create with a structure like {packager}/{name}/{version}

List Available Tools

You can list the available tools that could be installed from an index with this simple GET. (Remember to add indexes)



List Installed Tools

You can list the tools installed in the system with this simple GET



Install a tool from an index file

You can install one of the available tools with a PUT request



Remove an installed tool

You can remove one of the installed tools with a DELETE request