Using the 20i Laravel Command Executor

Austin Beresford
Published: 23 February 2023
Share:

20i and its Laravel Command Executor

The 20i Laravel Command Executor is a feature available when you provision a Laravel-optimised Managed Cloud ServerThe command executor allows you to run custom commands on your server directly from the 20i control panel without needing to connect via SSH.

Using the command executor, you can perform a wide range of server management tasks, such as installing software, configuring services, running database migrations, and more. The command executor also provides access to tools such as PHP.

The Command Executor currently supports the following types of command: PHP, Artisan, ENV, NPM and Node commands.

Here are some examples of what you can run using the 20i Laravel Command Executor.

1. Install packages: You can use the command executor to install packages or libraries on your server. For example, to install the curl package, you can run:

sudo apt-get install curl

2. Run database migrations: If you're using a PHP framework like Laravel, you can run database migrations using the command executor. For example, to run Laravel's database migrations, you can run:

php artisan migrate

3. Update packages: You can use the command executor to update your server's packages and dependencies. For example, to update all installed packages, you can run:

sudo apt-get update && sudo apt-get upgrade

4. Backup your database: You can use the command executor to create backups of your database. For example, to create a backup of a MySQL database, you can run:

mysqldump -u [username] -p [database_name] > [backup_file].sql

These are just a few examples of the many commands you can run using the 20i Laravel Command Executor. You can run any command that you would typically run in a command line interface, as long as it's supported by your server's operating system.