diff --git a/app/Console/Commands/System/OutputVersion.php b/app/Console/Commands/System/OutputVersion.php new file mode 100644 index 0000000000..c00b1cef50 --- /dev/null +++ b/app/Console/Commands/System/OutputVersion.php @@ -0,0 +1,50 @@ +. + */ + +namespace FireflyIII\Console\Commands\System; + +use Illuminate\Console\Command; + +class OutputVersion extends Command +{ + /** + * The name and signature of the console command. + * + * @var string + */ + protected $signature = 'firefly-iii:output-version'; + + /** + * The console command description. + * + * @var string + */ + protected $description = 'Outputs the Firefly III version'; + + /** + * Execute the console command. + */ + public function handle(): int + { + echo config('firefly.version'); + return 0; + } +}