Download the PHP package stepanenko3/nova-command-runner without Composer
On this page you can find all versions of the php package stepanenko3/nova-command-runner. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package nova-command-runner
Laravel Nova tool for running Artisan & Shell commands
Description
This Nova tool lets you run artisan and bash commands directly from nova.
This is an extended version of the original package Nova Command Runner by guratr
Requirements
php: >=8.0
laravel/nova: ^4.0
Features
- ⌨️ Run predefined artisan and shell commands
- 📝 Run custom artisan and shell commands
- 📄 Use variables while running commands
- 🙋♂️ Prompt the user to specify optional flags while running commands
- 📄 Use predefined values for variables using a select box or prompt the user to enter a value for the variable.
- 📖 Keep track of command run history
- 💾 No database changes required. Everything is managed from a single config file.
- 🕔 Queue long running commands
- ✅ Support command progressbar
- 📱 Responsive
- 🕶 Dark mode
Installation
You can install the nova tool in to a Laravel app that uses Nova via composer:
Next up, you must register the tool with Nova. This is typically done in the tools
method of the NovaServiceProvider
.
Publish the config file:
Add your commands to config/nova-command-runner.php
Usage
Click on the "Command Runner"
menu item in your Nova app to see the tool.
Configuration
All the configuration is managed from a single configuration file located in config/nova-command-runner.php
Adding Commands
All the commands which needs to be easily accessible should be defined in the commands
array
in the configuration file.
Command Options
- run : command to run (E.g. route:cache)
- type : button class (primary, secondary, success, danger, warning, info, light, dark, link)
- group: Group name (optional)
- variables : Array of variables used in the command(optional)
- command_type : Type of the command.(artisan or bash. Default artisan)
- flags : Array of optional flags for the command(optional)
- output_size: crops output of the given command to the specified number of lines
- timeout: updates the timeout limit for the given queued command
Examples
Command with Progress bar
Create Artisan command with progress bar. For example:
Add your command to config commands list
Other Customizations
Screenshots
Credits
Contributing
Thank you for considering contributing to this package! Please create a pull request with your contributions with detailed explanation of the changes you are proposing.
License
This package is open-sourced software licensed under the MIT license.