Command Line Interface
General
init
Initialize La Distribution in a given folder.
If FOLDER is not passed as argument, it is assumed to be the current working directory.
Syntax:
ladis init [FOLDER]
Examples:
ladis init /var/www/vhosts/mydomain.com/httpdocs/
cd /var/www/vhosts/mydomain.com/httpdocs/ ladis init
Instances
install
Install a new application instance.
Additional infos, such as 'title', 'path' and other preferences will be asked from prompt.
Syntax:
ladis install PACKAGE
Example:
ladis install wordpress
status
Get the status of a given instance.
PATH can be either an absolute path, or a local path relative to the website root.
If PATH is not passed as argument, it is assumed to be the current working directory.
Syntax:
ladis status [PATH]
update
Update a given instance to the latest known version of the package.
PATH can be either an absolute path, or a local path relative to the website root.
If PATH is not passed as argument, it is assumed to be the current working directory.
Syntax:
ladis update [PATH]
Examples:
ladis update /var/www/vhosts/mydomain.com/httpdocs/my/blog
cd /var/www/vhosts/mydomain.com/httpdocs/my/blog ladis update
delete
Delete an existing application instance.
PATH can be either an absolute path, or a local path relative to the website root.
Syntax:
ladis delete PATH [-f | --force]
Examples:
ladis delete /var/www/vhosts/mydomain.com/httpdocs/my/blog
cd /var/www/vhosts/mydomain.com/httpdocs/ ladis delete my/blog
Users
users
List registered users.
Syntax:
ladis users
add-user
Register a new user.
If USERNAME and PASSWORD are not passed as argument, they will be asked from prompt.
Additional informations, such as 'Full Name' and 'Email' will also be asked from prompt.
Syntax:
ladis add-user [USERNAME] [PASSWORD]
Example:
ladis add-user znarfor
delete-user
Delete an existing user.
If USERNAME is not passed as argument, it will be asked from prompt.
Syntax:
ladis delete-user [USERNAME]
Example:
ladis delete-user znarfor
Databases
databases
List registered databases connections.
Syntax:
ladis databases
add-database
Register a new database connection.
Informations (host, name, user, password) will be asked from prompt.
Syntax:
ladis add-database
delete-database
Delete an existing database connection.
ID is the unique id of the connection. You can retrieve it with the ladis databases command.
Syntax:
ladis delete-database ID
Example:
ladis delete-database 4ac0af708d1c8
Repositories
import-package
Import a package (zip file) into a repository.
If 'site' is not passed as argument, it is assumed to be the current working directory.
Syntax:
ladis import-package REPOSITORY FILE [-s | --site]
Examples:
cd /var/www/vhosts/mydomain.com/httpdocs/ ladis import-package main packages/wordpress.zip
ladis import-package main /var/www/vhosts/mydomain.com/httpdocs/packages/wordpress.zip --site /var/www/vhosts/mydomain.com/httpdocs/
