Skip to content

philippgille/apiomat-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

apiomat-cli

aom - CLI for ApiOmat, written in Go

Under construction!

under-construction baby-gopher

Contents

Installation

go get "github.com/philippgille/apiomat-cli/aom"

Usage

aom [flags]
aom [command]

Available Commands:
  class       Manages the "MetaModel" resource
  help        Help about any command
  version     Prints the version of the ApiOmat server

Flags:
  -d, --debug     Debug switch. Activate to include stack trace when errors are logged
  -h, --help      help for aom
  -v, --version   Print the version of the aom CLI (not of the ApiOmat server - use "aom version" for that

Use "aom [command] --help" for more information about a command.

Examples

  • Print the version of the ApiOmat server:
    $ aom version --baseUrl "https://apiomat.yourcompany.com/yambas/rest"
    ApiOmat version: {"server":"null:443","version":"2.6.2-107E"}
  • List all classes of module "MyModule":
    $ aom class ls --module "MyModule" --baseUrl "https://apiomat.yourcompany.com/yambas/rest" --username "john" --password "secret"
    Classes of module MyModule:
    [
        struct {
            AllowedRolesCreate: [
            ],
            AllowedRolesGrant: [
            ],
            ...
        },
        ...
    ]