After you’ve set up the development environment and installed the dev tool change into the ownCloud apps directory:
cd /var/www/owncloud/apps
Then run:
ocdev startapp MyApp --email mail@example.com --author "Your Name" --description "My first app" --owncloud 8
This will create all the needed files in the current directory. For more information on how to customize the generated app, see the Project’s GitHub page or run:
ocdev startapp -h
The app can now be enabled on the ownCloud apps page
The following directories have now been created: