mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-15 04:22:25 +03:00
a3b8228122
# Conflicts: # application/config/autoload.php # application/config/config.php # application/controllers/Appointments.php # application/controllers/Backend.php # application/controllers/Backend_api.php # application/controllers/Captcha.php # application/controllers/Console.php # application/controllers/Google.php # application/controllers/Installation.php # application/core/EA_Controller.php # application/core/EA_Model.php # application/libraries/Google_sync.php # application/libraries/Ics_file.php # application/models/Settings_model.php # application/views/appointments/book_success.php # assets/css/layouts/backend_layout.scss # assets/css/no_privileges.css # assets/js/backend_calendar_table_view.js # assets/js/backend_calendar_unavailability_events_modal.js # assets/js/frontend_book.js # assets/js/general_functions.js # assets/js/pages/booking_confirmation.js # assets/js/working_plan_exceptions_modal.js # composer.json # composer.lock # docs/console.md # docs/docker.md # docs/faq.md # docs/get-involved.md # docs/google-calendar-sync.md # docs/installation-guide.md # docs/manage-translations.md # docs/readme.md # docs/rest-api.md # docs/update-guide.md # gulpfile.js # system/core/Input.php # system/core/Output.php # system/core/Security.php # system/libraries/Session/drivers/Session_files_driver.php
94 lines
2.2 KiB
Markdown
94 lines
2.2 KiB
Markdown
# Console
|
|
|
|
> This page contains information about the CLI support of Easy!Appointments.
|
|
|
|
### Introduction
|
|
|
|
Starting from v1.4.0 Easy!Appointments has introduced CLI support, providing a set of useful utilities to use with your installation.
|
|
|
|
The commands can be executed with PHP installed on your server and available from within the terminal. To ensure that you have PHP configured properly run the following command from within a terminal session.
|
|
|
|
```
|
|
php -v
|
|
```
|
|
|
|
It shall give you information about the currently installed PHP version.
|
|
|
|
The available commands are described below.
|
|
|
|
### Commands
|
|
|
|
The entry point for the CLI commands is the root `index.php` file which means that you will be calling this file with additional arguments, depending on which command you want to run.
|
|
|
|
##### Migrate
|
|
|
|
```
|
|
php index.php console migrate
|
|
```
|
|
|
|
This command will migrate the database to the latest state.
|
|
|
|
```
|
|
php index.php console migrate fresh
|
|
```
|
|
|
|
This command will reset any change made by the previous migrations and start from the beginning.
|
|
|
|
##### Seed
|
|
|
|
```
|
|
php index.php console seed
|
|
```
|
|
|
|
This command will add a test admin, provider, customer and service in the app, so that you can already run some tests.
|
|
|
|
##### Install
|
|
|
|
```
|
|
php index.php console install
|
|
```
|
|
|
|
This command will perform a CLI installation of Easy!Appointments.
|
|
|
|
You can run this after your are done configuring your app from the root `config.php` file.
|
|
|
|
##### Backup
|
|
|
|
```
|
|
php index.php console backup
|
|
```
|
|
|
|
This command will create a backup of the application data in the `storage/backups` directory.
|
|
|
|
|
|
```
|
|
php index.php console backup /path/to/backup/folter
|
|
```
|
|
|
|
You can also provide a custom directory for your backup files.
|
|
|
|
|
|
##### Sync
|
|
|
|
```
|
|
php index.php console sync
|
|
```
|
|
|
|
This command will trigger the calendar synchronization for all the system providers.
|
|
|
|
It is especially important, because it can be automatically executed on a regular base with a cron job.
|
|
|
|
This way the app provider schedules will always be updated.
|
|
|
|
|
|
##### Help
|
|
|
|
```
|
|
php index.php console help
|
|
```
|
|
|
|
This command will give more information about the console capabilities.
|
|
|
|
*This document applies to Easy!Appointments v1.4.3.*
|
|
|
|
[Back](readme.md)
|