# README
Docker Hub CLI
CLI that helps users manage and browse Docker Hub resources (repositories, organizations, members, etc...)
Launch
Go
go install github.com/victorbersy/docker-hub-cli@latest
docker-hub-cli
Docker
# Docker Hub
docker pull victorbersy/docker-hub-cli:latest
docker run --rm -it victorbersy/docker-hub-cli
# Github Container Registry
docker pull ghcr.io/victorbersy/docker-hub-cli:latest
docker run --rm -it ghcr.io/victorbersy/docker-hub-cli
Authentication
The authentication system is rough at the moment. Hopefully, it will be better soon. Meanwhile, here's how to authenticate:
Set DOCKER_BEARER
with your token and launch the program:
$ DOCKER_BEARER=$DOCKER_BEARER DOCKER_USERNAME=victorbersy go run main.go
or with a compiled version:
$ DOCKER_BEARER=$DOCKER_BEARER DOCKER_USERNAME=victorbersy ./docker-hub-cli
To get your Bearer token:
$ username=victorbersy \
password=my_docker_pat_token \
curl -s 'https://hub.docker.com/api/v2/users/login' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{"username":"'$username'","password":"'$password'"}' | jq -r .token
To generate your Personal Access Token (PAT): hub.docker.com/settings/security
Screenshots
Dark default theme
Light default theme
Credits
- Heavily inspired from gh-dash created by @dlvhdr
- bubbletea by Charm
- glamour by Charm
- lipgloss by Charm
- Docker Hub