Metadata-Version: 2.1
Name: ucentral
Version: 0.0.3
Summary: CLI to create ucentral configuration files
Home-page: https://github.com/aparcar/ucentral-cli
Maintainer: Paul Spooren
Maintainer-email: mail@aparcar.org
License: UNKNOWN
Platform: UNKNOWN
Description-Content-Type: text/markdown
Requires-Dist: click-shell (==2.0)
Requires-Dist: dotty-dict (==1.3.0)
Requires-Dist: jsonschema (==3.2.0)

# ucentral cli

Create and modify valid [ucentral-schema][1] schemata.

[1]: https://github.com/blogic/ucentral-schema

## Installation

    pip install -e .

The latest [ucentral.schema.json][2] is required in the main folder.

[2]: https://raw.githubusercontent.com/blogic/ucentral-schema/main/ucentral.schema.json

## Usage

Run CLI via `ucentral`

Supported commands:

 * `add`
 * `add-list`
 * `del-list`
 * `get`
 * `load`
 * `schema-load`
 * `set`
 * `show`
 * `write`

Type `help <command>` to see usage.

## Examples

    >> set uuid 123
    >> set network.0.cfg.dhcp.leasetime 12h
    >> set network.0.cfg.leases.0.hostname Apollo
    >> add_list ntp.server ntp.example.org
    >> add_list ntp.server ntp.example.com
    >> show

    {
        "network": [
            {
                "cfg": {
                    "dhcp": {
                        "leasetime": "12h"
                    },
                    "leases": [
                        {
                            "hostname": "Apollo"
                        }
                    ]
                }
            }
        ],
        "ntp": {
            "server": [
                "ntp.example.org",
                "ntp.example.com"
            ]
        },
        "uuid": 123
    }


