Skip to main content
The donkey createcar command sets up a complete car project with all necessary files and folder structure. This is typically the first command you’ll run when starting a new Donkeycar project.

Usage

Options

string
default:"~/mycar"
Path where the car folder will be created. If not specified, creates ~/mycar.
string
default:"complete"
Name of the car template to use. The template determines which application files are copied.
boolean
default:"false"
Replace existing files if they already exist. Without this flag, existing files will not be modified.

Templates

The --template option determines which application template is used. Common templates include:
  • complete (default): Full-featured car application with all standard components
  • Other templates may be available depending on your Donkeycar installation
Templates are stored in the donkeycar/templates/ directory and include:
  • Application file (manage.py)
  • Configuration file (config.py)
  • Training script (train.py)
  • Calibration script (calibrate.py)

What Gets Created

When you run createcar, the following structure is created:

Key Files

  • manage.py: The main application script for running your car. Execute this to start driving.
  • config.py: Default configuration with all available settings
  • myconfig.py: Your personal configuration overrides. Edit this file to customize your car without modifying the default config.
  • train.py: Script for training models (alternative to using donkey train)
  • calibrate.py: Script for calibrating actuators (alternative to using donkey calibrate)

Examples

Create a car in the default location

This creates a new car project at ~/mycar.

Create a car with a custom path

Create a car with a specific template

Overwrite existing car files

Using --overwrite will replace existing manage.py, config.py, train.py, and calibrate.py files. Your myconfig.py file will not be overwritten, preserving your custom settings.

Output Example

Next Steps

After creating your car:
  1. Configure your car: Edit myconfig.py to match your hardware setup
  2. Calibrate actuators: Use donkey calibrate to calibrate your steering and throttle
  3. Start driving: Run python manage.py drive to start the car application
  4. Collect data: Drive your car manually to collect training data
  5. Train a model: Use donkey train to train an autopilot model

Updating an Existing Car

To update an existing car to the latest templates:
This will overwrite the template files while preserving your myconfig.py.