DPML
DPML Metro CLI
HomeUtilitiesStationMetro
Metro Command Line
Description
$ metro <uri>

Runs a metro application given a codebase uri. Normally the metro command is invoked by the DPML Station as a result of a application start request or as a consequence of station startup. The metro application will continue until explicitly terminated.

$ metro -help
  Description:

    Deploys a component referenced by a part uri.

  Usage: metro [-command] [-debug | -trace] [-D<name>=<value>] <uri> | -help | -version

  Arguments:
    <uri>              uri referencing a part datatype

  Options:
    -debug             enables debug level logging
    -trace             enables trace level logging
    -D<name>=<value>   declaration of one or more system properties
    -command           enables command execution mode
    -help              list command help and exit
    -version           list version info and exit
$ metro -version
  DPML Metro
  Version 2.1.1
  Copyright 2005-2007 Stephen J. McConnell
  Digital Product Management Library
Example
$ metro link:part:osm/http/osm-http-express

[1840 ] [INFO   ] (main.server): commissioning server
[1840 ] [INFO   ] (main.server.jetty): Logging to net.dpml.util.Logger via net.osm.http.impl.LoggerAdapter
[1840 ] [INFO   ] (main.server): adding HTTP connector on port: 8080
[1840 ] [INFO   ] (main.server): adding SSL connector on port: 8443
[1840 ] [INFO   ] (main.server): starting
[1840 ] [INFO   ] (main.server.jetty): jetty-6.1.x
[1840 ] [INFO   ] (main.server.jetty): Started SelectChannelConnector @ 0.0.0.0:8080
[1840 ] [INFO   ] (main.server.jetty): Started SslSocketConnector @ 0.0.0.0:8443