petebishwhip / native-cli
CLI helper for NativePHP Projects
Fund package maintenance!
PeteBishwhip
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 22
Watchers: 2
Forks: 1
Open Issues: 3
pkg:composer/petebishwhip/native-cli
Requires
- ext-curl: *
- guzzlehttp/guzzle: ^7.9
- illuminate/filesystem: ^11.41|^12.0
- illuminate/support: ^11.42.0|^12.0
- laravel/installer: ^5.12
- symfony/console: ^7.2
- symfony/process: ^7.2
- z4kn4fein/php-semver: ^3.0
Requires (Dev)
- laravel/helpers: ^1.7
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^11.5
- dev-main
- 1.2.0
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0-rc.1
- 1.0.0-beta.2
- 1.0.0-beta.1
- 1.0.0-alpha.2
- 1.0.0-alpha.1
- dev-analysis-pER5d4
- dev-feat/menu-generator
- dev-analysis-7PbMWb
- dev-feature/logs-command
- dev-add-claude-github-actions-1762257962928
- dev-add-claude-github-actions-1762257691856
- dev-feat/v2
- dev-analysis-BAPV47
- dev-releases/1.0.1-release.1
- dev-feature/package-to-phar
- dev-releases/1.0.0-release.1
- dev-testing/larastan-integration
- dev-feature/start-tests
This package is auto-updated.
Last update: 2025-11-05 19:22:17 UTC
README
NativePHP CLI is a command-line tool to create and manage Laravel projects with NativePHP integration.
Installation
To install NativePHP CLI, you need to have PHP and Composer installed on your system.
composer global require nativecli/nativecli
Usage
Create a New Project
To create a new Laravel project with NativePHP, use the new command:
nativecli new <project-name>
View Logs
Display logs from Laravel and native layers with the logs command:
# Display last 50 log entries nativecli logs # Follow logs in real-time (like tail -f) nativecli logs --follow # Filter by log level nativecli logs --level=error # Limit number of lines nativecli logs --lines=100 # Filter by source (laravel, native, all) nativecli logs --source=laravel # Filter by date range nativecli logs --start-date="2025-01-01" --end-date="2025-01-15" # Combine options nativecli logs --level=error --lines=20 --follow
The logs command automatically detects log locations for both development and production environments:
- Development:
storage/logs/laravel.log - Production (Desktop): Platform-specific appdata directories based on your
NATIVEPHP_APP_ID
Documentation & Command References
For more detailed documentation, visit NativeCLI Documentation.
Sponsor
We welcome sponsorships which help us to continue providine Free & Open-Source software and tools to you!
With thanks to our current sponsors...
- Simon Hamp - Co-Creator of NativePHP
License
This project is licensed under the MIT License.