Skip to main content
This tutorial assumes that you have already followed the Installation guide.

Before you start

Make sure that:
  • NativeCLI has been installed
  • NativeCLI is in your path and available for use:
    nativecli --version
    # Output: NativePHP CLI Tool x.x.x
    
    Version number may vary depending on your installed version

Starting a new NativePHP Project

At this time, NativePHP only supports Laravel. For this reason, so does NativeCLI. NativeCLI utilises Laravel’s Installer library. This means that any arguments available within that is also available within NativeCLI.
This tutorial assumes that you will be creating your project in a ~/Code directory in your user home.
  1. Execute the following command in the terminal:
    cd ~/Code
    nativecli new MyFirstProject
    
    New Command Example
  2. You’ll be prompted to select some options from the Laravel installer. Choose your favorites! Laravel Prompt
  3. That’s it! You’ll find a new folder with your project name. It includes everything you need to get started.

Next Steps