apio init [OPTIONS]Manage apio projects. In addition to the code, an apio project may include a configuration file apio.ini and a Scons script SConstruct.
| Flag | Long Flag | Description |
|---|---|---|
-s |
--scons |
Create a default SConstruct file. This file can be modified and it will be used instead of the default script |
-b |
--board |
Create a configuration file with the selected board. This will be the default board used by the commands build, upload and others |
-t |
--top-module |
Set the top_module in the init file |
-p |
--project-dir |
Set the target directory for the project |
-y |
--sayyes |
Automatically answer YES to all the questions |
apio init --board alhambra-iiThe default name for the top module is main
This is the content of the apio.ini file created:
[env]
board = alhambra-ii
top-module = mainapio init -b iCEBreaker --top-module ledsThis is the content of the apio.ini file created:
[env]
board = iCEBreaker
top-module = ledsapio init --sconsThis commands is used by developers for testing new SConstruct files, or by the users who wants to edit/modify the default SConstruct file


