Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pigsty CLI Tools #41

Open
Vonng opened this issue May 14, 2021 · 0 comments
Open

Pigsty CLI Tools #41

Vonng opened this issue May 14, 2021 · 0 comments
Assignees
Labels
FEATURE New Features
Projects
Milestone

Comments

@Vonng
Copy link
Owner

Vonng commented May 14, 2021

Provide yet another cli wrapper to seal ansible primitives. for example:

NAME
    pigsty -- Pigsty Command-Line Interface v0.8

SYNOPSIS

    meta               setup meta nodes            init|fetch|repo|cache|ansible
    node               setup database nodes        init|tune|dcs|remove|ping|bash|ssh|admin
    pgsql              setup postgres clusters     init|node|dcs|postgres|template|business|monitor|service|monly|remove
    infra              setup infrastructure        init|ca|dns|prometheus|grafana|loki|haproxy|target
    clean              clean pgsql clusters        all|service|monitor|postgres|dcs
    config             mange pigsty config file    init|edit|info|dump|path
    serve              run pigsty API server       init|start|stop|restart|reload|status
    demo               setup local demo            init|up|new|clean|start|dns
    log                watch system log            query|postgres|patroni|pgbouncer|message
    pg                 pg operational tasks        user|db|svc|hba|log|psql|deploy|backup|restore|vacuum|repack


EXAMPLES

    1. infra summary
        pigsty infra

    2. pgsql clusters summary
        pigsty pgsql

    3. pigsty nodes summary
        pigsty node

    4. create pgsql cluster 'pg-test'
        pigsty pgsql init -l pg-test

    5. add new instance 10.10.10.13 of cluster 'pg-test'
        pigsty pgsql init -l 10.10.10.13

    6. remove cluster 'pg-test'
        pigsty clean -l pg-test

    7. create user dbuser_vonng on cluster 'pg-test'
        pigsty pg user dbuser_vonng -l pg-test

    8. create database test2 on cluster 'pg-test'
        pigsty pg db test -l pg-test

Usage:
  pigsty [command]

Available Commands:
  clean       remove pgsql cluster/instance
  help        Help about any command
  infra       setup infrastructure
  meta        setup meta node
  node        setup database node
  pgsql       setup pgsql clusters
  serve       Launch pigsty API server

Flags:
  -h, --help               help for pigsty
  -i, --inventory string   inventory file (default "./pigsty.yml")
  -l, --limit string       limit execution hosts
  -t, --tags strings       limit execution tasks
@Vonng Vonng added this to the v1.0 milestone May 14, 2021
@Vonng Vonng self-assigned this May 14, 2021
@Vonng Vonng added the ENHANCEMENT New feature or request label May 14, 2021
@Vonng Vonng added this to TODO in pigsty Sep 13, 2021
@Vonng Vonng moved this from TODO to ICEBOX in pigsty Sep 15, 2021
@Vonng Vonng modified the milestones: v1.0, v1.5 Apr 4, 2022
@Vonng Vonng modified the milestones: v1.5, v1.6 May 19, 2022
@Vonng Vonng modified the milestones: v1.6, v2.0 Dec 6, 2022
@Vonng Vonng modified the milestones: v2.0, Feb 24, 2023
@Vonng Vonng added FEATURE New Features and removed ENHANCEMENT New feature or request labels Sep 17, 2023
@Vonng Vonng modified the milestones: , v3 Sep 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FEATURE New Features
Projects
Status: ICEBOX
pigsty
ICEBOX
Development

No branches or pull requests

1 participant