Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ProcessMaker/Console/Commands/TenantsCreate.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,9 @@ public function handle()
$this->line('- Run migrations and seed the database');
$this->line('- Run the install command for each package');
$this->line('- Run artisan upgrade');
$this->line('- Install passport by calling passport:install');
$this->line('- Install passport by calling passport:install (create the default clients');
$this->line('- Reset the admin password with auth:set-password');
$this->line('- Run processmaker:initialize-script-microservice');
$this->info("For example, `TENANT={$tenant->id} php artisan migrate:fresh --seed`");
}
}
Expand Down
8 changes: 7 additions & 1 deletion ProcessMaker/Console/Commands/TenantsList.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class TenantsList extends Command
*
* @var string
*/
protected $signature = 'tenants:list {--ids : Only output the ids}';
protected $signature = 'tenants:list {--ids : Only output the ids} {--json : Output the tenants as JSON}';

/**
* The console command description.
Expand All @@ -40,6 +40,12 @@ public function handle()
return;
}

if ($this->option('json')) {
$this->line(json_encode($tenants->toArray(), JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES));

return;
}

$formattedTenants = $tenants->map(function ($tenant) {
$config = $tenant->config;

Expand Down