有关每个命令的更多详细信息,请参阅租户控制台帮助。下面是一些常用命令:

##
##  Meta commands
##

ok> help

    List this help.

ok> r

    Repeat last command.


##
##  Tenant Commands - for administering tenants
##


ok> show tenants

    List all tenants and show their details.

ok> show tenant <tenant domain>

    Show tenant details - status (ie. whether enabled or disabled) and root contentstore directory.

    Example:   show tenant yyy.zzz.com

ok> create <tenant domain> <tenant admin password> [<root contentstore dir>]

    Create empty tenant. By default the tenant will be enabled. It will have an admin
    user called 'admin@<tenant domain>' with supplied admin password. All users
    that the admin creates, will login using '<username>@<tenant domain>'. 
    The root of the contentstore directory can be optionally specified, otherwise 
    it will default to the repository default root contentstore (as specified by 
    the dir.contentstore property). The default workflows will also be bootstrapped.

    Examples:  create zzz.com l3tm31n /usr/tenantstores/zzz
               create yyy.zzz.com g00dby3 /usr/tenantstores/yyy.zzz
               create myorg h3ll0

ok> changeAdminPassword <tenant domain> <tenant admin password>

    Useful if the tenant's admin (admin@<tenant domain>) has forgotten their password.

    Example:   changeAdminPassword yyy.zzz.com n3wpassw0rd

ok> enable <tenant domain>

    Enable tenant so that is active and available for new logins

    Example:   enable yyy.zzz.com

ok> disable <tenant domain>

    Disable tenant so that is inactive. Existing logins will fail on next usage.

    Example:   enable yyy.zzz.com

ok> export <tenant domain> <destination directory>

    Export tenant to given destination directory. Export filenames will be suffixed with '<tenant domain>_'.

    Example:   export yyy.zzz.com /usr/exportdir

ok> import <tenant domain> <source directory> [<root contentstore dir>]

    BETA - create tenant by importing the tenant files from the given source directory. The import filenames must
    be suffixed with '<tenant domain>_'.

    Note: If importing into a previously deleted tenant then the server must be stopped after the delete
    (and tenant indexes manually deleted) before restarting and performing the import.

    Example:   import yyy.zzz.com /usr/exportdir /usr/tenantstores/yyy.zzz

##
##  end
##
文档更新时间: 2019-05-23 22:23   作者:凌云文档