2012-10-22 20:52:15 +02:00
|
|
|
##########################################################################
|
|
|
|
# Category/actions/arguments file
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Except for general_arguments, this file contains 3 levels
|
|
|
|
# as in this sample command line:
|
|
|
|
#
|
|
|
|
# yunohost monitor info --cpu --ram
|
|
|
|
# ^ ^ ^ ^
|
|
|
|
# (script) | category | action | parameters
|
|
|
|
#
|
|
|
|
#
|
2012-10-22 21:09:42 +02:00
|
|
|
# Above example will lead to the function 'monitor_info(args)'
|
|
|
|
# in the file 'yunohost_monitor.py' with 'cpu' and 'ram'
|
|
|
|
# stored in an 'args' dictionnary.
|
2012-10-22 20:52:15 +02:00
|
|
|
#
|
|
|
|
# Usage:
|
|
|
|
# You can add a category at the first level, action at the second one,
|
|
|
|
# and arguments at the third one.
|
|
|
|
# If a connexion is needed for the action, don't forget to add it to
|
|
|
|
# the action parameters (ldap, repo, dns or firewall).
|
|
|
|
#
|
|
|
|
# Documentation:
|
|
|
|
# You can see all arguments settings at the argparse documentation:
|
|
|
|
# http://docs.python.org/dev/library/argparse.html
|
|
|
|
# #argparse.ArgumentParser.add_argument
|
|
|
|
#
|
2012-10-22 21:09:42 +02:00
|
|
|
# Don't forget to turn argument yaml style (setting: value)
|
2012-10-22 20:52:15 +02:00
|
|
|
#
|
|
|
|
##########################################################################
|
2012-12-01 15:33:56 +01:00
|
|
|
|
2012-10-22 20:52:15 +02:00
|
|
|
#############################
|
|
|
|
# General args #
|
|
|
|
#############################
|
2012-10-22 21:09:42 +02:00
|
|
|
general_arguments:
|
|
|
|
-v:
|
|
|
|
full: --version
|
|
|
|
help: Display YunoHost version
|
|
|
|
action: version
|
|
|
|
version: YunoHost 2.0 beta1
|
2012-12-01 15:33:56 +01:00
|
|
|
|
2012-10-22 20:52:15 +02:00
|
|
|
#############################
|
|
|
|
# User #
|
|
|
|
#############################
|
2012-12-01 15:33:56 +01:00
|
|
|
user:
|
2012-10-22 21:09:42 +02:00
|
|
|
category_help: Manage users
|
2012-12-01 15:33:56 +01:00
|
|
|
actions:
|
2012-10-22 20:52:15 +02:00
|
|
|
|
|
|
|
### user_list()
|
2012-12-01 15:33:56 +01:00
|
|
|
list:
|
2012-10-22 21:09:42 +02:00
|
|
|
action_help: List users
|
2012-12-01 15:33:56 +01:00
|
|
|
arguments:
|
|
|
|
--fields:
|
2012-10-22 21:09:42 +02:00
|
|
|
help: fields to fetch
|
|
|
|
nargs: "+"
|
2012-12-01 15:33:56 +01:00
|
|
|
-f:
|
2012-10-22 21:09:42 +02:00
|
|
|
full: --filter
|
|
|
|
help: LDAP filter used to search
|
2012-12-01 15:33:56 +01:00
|
|
|
-l:
|
2012-10-22 21:09:42 +02:00
|
|
|
full: --limit
|
2012-12-01 15:33:56 +01:00
|
|
|
help: Maximum number of user fetched
|
|
|
|
-o:
|
2012-10-22 21:09:42 +02:00
|
|
|
full: --offset
|
2012-12-01 15:33:56 +01:00
|
|
|
help: Starting number for user fetching
|
|
|
|
|
2012-10-22 20:52:15 +02:00
|
|
|
### user_create()
|
2012-12-01 15:33:56 +01:00
|
|
|
create:
|
2012-10-22 21:09:42 +02:00
|
|
|
action_help: Create user
|
2012-12-01 15:33:56 +01:00
|
|
|
arguments:
|
|
|
|
-u:
|
2012-10-22 21:09:42 +02:00
|
|
|
full: --username
|
|
|
|
help: Must be unique
|
2012-11-08 19:20:13 +01:00
|
|
|
ask: "Username"
|
2012-11-09 18:04:15 +01:00
|
|
|
pattern: '^[a-z0-9_]+$'
|
2012-12-01 15:33:56 +01:00
|
|
|
-f:
|
2012-10-22 21:09:42 +02:00
|
|
|
full: --firstname
|
2012-11-08 19:20:13 +01:00
|
|
|
ask: "Firstname"
|
2012-12-01 15:33:56 +01:00
|
|
|
-l:
|
2012-10-22 21:09:42 +02:00
|
|
|
full: --lastname
|
2012-11-08 19:20:13 +01:00
|
|
|
ask: "Lastname"
|
2012-12-01 15:33:56 +01:00
|
|
|
-m:
|
2012-10-22 21:09:42 +02:00
|
|
|
full: --mail
|
|
|
|
help: Main mail address must be unique
|
2012-11-08 19:20:13 +01:00
|
|
|
ask: "Mail address"
|
|
|
|
pattern: '^[\w.-]+@[\w.-]+\.[a-zA-Z]{2,6}$'
|
2012-12-01 15:33:56 +01:00
|
|
|
-p:
|
2012-10-22 21:09:42 +02:00
|
|
|
full: --password
|
2012-11-08 19:20:13 +01:00
|
|
|
ask: "User password"
|
|
|
|
password: yes
|
2012-12-01 15:33:56 +01:00
|
|
|
|
2012-10-22 20:52:15 +02:00
|
|
|
### user_delete()
|
2012-12-01 15:33:56 +01:00
|
|
|
delete:
|
2012-10-22 21:09:42 +02:00
|
|
|
action_help: Delete user
|
2012-12-01 15:33:56 +01:00
|
|
|
arguments:
|
2012-11-29 11:49:41 +01:00
|
|
|
-u:
|
|
|
|
full: --users
|
2012-10-22 21:09:42 +02:00
|
|
|
help: Username of users to delete
|
2012-11-29 11:49:41 +01:00
|
|
|
ask: "Users to delete"
|
|
|
|
pattern: '^[a-z0-9_]+$'
|
2012-10-29 17:47:37 +01:00
|
|
|
nargs: "*"
|
2012-10-29 13:02:55 +01:00
|
|
|
--purge:
|
|
|
|
action: store_true
|
2012-12-01 15:33:56 +01:00
|
|
|
|
2012-10-22 20:52:15 +02:00
|
|
|
### user_update()
|
2012-12-01 15:33:56 +01:00
|
|
|
update:
|
2012-10-22 21:09:42 +02:00
|
|
|
action_help: Update user informations
|
2012-12-01 15:33:56 +01:00
|
|
|
arguments:
|
|
|
|
username:
|
2012-10-22 21:09:42 +02:00
|
|
|
help: Username of user to update
|
2012-12-01 15:33:56 +01:00
|
|
|
-f:
|
2012-10-22 21:09:42 +02:00
|
|
|
full: --firstname
|
2012-12-01 15:33:56 +01:00
|
|
|
-l:
|
2012-10-22 21:09:42 +02:00
|
|
|
full: --lastname
|
2012-12-01 15:33:56 +01:00
|
|
|
-m:
|
2012-10-22 21:09:42 +02:00
|
|
|
full: --mail
|
2012-12-01 15:33:56 +01:00
|
|
|
-p:
|
2012-10-22 21:09:42 +02:00
|
|
|
full: --change-password
|
|
|
|
help: New password to set
|
|
|
|
metavar: PASSWORD
|
2012-12-01 15:33:56 +01:00
|
|
|
--add-mailforward:
|
2012-10-22 21:09:42 +02:00
|
|
|
help: Mailforward addresses to add
|
|
|
|
nargs: "+"
|
|
|
|
metavar: MAIL
|
2012-12-01 15:33:56 +01:00
|
|
|
--remove-mailforward:
|
2012-10-22 21:09:42 +02:00
|
|
|
help: Mailforward addresses to remove
|
|
|
|
nargs: "+"
|
|
|
|
metavar: MAIL
|
2012-12-01 15:33:56 +01:00
|
|
|
--add-mailalias:
|
2012-10-22 21:09:42 +02:00
|
|
|
help: Mail aliases to add
|
|
|
|
nargs: "+"
|
|
|
|
metavar: MAIL
|
2012-12-01 15:33:56 +01:00
|
|
|
--remove-mailalias:
|
2012-10-22 21:09:42 +02:00
|
|
|
help: Mail aliases to remove
|
|
|
|
nargs: "+"
|
|
|
|
metavar: MAIL
|
2012-12-01 15:33:56 +01:00
|
|
|
|
2012-10-22 20:52:15 +02:00
|
|
|
### user_info()
|
2012-12-01 15:33:56 +01:00
|
|
|
info:
|
2012-10-22 21:09:42 +02:00
|
|
|
action_help: Get user informations
|
2012-12-01 15:33:56 +01:00
|
|
|
arguments:
|
|
|
|
user-or-mail:
|
|
|
|
help: Username or mail to get informations
|
|
|
|
|
2012-10-22 20:52:15 +02:00
|
|
|
|
|
|
|
#############################
|
|
|
|
# Domain #
|
|
|
|
#############################
|
2012-12-01 15:33:56 +01:00
|
|
|
domain:
|
2012-10-22 21:09:42 +02:00
|
|
|
category_help: Manage domains
|
2012-12-01 15:33:56 +01:00
|
|
|
actions:
|
|
|
|
|
2012-10-22 20:52:15 +02:00
|
|
|
### domain_list()
|
2012-12-01 15:33:56 +01:00
|
|
|
list:
|
2012-10-22 21:09:42 +02:00
|
|
|
action_help: List domains
|
2012-12-01 15:33:56 +01:00
|
|
|
arguments:
|
|
|
|
-f:
|
2012-10-22 21:09:42 +02:00
|
|
|
full: --filter
|
|
|
|
help: LDAP filter used to search
|
2012-12-01 15:33:56 +01:00
|
|
|
-l:
|
2012-10-22 21:09:42 +02:00
|
|
|
full: --limit
|
2012-12-01 15:33:56 +01:00
|
|
|
help: Maximum number of domain fetched
|
|
|
|
-o:
|
2012-10-22 21:09:42 +02:00
|
|
|
full: --offset
|
2012-12-01 15:33:56 +01:00
|
|
|
help: Starting number for domain fetching
|
|
|
|
|
2012-10-22 20:52:15 +02:00
|
|
|
### domain_add()
|
2012-12-01 15:33:56 +01:00
|
|
|
add:
|
2012-10-22 21:09:42 +02:00
|
|
|
action_help: Create a custom domain
|
2012-12-01 15:33:56 +01:00
|
|
|
arguments:
|
|
|
|
domains:
|
2012-10-22 21:09:42 +02:00
|
|
|
help: Domain name to add
|
2012-10-29 17:38:05 +01:00
|
|
|
nargs: '*'
|
2012-11-09 18:04:15 +01:00
|
|
|
ask: "New domain"
|
|
|
|
pattern: '^([a-zA-Z0-9]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)(\.[a-zA-Z0-9]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)*(\.[a-zA-Z]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)$'
|
2012-12-01 15:33:56 +01:00
|
|
|
|
2012-10-22 20:52:15 +02:00
|
|
|
### domain_remove()
|
2012-12-01 15:33:56 +01:00
|
|
|
remove:
|
2012-10-22 21:09:42 +02:00
|
|
|
action_help: Delete domains
|
2012-12-01 15:33:56 +01:00
|
|
|
arguments:
|
|
|
|
domains:
|
2012-10-22 21:09:42 +02:00
|
|
|
help: Domain(s) to delete
|
2012-10-29 17:47:37 +01:00
|
|
|
nargs: "*"
|
2012-11-09 18:04:15 +01:00
|
|
|
ask: "Domain to remove"
|
|
|
|
pattern: '^([a-zA-Z0-9]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)(\.[a-zA-Z0-9]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)*(\.[a-zA-Z]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)$'
|
2012-12-01 15:33:56 +01:00
|
|
|
|
2012-10-22 20:52:15 +02:00
|
|
|
### domain_info()
|
2012-12-01 15:33:56 +01:00
|
|
|
info:
|
2012-10-22 21:09:42 +02:00
|
|
|
action_help: Get domain informations
|
2012-12-01 15:33:56 +01:00
|
|
|
arguments:
|
|
|
|
domain:
|
2012-10-22 21:09:42 +02:00
|
|
|
help: ""
|
2012-11-09 18:04:15 +01:00
|
|
|
pattern: '^([a-zA-Z0-9]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)(\.[a-zA-Z0-9]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)*(\.[a-zA-Z]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)$'
|
2012-10-22 21:09:42 +02:00
|
|
|
|
2012-10-22 20:52:15 +02:00
|
|
|
### domain_renewcert()
|
2012-12-01 15:33:56 +01:00
|
|
|
renewcert:
|
2012-10-22 21:09:42 +02:00
|
|
|
action_help: Renew domain certificate
|
2012-12-01 15:33:56 +01:00
|
|
|
arguments:
|
|
|
|
domain:
|
2012-10-22 21:09:42 +02:00
|
|
|
help: ""
|
2012-11-09 18:04:15 +01:00
|
|
|
pattern: '^([a-zA-Z0-9]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)(\.[a-zA-Z0-9]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)*(\.[a-zA-Z]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)$'
|
2012-10-22 20:52:15 +02:00
|
|
|
|
|
|
|
#############################
|
|
|
|
# App #
|
|
|
|
#############################
|
2012-12-01 15:33:56 +01:00
|
|
|
app:
|
2012-10-22 21:09:42 +02:00
|
|
|
category_help: Manage apps
|
2012-12-01 15:33:56 +01:00
|
|
|
actions:
|
|
|
|
|
2012-11-16 13:16:37 +01:00
|
|
|
### app_updatelist()
|
|
|
|
updatelist:
|
|
|
|
action_help: Fetch application list from app server
|
|
|
|
arguments:
|
|
|
|
-u:
|
|
|
|
full: --url
|
2012-12-01 15:33:56 +01:00
|
|
|
help: URL of remote JSON list (default http://fapp.yunohost.org/app/list/raw)
|
2012-10-22 20:52:15 +02:00
|
|
|
|
|
|
|
### app_list()
|
2012-12-01 15:33:56 +01:00
|
|
|
list:
|
2012-10-22 21:09:42 +02:00
|
|
|
action_help: List apps
|
2012-12-01 15:33:56 +01:00
|
|
|
arguments:
|
|
|
|
--fields:
|
2012-10-22 21:09:42 +02:00
|
|
|
help: fields to fetch
|
|
|
|
nargs: "+"
|
2012-12-01 15:33:56 +01:00
|
|
|
-f:
|
2012-10-22 21:09:42 +02:00
|
|
|
full: --filter
|
|
|
|
help: LDAP filter used to search
|
2012-12-01 15:33:56 +01:00
|
|
|
-l:
|
2012-10-22 21:09:42 +02:00
|
|
|
full: --limit
|
2012-12-01 15:33:56 +01:00
|
|
|
help: Maximum number of app fetched
|
|
|
|
-o:
|
2012-10-22 21:09:42 +02:00
|
|
|
full: --offset
|
2012-12-01 15:33:56 +01:00
|
|
|
help: Starting number for app fetching
|
|
|
|
|
2012-10-22 20:52:15 +02:00
|
|
|
### app_install() TODO: Write help
|
2012-12-01 15:33:56 +01:00
|
|
|
install:
|
2012-10-22 21:09:42 +02:00
|
|
|
action_help: Install apps
|
2012-12-01 15:33:56 +01:00
|
|
|
arguments:
|
|
|
|
app:
|
2012-11-16 13:16:37 +01:00
|
|
|
help: App to install
|
2012-12-01 15:33:56 +01:00
|
|
|
-d:
|
2012-10-22 21:09:42 +02:00
|
|
|
full: --domain
|
2012-12-01 15:33:56 +01:00
|
|
|
-p:
|
2012-10-22 21:09:42 +02:00
|
|
|
full: --path
|
2012-12-01 15:33:56 +01:00
|
|
|
-l:
|
2012-10-22 21:09:42 +02:00
|
|
|
full: --label
|
2012-12-01 15:33:56 +01:00
|
|
|
--public:
|
2012-10-22 21:09:42 +02:00
|
|
|
action: store_true
|
2012-12-01 15:33:56 +01:00
|
|
|
--protected:
|
2012-10-22 21:09:42 +02:00
|
|
|
action: store_true
|
2012-12-01 15:33:56 +01:00
|
|
|
|
2012-10-22 20:52:15 +02:00
|
|
|
### app_remove() TODO: Write help
|
2012-12-01 15:33:56 +01:00
|
|
|
remove:
|
2012-10-22 21:09:42 +02:00
|
|
|
action_help: Remove app
|
2012-12-01 15:33:56 +01:00
|
|
|
arguments:
|
|
|
|
app:
|
2012-10-22 21:09:42 +02:00
|
|
|
help: App(s) to delete
|
|
|
|
nargs: "+"
|
2012-12-01 15:33:56 +01:00
|
|
|
|
2012-10-22 20:52:15 +02:00
|
|
|
### app_upgrade()
|
2012-12-01 15:33:56 +01:00
|
|
|
upgrade:
|
2012-10-22 21:09:42 +02:00
|
|
|
action_help: Upgrade app
|
2012-12-01 15:33:56 +01:00
|
|
|
arguments:
|
|
|
|
app:
|
2012-10-22 21:09:42 +02:00
|
|
|
help: App(s) to upgrade (default all)
|
|
|
|
nargs: "*"
|
2012-12-01 15:33:56 +01:00
|
|
|
|
2012-10-22 20:52:15 +02:00
|
|
|
### app_info() TODO: Write help
|
2012-12-01 15:33:56 +01:00
|
|
|
info:
|
2012-10-22 21:09:42 +02:00
|
|
|
action_help: Get app informations
|
2012-12-01 15:33:56 +01:00
|
|
|
arguments:
|
|
|
|
app:
|
2012-10-22 21:09:42 +02:00
|
|
|
help: ""
|
2012-12-01 15:33:56 +01:00
|
|
|
|
2012-10-22 20:52:15 +02:00
|
|
|
### app_addaccess() TODO: Write help
|
2012-12-01 15:33:56 +01:00
|
|
|
addaccess:
|
2012-10-22 21:09:42 +02:00
|
|
|
action_help: Grant access right to users (everyone by default)
|
2012-12-01 15:33:56 +01:00
|
|
|
arguments:
|
|
|
|
app:
|
2012-10-22 21:09:42 +02:00
|
|
|
nargs: "+"
|
2012-12-01 15:33:56 +01:00
|
|
|
-u:
|
2012-10-22 21:09:42 +02:00
|
|
|
full: --user
|
|
|
|
nargs: "+"
|
2012-12-01 15:33:56 +01:00
|
|
|
|
2012-10-22 20:52:15 +02:00
|
|
|
### app_removeaccess() TODO: Write help
|
2012-12-01 15:33:56 +01:00
|
|
|
removeaccess:
|
2012-10-22 21:09:42 +02:00
|
|
|
action_help: Revoke access right to users (everyone by default)
|
2012-12-01 15:33:56 +01:00
|
|
|
arguments:
|
|
|
|
app:
|
2012-10-22 21:09:42 +02:00
|
|
|
nargs: "+"
|
2012-12-01 15:33:56 +01:00
|
|
|
-u:
|
2012-10-22 21:09:42 +02:00
|
|
|
full: --user
|
|
|
|
nargs: "+"
|
2012-12-01 15:33:56 +01:00
|
|
|
|
2012-10-22 20:52:15 +02:00
|
|
|
|
|
|
|
#############################
|
|
|
|
# Repository #
|
|
|
|
#############################
|
2012-12-01 15:33:56 +01:00
|
|
|
repo:
|
2012-10-22 21:09:42 +02:00
|
|
|
category_help: Manage app repositories
|
2012-12-01 15:33:56 +01:00
|
|
|
actions:
|
2012-10-22 20:52:15 +02:00
|
|
|
|
|
|
|
### repo_list()
|
2012-12-01 15:33:56 +01:00
|
|
|
list:
|
2012-10-22 21:09:42 +02:00
|
|
|
action_help: List repositories
|
2012-12-01 15:33:56 +01:00
|
|
|
arguments:
|
|
|
|
-f:
|
2012-10-22 21:09:42 +02:00
|
|
|
full: --filter
|
|
|
|
help: LDAP filter used to search
|
2012-12-01 15:33:56 +01:00
|
|
|
-l:
|
2012-10-22 21:09:42 +02:00
|
|
|
full: --limit
|
2012-12-01 15:33:56 +01:00
|
|
|
help: Maximum number of repository fetched
|
|
|
|
-o:
|
2012-10-22 21:09:42 +02:00
|
|
|
full: --offset
|
2012-12-01 15:33:56 +01:00
|
|
|
help: Starting number for repository fetching
|
|
|
|
|
2012-10-22 20:52:15 +02:00
|
|
|
### repo_add()
|
2012-12-01 15:33:56 +01:00
|
|
|
add:
|
2012-10-22 21:09:42 +02:00
|
|
|
action_help: Add app repository
|
2012-12-01 15:33:56 +01:00
|
|
|
arguments:
|
|
|
|
url:
|
2012-10-22 21:09:42 +02:00
|
|
|
help: URL of the repository
|
2012-12-01 15:33:56 +01:00
|
|
|
-n:
|
2012-10-22 21:09:42 +02:00
|
|
|
full: --name
|
|
|
|
help: Unique name of the repository
|
2012-12-01 15:33:56 +01:00
|
|
|
|
2012-10-22 20:52:15 +02:00
|
|
|
### repo_remove()
|
2012-12-01 15:33:56 +01:00
|
|
|
remove:
|
2012-10-22 21:09:42 +02:00
|
|
|
action_help: Remove repository
|
2012-12-01 15:33:56 +01:00
|
|
|
arguments:
|
|
|
|
repo:
|
2012-10-22 21:09:42 +02:00
|
|
|
help: Name or URL of the repository
|
2012-12-01 15:33:56 +01:00
|
|
|
|
2012-10-22 20:52:15 +02:00
|
|
|
### repo_update()
|
2012-12-01 15:33:56 +01:00
|
|
|
update:
|
2012-10-22 21:09:42 +02:00
|
|
|
action_help: Update app list from the repositories
|
2012-10-22 20:52:15 +02:00
|
|
|
|
|
|
|
|
|
|
|
#############################
|
|
|
|
# Monitor #
|
|
|
|
#############################
|
2012-12-01 15:33:56 +01:00
|
|
|
monitor:
|
2012-10-22 21:09:42 +02:00
|
|
|
category_help: Monitoring functions
|
2012-12-01 15:33:56 +01:00
|
|
|
actions:
|
|
|
|
|
2012-10-22 20:52:15 +02:00
|
|
|
### monitor_info()
|
2012-12-01 15:33:56 +01:00
|
|
|
info:
|
2012-10-22 21:09:42 +02:00
|
|
|
action_help: Check System
|
2012-12-01 15:33:56 +01:00
|
|
|
arguments:
|
|
|
|
-m:
|
2012-10-22 21:09:42 +02:00
|
|
|
full: --memory
|
|
|
|
help: Check Memory
|
|
|
|
action: store_true
|
2012-12-01 15:33:56 +01:00
|
|
|
-c:
|
2012-10-22 21:09:42 +02:00
|
|
|
full: --cpu
|
|
|
|
help: Check CPU
|
|
|
|
action: store_true
|
2012-12-01 15:33:56 +01:00
|
|
|
-d:
|
2012-10-22 21:09:42 +02:00
|
|
|
full: --disk
|
|
|
|
help: Check Disk
|
|
|
|
action: store_true
|
2012-12-01 15:33:56 +01:00
|
|
|
-i:
|
2012-10-22 21:09:42 +02:00
|
|
|
full: --ifconfig
|
2012-11-01 10:39:09 +01:00
|
|
|
help: Show Ip and MAC Adress
|
2012-10-22 21:09:42 +02:00
|
|
|
action: store_true
|
2012-12-01 15:33:56 +01:00
|
|
|
-u:
|
2012-10-22 21:09:42 +02:00
|
|
|
full: --uptime
|
|
|
|
help: Show Uptime
|
|
|
|
action: store_true
|
2012-11-01 10:39:09 +01:00
|
|
|
-p:
|
|
|
|
full: --public
|
|
|
|
help: Show IP public
|
|
|
|
action: store_true
|
2012-10-28 15:55:35 +01:00
|
|
|
process:
|
|
|
|
action_help: Check Process
|
|
|
|
arguments:
|
2012-12-01 15:33:56 +01:00
|
|
|
-e:
|
2012-10-28 15:55:35 +01:00
|
|
|
full: --enable
|
|
|
|
help: Enable process
|
2012-11-01 10:39:09 +01:00
|
|
|
metavar: PROCESS
|
2012-10-28 15:55:35 +01:00
|
|
|
-d:
|
|
|
|
full: --disable
|
|
|
|
help: Disable process
|
2012-11-01 10:39:09 +01:00
|
|
|
metavar: PROCESS
|
2012-10-28 15:55:35 +01:00
|
|
|
--start:
|
|
|
|
help: Start process
|
2012-11-01 10:39:09 +01:00
|
|
|
metavar: PROCESS
|
2012-10-28 15:55:35 +01:00
|
|
|
--stop:
|
|
|
|
help: Stop process
|
2012-11-01 10:39:09 +01:00
|
|
|
metavar: PROCESS
|
2012-10-28 15:55:35 +01:00
|
|
|
-c:
|
|
|
|
full: --check
|
|
|
|
help: Check process
|
2012-11-01 10:39:09 +01:00
|
|
|
metavar: PORT
|
2012-10-28 15:55:35 +01:00
|
|
|
-i:
|
|
|
|
full: --info
|
|
|
|
help: Process info
|
2012-10-22 21:09:42 +02:00
|
|
|
action: store_true
|
2012-12-01 15:33:56 +01:00
|
|
|
|
2012-10-22 20:52:15 +02:00
|
|
|
|
|
|
|
#############################
|
|
|
|
# Firewall #
|
|
|
|
#############################
|
2012-12-01 15:33:56 +01:00
|
|
|
firewall:
|
2012-10-22 21:09:42 +02:00
|
|
|
category_help: Manage firewall rules
|
2012-12-01 15:33:56 +01:00
|
|
|
actions:
|
2012-10-22 20:52:15 +02:00
|
|
|
|
|
|
|
### firewall_list()
|
2012-12-01 15:33:56 +01:00
|
|
|
list:
|
2012-10-22 21:09:42 +02:00
|
|
|
action_help: List all firewall rules
|
2012-12-12 19:20:09 +01:00
|
|
|
|
|
|
|
### firewall_reload()
|
|
|
|
reload:
|
|
|
|
action_help: Reload all firewall rules
|
2012-12-01 15:33:56 +01:00
|
|
|
|
2012-10-22 20:52:15 +02:00
|
|
|
### firewall_allow()
|
2012-12-01 15:33:56 +01:00
|
|
|
allow:
|
2012-10-22 21:09:42 +02:00
|
|
|
action_help: Allow connection port/protocol
|
2012-12-01 15:33:56 +01:00
|
|
|
arguments:
|
|
|
|
port:
|
2012-10-22 21:09:42 +02:00
|
|
|
help: Port to open
|
2012-12-01 15:33:56 +01:00
|
|
|
protocol:
|
2012-10-22 21:09:42 +02:00
|
|
|
help: Protocol associated with port
|
2012-12-01 15:33:56 +01:00
|
|
|
choices:
|
|
|
|
- UDP
|
|
|
|
- TCP
|
2012-10-22 21:09:42 +02:00
|
|
|
- Both
|
2012-12-13 11:36:09 +01:00
|
|
|
-i:
|
|
|
|
full: --ipv6
|
|
|
|
help: ipv6
|
|
|
|
action: store_true
|
2012-12-12 17:40:02 +01:00
|
|
|
|
2012-12-01 15:33:56 +01:00
|
|
|
|
2012-10-22 20:52:15 +02:00
|
|
|
### firewall_disallow()
|
2012-12-01 15:33:56 +01:00
|
|
|
disallow:
|
2012-10-22 21:09:42 +02:00
|
|
|
action_help: Disallow connection
|
2012-12-01 15:33:56 +01:00
|
|
|
arguments:
|
2012-12-12 14:17:33 +01:00
|
|
|
port:
|
|
|
|
help: Port to open
|
|
|
|
protocol:
|
|
|
|
help: Protocol associated with port
|
|
|
|
choices:
|
|
|
|
- UDP
|
|
|
|
- TCP
|
|
|
|
- Both
|
2012-12-13 10:55:10 +01:00
|
|
|
-i:
|
|
|
|
full: --ipv6
|
|
|
|
help: ipv6
|
|
|
|
action: store_true
|
2012-12-01 15:33:56 +01:00
|
|
|
|
2012-10-22 20:52:15 +02:00
|
|
|
|
|
|
|
#############################
|
|
|
|
# Tools #
|
|
|
|
#############################
|
2012-12-01 15:33:56 +01:00
|
|
|
tools:
|
2012-10-22 21:09:42 +02:00
|
|
|
category_help: Specific tools
|
2012-12-01 15:33:56 +01:00
|
|
|
actions:
|
2012-10-22 20:52:15 +02:00
|
|
|
|
2012-10-26 15:26:50 +02:00
|
|
|
### tools_ldapinit()
|
2012-12-01 15:33:56 +01:00
|
|
|
ldapinit:
|
2012-10-26 15:26:50 +02:00
|
|
|
action_help: YunoHost LDAP initialization
|
2012-10-29 18:03:38 +01:00
|
|
|
arguments:
|
2012-12-01 15:33:56 +01:00
|
|
|
-d:
|
2012-10-29 18:03:38 +01:00
|
|
|
full: --domain
|
|
|
|
help: YunoHost main domain
|
2012-11-09 18:04:15 +01:00
|
|
|
pattern: '^([a-zA-Z0-9]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)(\.[a-zA-Z0-9]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)*(\.[a-zA-Z]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)$'
|
2012-10-26 15:26:50 +02:00
|
|
|
|
2012-10-27 17:06:43 +02:00
|
|
|
### tools_adminpw()
|
2012-12-01 15:33:56 +01:00
|
|
|
adminpw:
|
2012-10-27 17:06:43 +02:00
|
|
|
action_help: Change admin password
|
2012-12-01 15:33:56 +01:00
|
|
|
arguments:
|
|
|
|
-o:
|
2012-10-27 17:06:43 +02:00
|
|
|
full: --old-password
|
2012-11-09 18:04:15 +01:00
|
|
|
ask: "Actual admin password"
|
|
|
|
password: yes
|
2012-10-27 17:06:43 +02:00
|
|
|
-n:
|
|
|
|
full: --new-password
|
2012-11-09 18:04:15 +01:00
|
|
|
ask: "New admin password"
|
|
|
|
password: yes
|
2012-10-27 17:06:43 +02:00
|
|
|
|
|
|
|
### tools_maindomain()
|
|
|
|
maindomain:
|
|
|
|
action_help: Main domain change tool
|
2012-12-01 15:33:56 +01:00
|
|
|
arguments:
|
2012-10-27 17:06:43 +02:00
|
|
|
-o:
|
|
|
|
full: --old-domain
|
2012-11-09 18:04:15 +01:00
|
|
|
pattern: '^([a-zA-Z0-9]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)(\.[a-zA-Z0-9]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)*(\.[a-zA-Z]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)$'
|
2012-10-27 17:06:43 +02:00
|
|
|
-n:
|
|
|
|
full: --new-domain
|
2012-11-09 18:04:15 +01:00
|
|
|
ask: "New main domain"
|
|
|
|
pattern: '^([a-zA-Z0-9]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)(\.[a-zA-Z0-9]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)*(\.[a-zA-Z]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)$'
|
2012-10-27 17:06:43 +02:00
|
|
|
|
2012-10-26 15:26:50 +02:00
|
|
|
### tools_postinstall()
|
2012-12-01 15:33:56 +01:00
|
|
|
postinstall:
|
2012-10-26 15:26:50 +02:00
|
|
|
action_help: YunoHost post-install
|
2012-12-01 15:33:56 +01:00
|
|
|
arguments:
|
|
|
|
-d:
|
2012-10-26 15:26:50 +02:00
|
|
|
full: --domain
|
|
|
|
help: YunoHost main domain
|
2012-11-09 18:04:15 +01:00
|
|
|
ask: "Main domain"
|
|
|
|
pattern: '^([a-zA-Z0-9]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)(\.[a-zA-Z0-9]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)*(\.[a-zA-Z]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)$'
|
2012-10-26 15:26:50 +02:00
|
|
|
-p:
|
|
|
|
full: --password
|
|
|
|
help: YunoHost admin password
|
2012-11-09 18:04:15 +01:00
|
|
|
ask: "New admin password"
|
|
|
|
password: yes
|