This application is used to initialise, configure, and check the application configuration. Most of the settings it deals with will be stored in the atlantis.json files. The atlantis.json files define the filesystem structure the application depends on and this utility can check for inconsistencies and try to fix them. This is used both for project initialisation and future sanity checking.

Project Init

Set up a fresh in an empty project directory.
$ project.atl init

Databases

Manage the database configurations.
List the databases.
$ project.atl db
Set the Default database connection.
$ project.atl --set --type=... --host=... --user=... --pass=... --db=...
  • Supported Types: mysql, sqlite. Technically it supports anything PDO supports, but most of the queries are written with MySQL/MariaDB features in mind.
Set a custom database connection.
$ project.atl --set=... --type=... --host=... --user=... --pass=... --db=...
  • The value given to set should be the alias used to fetch the connection from the DB manager.

Directories

The Dirs section manages a set of paths to create as directories.
Check and fix project directories.
$ project.atl dirs --fix
Add a path to the configuration.
$ project.atl dirs --add --path=...
  • Path should be relative to the project root. (Ex: "temp")
Remove a path from the configuration.
$ project.atl dirs --del --path=...

File Permissions

The Perms section manages a set of paths to reinforce chmod modes for.
Check and fix file permissions.
$ project.atl perms
Add a path to the configuration.
$ project.atl perms --add --path=... --mode=...
  • Path should be relative to the project root. (Ex: "temp")
  • Mode should be the numeric octal that chmod() expects.
  • Modes are stored in the JSON as a string in 0o notation. (Ex: "0o777")
Remove a path from the configuration.
$ project.atl perms --del --path=...

Setup & Sanity Checking

Runs all the checks for directories, symlinks, and permissions, in one go.
$ project.atl setup