title: Command Line

##Overview

Interaction with Apache PredictionIO is done through the command line interface. It follows the format of:

pio <command> [options] <args>...

You can run pio help to see a list of all available commands and pio help <command> to see details of the command.

Apache PredictionIO commands can be separated into the following three categories.

##General Commands pio help Display usage summary. pio help <command> to read about a specific subcommand.

pio version Displays the version of the installed PredictionIO.

pio status Displays install path and running status of PredictionIO system and its dependencies.

##Event Server Commands

pio eventserver Launch the Event Server.

pio app Manage apps that are used by the Event Server.

pio app data-delete <name> deletes all data associated with the app.

pio app delete <name> deletes the app and its data.

--ip <value> IP to bind to. Default to localhost.

--port <value> Port to bind to. Default to 7070.

pio accesskey Manage app access keys.

##Engine Commands Engine commands need to be run from the directory that contains the engine project. --debug and --verbose flags will provide debug and third-party informational messages.

pio build Build the engine at the current directory.

pio train Kick off a training using an engine.

pio deploy Deploy an engine as an engine server.

pio batchpredict Process bulk predictions using an engine.

For deploy & batchpredict, if --engine-instance-id is not specified, it will use the latest trained instance.