Class CLI


  • public class CLI
    extends Object
    Command line interface for Authlete API.

    USAGE

     java -cp {classpath} com.authlete.common.util.CLI [options] {API name} [arguments]
    
       or
    
     mvn -q exec:java -Dexec.args='[options] {API name} [arguments]'
    
       or
    
     bin/authlete-cli.sh [options] {API name} [arguments]
     

    OPTIONS

     -h | --help : Show the help and exit.
     -v | --verbose : Verbose output.
     

    API NAME AND ARGUMENTS

     getClient {clientId}
     getClientAuthorizationList subject={subject} [developer={developer}] [start={start}] [end={end}]
     getClientList [developer={developer}] [start={start}] [end={end}]
     getService {serviceApiKey}
     getServiceConfiguration [pretty={true|false}]
     getServiceJwks [pretty={true|false}] [includePrivateKeys={true|false}]
     getServiceList [start={start}] [end={end}]
    
     # API name is case-insensitive.
     

    EXAMPLES

     $ bin/authlete-cli.sh --help
     $ bin/authlete-cli.sh getClient 4326385670
     $ bin/authlete-cli.sh getClientAuthorizationList subject=authlete_5526908833
     $ bin/authlete-cli.sh getClientList developer=authlete_5526908833
     $ bin/authlete-cli.sh getService 5526908833
     $ bin/authlete-cli.sh getServiceConfiguration pretty=true
     $ bin/authlete-cli.sh getServiceJwks pretty=true includePrivateKeys=true
     $ bin/authlete-cli.sh getServiceList start=1
     

    NOTE

    authlete.properties must exist. See JavaDoc of AuthletePropertiesConfiguration.

    Since:
    2.0
    Author:
    Takahiko Kawasaki
    • Constructor Detail

      • CLI

        public CLI()
    • Method Detail

      • main

        public static void main​(String[] args)
        The entry point of this command line interface.