Spectivis Cloud
Commands
Run a one-off command inside your running environment with its variables.
The Commands tab runs a one-off command inside your environment’s running instance, with the environment’s variables. Use it for things like php artisan migrate:status, php artisan cache:clear or a data fix.
- Any member of the organization can run a command.
- A command can run for up to 10 minutes. Output streams to the page while it runs.
- A running command keeps the environment awake. If the environment is asleep, running a command wakes it.
- Every run is recorded in the activity log with who ran it, the command and its exit code. Output is kept for 7 days.
- A command that waits for you to type, such as
php artisan tinker, will not work here. Commands that take their input as arguments do. Where the tab is called Terminal, its Shell mode is a live terminal for that kind of work, and one-off commands are its Command mode. - Static sites have no instance, so no commands.
What a command can reach
Section titled “What a command can reach”Only its own environment: its files, its variables and its database. A staging environment cannot reach production.
Not for long jobs
Section titled “Not for long jobs”For work that takes more than 10 minutes or should run on a schedule, use your framework’s queue and scheduler instead.