apio init

Usage

apio init [OPTIONS]

Description

Manage apio projects. In addition to the code, an apio project may include a configuration file apio.ini and a Scons script SConstruct.

Options

-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 in apio build, apio time and apio upload commands.

-p, --project-dir

Set the target directory for the project.

-y, --sayyes

Automatically answer YES to all the questions.

Examples

  1. Create a SConstruct file.
$ apio init --scons
Creating SConstruct file ...
File 'SConstruct' has been successfully created!
  1. Create an apio.ini file with the icezum board
$ apio init --board icezum
Creating apio.ini file ...
File 'apio.ini' has been successfully created!