Zurmo(十)之zurmoc所有命令详解(三)

2017-01-07 19:01:44来源:CSDN作者:Tyrannoaurus人点击

第七城市

15 条Zurmo 命令详解

    命令列表 <command-name>- -15条:我有上传文档,也可以去下载文档:http://download.csdn.net/detail/tyrannoaurus/9731300

- help
- changepassword
- database
- elevate
- email
- import
- install
- installlanguage
- jobmanager
- lesscompiler
- managemetadata
- resetstuckjobs
- setmaintenancemode
- updateschema
- upgradezurmo

Usage(用法): zurmoc <command-name> [parameters...]查看某条命令的详情:zurmoc help  <command-name>

要点:由于这些命令是在windows上使用的,所以大小写应该是不区分的,我试过几条命令是不区分的,但是没有全部都试过。

重点:最常用的是udpateschema 命令,要掌握。如果还是不理解,请看我博客:
http://blog.csdn.net/tyrannoaurus/article/details/54097871

2017-1-7 上传

  • changepassword
    USAGE
    zurmoc changePassword - -username=user - -password=password

    DESCRIPTION
    Changes password of provided username. Quote password input to allow spaces and other special characters.
    Use this command only as a fallback option such as having to reset super user’s password, etc.

    PARAMETERS

    • username: A username that exists on current zurmo installation.
    • password: New password.
  • database
    USAGE
    zurmoc database <action> <filePath> <databaseType> <databaseHost> <databaseName> <databasePort> <databaseUsername> <databasePassword>

    DESCRIPTION
    This command is used to backup or restore the Zurmo database.
    Please set $maintenanceMode = true in the perInstance.php config file before you start this process.

    PARAMETERS

    • action: action(possible options: “backup” or “restore”)
    • filePath: path to file
      a. For backup, filepath where the database backup will be stored
      b. For restore, path to file from which database will be restored

      Optional Parameters(please note that if you want to use optional parameters, you must use all them):

    • databaseType, for example mysql, oracle…
    • databaseHost
    • databaseName
    • databasePort
    • databaseUsername
    • databasePassword
  • elevate

    USAGE
    zurmoc elevate <username>

    DESCRIPTION
    This command will elevate the specified user to ‘root’ unless there is already a root user. The user specified
    must be in the super administrator group.

    PARAMETERS

    • username: username to elevate to root.
  • email

    USAGE
    zurmoc email <action-name> - -username=user
    –toAddress=address
    –subject=subject
    –textContent=content
    –htmlContent=content
    –host=host
    –port=port
    –outboundUsername=username
    –outboundPassword=password
    –outboundSecurity=security

    DESCRIPTION
    Send an email messages. Use double quotes to to make a sentence for a subject or content
    An example is –subject=”Welcome to Zurmo”
    Note: If the outbound settings are not provided, command will attempt to use any saved setting in Zurmo.

    PARAMETERS

    • action-name: The action to use. Currently supports ‘send’
    • username: username to log in as and run the job. Typically ‘super’. Must be a super adminstrator.
    • toAddress: the email address to send the email too

      Optional Parameters:

    • subject: optional Subject
    • textContent: optional textContent
    • htmlContent: optional htmlContent
    • host: optional host setting. Otherwise system setting will be used.
    • port: optional port setting. Otherwise system setting will be used.
    • outboundUsername: optional outbound username setting. Otherwise system setting will be used.
    • outboundPassword: optional outbound password setting. Otherwise system setting will be used.
    • outboundSecurity: optional outbound mail server security. Options: null, ‘ssl’, ‘tls’.
  • import

    USAGE
    zurmoc import <username> [importName] [messageInterval] [runTimeInSeconds]

    DESCRIPTION
    This command runs any import processes, specifically doing only the specified process if supplied. In a custom
    application, you can overwrite the CustomManagement class and add calls to various imports you would like.

    PARAMETERS

    • username: username to log in as and run the import processes. Typically ‘super’.

      Optional Parameters:

    • importName: Name of import process to run
    • messageInterval: how many rows before a message output is displayed showing the progress.
    • runTimeInSeconds: how many seconds to let this script run, if not specified will default to 20 minutes.
  • install

    USAGE
    zurmoc install <database-hostname> <database-name> <database-username> <database-password> <database-port> <superuser-password> [hostInfo] [scriptUrl] [demodata] [load-magnitude]

    DESCRIPTION
    This command runs a silent install on the application, optional loading demo data if specified. This version
    assumes memcache is availble running at its standard host/post location. Also assumes the system is ready
    for an installation as this install script does not check services like the install through the user interface.

    PARAMETERS

    • database-hostname : The hostname, typically ‘localhost’.
    • database-name : The database name to installation the application on.
    • database-username : The database user
    • database-password : The database user password.
    • database-port : The database port.
    • superuser-password : The password for the super administrator that is created. The username will be ‘super’
    • hostInfo : Set hostInfo in perInstance.php file.
    • scriptUrl : Set scriptUrl in perInstance.php file.

      Optional Parameters:

    • demodata: If you want demodata to load just specify ‘demodata’ otherwise leave blank.
    • load-magnitude: Conditional, used only if demodata parameter specified, and it specify load magnitude for demodata (demodata volume).
  • installlanguage

    USAGE  zurmoc InstallLanguage  <zipArchive>DESCRIPTION  This command installs language files contained in the specified archive file.PARAMETERS * zipArchive: archive file containing message translations.
  • jobmanager

    USAGE  zurmoc jobManager <username> <jobType>[runTimeInSeconds] [messageLoggerClassName]DESCRIPTION      This command runs a specific job as specified by the jobType parameter. If you want to run the monitor job  specify the jobType as 'Monitor'.PARAMETERS     * username: username to log in as and run the job. Typically 'super'. Must be a super adminstrator.     * jobType:  Type of job to run. Optional Parameters: * runTimeInSeconds: how many seconds to let this script run, if not specified will default to 5 minutes. * messageLoggerClassName: which messageLogger class to use. Defaults to MessageLogger
  • lesscompiler

    USAGE
    zurmoc lessCompiler [whatToCompile] [whatToCompile] …

    DESCRIPTION
    This command create css files based on less files. This job should probably be done as cronjob, maybe once per day.

    PARAMETERS

    • no required params

    Optional Parameters:

    • whatToCompile: which css files to build. Options are (all, base, or a specific theme: $colorNames). Default is all. Supports multiple themes or options.
      EOD;
  • managemetadata

    USAGE zurmoc manageMetadata <username> <action>

    DESCRIPTION
    This command manage metadata.

    PARAMETERS

    • username: username to log in as and run the import processes. Typically ‘super’.
      This user must be a super administrator.
    • action: define upgrade phase(possible options: “saveAllMetadata” or “getAllMetadata”)
  • resetstuckjobs

    USAGE  zurmoc resetStuckJobs <username> <jobType>

    DESCRIPTION
    This command will reset all stuck jobs(remove them from jobsInProgress table)

    PARAMETERS

    • username: username which run command.
    • jobType: jobType to reset, or ‘All’ to reset all jobs in JobInProcess table
  • setmaintenancemode

    USAGE  zurmoc setMaintenanceMode <username> <maintenanceMode>

    DESCRIPTION
    This command will set maintenance mode in perInstance.php file

    PARAMETERS

    • username: username which run command.
    • maintenanceMode: 0 or 1
  • updateschema

    USAGE  zurmoc updateSchema <username> <overwriteExistingReadTables>

    DESCRIPTION
    This command runs an update on the database schema. It calls the
    InstallUtil::runAutoBuildFromUpdateSchemaCommand.

    PARAMETERS

    • username: username to log in as and run the import processes. Typically ‘super’.
      This user must be a super administrator.
    • overwriteExistingReadTables: If set to 1 all read tables would be regenerated, which could be a time consuming process.
      If not set, or set to 0, any existing read tables would be skipped.
      Defaults to 0.
  • upgradezurmo

    USAGE  zurmoc updgradeZurmo <username> <action> <doNotlAlterFiles> <interactive>

    DESCRIPTION
    This command runs a Zurmo upgrade.

    PARAMETERS

    • username: username to log in as and run the import processes. Typically ‘super’.
      This user must be a super administrator.
    • action: define upgrade phase(possible options: “runPart1” or “runPart2”)
    • doNotlAlterFiles: Should files be altered or not. This should be set to 1 if you
      already updated files using Mercurial
    • interactive: interactive or not
      以上就是所有的命令了。
第七城市

最新文章

123

最新摄影

微信扫一扫

第七城市微信公众平台