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. NativeCLI will install NativePHP and then ask whether you want to start the app with native:run.
  4. Prefer NativePHP Jump instead? Create the project with --jump to run native:jump and skip install/run:
    nativecli new MyFirstProject --jump
    

Next Steps

Configure Your Project

Learn about NativeCLI configuration options

Explore Commands

See all available NativeCLI commands