https://github.com/philippgille/apiomat-cli
aom - CLI for ApiOmat, written in Go
https://github.com/philippgille/apiomat-cli
aom apiomat cli go golang
Last synced: 8 months ago
JSON representation
aom - CLI for ApiOmat, written in Go
- Host: GitHub
- URL: https://github.com/philippgille/apiomat-cli
- Owner: philippgille
- License: agpl-3.0
- Created: 2018-06-23T18:46:50.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-05-15T22:30:51.000Z (about 7 years ago)
- Last Synced: 2025-07-13T15:44:33.414Z (11 months ago)
- Topics: aom, apiomat, cli, go, golang
- Language: Go
- Size: 139 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# apiomat-cli
`aom` - CLI for ApiOmat, written in Go
Under construction!
[](http://www.babygopher.org)
## Contents
- [Installation](#installation)
- [Usage](#usage)
- [Examples](#examples)
## 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:
```bash
$ 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":
```bash
$ aom class ls --module "MyModule" --baseUrl "https://apiomat.yourcompany.com/yambas/rest" --username "john" --password "secret"
Classes of module MyModule:
[
struct {
AllowedRolesCreate: [
],
AllowedRolesGrant: [
],
...
},
...
]
```