A small Python framework meant to easily create programs with unified CLI and API.
Find a file
2012-10-15 19:52:22 +02:00
appconftest add bash completion 2012-10-14 16:49:26 +02:00
.gitignore Exception handling 2012-10-08 18:24:40 +02:00
LICENSE Init 2012-10-06 16:22:15 +02:00
parse_args Repo functions 2012-10-15 19:52:22 +02:00
README.md Init 2012-10-06 16:22:15 +02:00
yunohost.py Rename files 2012-10-10 20:53:42 +02:00
yunohost_monitor.py add uptime 2012-10-14 13:42:22 +02:00
yunohost_user.py App/repo function init + services 2012-10-12 19:00:41 +02:00

Under redaction

YunoHost CLI

User

yunohost user list --fields=fields,.. --filter=filter --limit=limit --offset=offset
yunohost user add [fields=values...]
yunohost user delete [users...]
yunohost user update [user] --changepassword [oldpwd] [newpwd] | --mailforward [add/remove] [mails...]  | --    mailalias [add/remove] [mails...] | [fields=values...]
yunohost user info [user]

Domain

yunohost domain list --filter=filter --limit=limit --offset=offset
yunohost domain add [domain]
yunohost domain delete [domains...]
yunohost domain info [domain]
yunohost domain renewcert [domain]

App

yunohost app list --fields=fields,.. --filter=filter --limit=limit --offset=offset
yunohost app install [apps...] --domain=domain --path=path --label=label --public --protected
yunohost app remove [apps...]
yunohost app upgrade [apps...]
yunohost app info [app]
yunohost app addaccess [apps...] --everyone | --users=users,..
yunohost app removeaccess [apps...] --everyone | --users=users,..

Repo

yunohost repo list  --filter=filter --limit=limit --offset=offset
yunohost repo add [url] --name=name
yunohost repo remove [name/url]
yunohost repo update

Firewall

yunohost firewall list
yunohost firewall allow [port] [TCP/UDP/Both] [name]
yunohost firewall disallow [name]

Monitoring

yunohost monitor

Other

yunohost paste
yunohost support

YunoHost REST API

Prefix: https://mydomain.org:6767

/route
    METHOD  {params}

User

/user/list
    GET     {fields, filter, limit, offset}

/user
    GET     {user, fields}
    POST    {fields, fieldsvalue}
    DELETE  {users}
    PUT     {user, fields}

/user/changepassword
    PUT     {user, oldpwd, newpwd}

/user/mailforward
    POST    {mails}
    DELETE  {mails}

/user/mailalias
    POST    {mails}
    DELETE  {mails}

Domain

/domain/list
    GET     {filter, limit, offset}

/domain
    GET     {domain}
    POST    {domain}
    DELETE  {domains}

/domain/renewcert
    PUT     {domain}

App

/app/

YunoHost Web Views

User

/user/list
/user/add
/user/show/<user>
/user/update/<user>
/user/changepassword/<user>
/user/mailforward/<user>
/user/mailalias/<user>