curl -sL 'https://raw.githubusercontent.com/k-five/ldc/master/script.sh' -o /usr/local/bin/ldc
chmod u+x !$Then you can run it and see the output:
# see the help
> ldc --help> bash <(curl -sL 'https://raw.githubusercontent.com/k-five/ldc/master/script.sh') --help> bash <(curl -sL 'https://raw.githubusercontent.com/k-five/ldc/master/script.sh') --os update> bash <(curl -sL 'https://raw.githubusercontent.com/k-five/ldc/master/script.sh') --os update --docker docker --con node-exporter --con prometheus> alias ldc='bash <(curl -sL 'https://raw.githubusercontent.com/k-five/ldc/master/script.sh')'
# check help
> ldc --help
# update the OS
> ldc --os update
# update the OS, install Docker, install prometheus form default registry
> ldc --os update --docker docker --con node-exporter --con prometheus
# update the OS, install Docker, install node-exporter and prometheus from a docker.mirror.derak.cloud
> ldc --os update --docker docker --reg docker.mirror.derak.cloud --con node-exporter --con prometheusIf you use / set the script with and alias or install it with ldc name, then you can use bash tab completion feature.
For more about bash tab completion you can read Bash Tab Completion script for common CLIs.
> source <(curl -sL https://raw.githubusercontent.com/redcursor/btc/master/ldc/_comp_ldc.sh)
> ldc <HIT-TAB>> curl -sL https://raw.githubusercontent.com/redcursor/btc/master/ldc/_comp_ldc.sh -o /etc/bash_completion.d/_comp_ldc.sh
> source !$
> ldc <HIT-TAB>-O | --os- type
- version
- update
- upgrade
- info
-D | --docker- docker
- remove
- compose
- kubectl
-C | --conor--container- prometheus
- node-exporter
- visualizer
- portainer-ce
- grafana
-R | --regor--registry- index.docker.io
-P | --port- stop
- start
- disable
- enable
- [number]
-E | --exec- [file]
- [URL]
--command- check
- docker