Mike Arpaia
018e10ea66
Add fleetctl config and auth commands ( #1751 )
...
```
$ fleetctl config set address https://localhost:8080
[+] Set the "address" config key to "https://localhost:8080 " in the "default" context
$ fleetctl config set ignore_tls true
[+] Set the "ignore_tls" config key to "true" in the "default" context
$ fleetctl setup --email mike@arpaia.co --password "abc123"
[+] Fleet setup successful and context configured!
$ cat ~/.fleet/config
contexts:
default:
address: https://localhost:8080
email: mike@arpaia.co
ignore_tls: true
token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZXNzaW9uX2tleSI6IlUvdm05Vk9wSG0xUlA4SUtjQnBhb2ovWlo1TXppSEVXcFRCNFNPb2tHQnNLUFpDQXFieVpWWnpJb0UvczQzcWkyd1pHZXJOa29SNFVIQ2hNZUc0K09RPT0ifQ.rHawSN8JvD4jjWAPTYX2Ep9ZpMt3u4mSIQcu920C-_s
$ fleetctl logout
[+] Fleet logout successful and local token cleared!
$ cat ~/.fleet/config
contexts:
default:
address: https://localhost:8080
email: mike@arpaia.co
ignore_tls: true
token: ""
```
2018-05-04 10:53:21 -06:00
Mike Arpaia
920f4afab6
Scaffold the login command ( #1748 )
2018-05-01 16:58:53 -06:00
Mike Arpaia
93a346463b
New fleetctl CLI structure ( #1719 )
2018-05-01 12:14:05 -06:00
Mike Arpaia
76ce270cbd
include forgotten fleetctl config command
2017-11-12 11:59:39 -07:00
Mike Arpaia
796e0af8be
Initial CLI and file format for fleetctl
...
This PR implements a program called `fleetctl` which scaffolds a high level CLI interface which can be used to manage a Fleet server. Configuration is articulated using an intent-based API that resembles the API that is used to configure Kubernetes clusters. The idea here is to use the Kubernetes file format as a pattern to reduce the need for operators to become too intimately familiar with dramatically different file formats. (#1578 )
2017-11-12 11:58:19 -07:00