pget is a tiny Rust command-line tool to get and manage servers passwords.
- Query a server password:
pget server_name # it will copy to your clipboard - Add or update a server password:
pget -a server_name some_password
- Download from releases
Or build it manually
# Build and install with cargo
cargo install --path .
# or build locally
cargo build --release
# binary will be in target/release/pgetUsage:
pget <NAME> # print password for NAME
pget -a <NAME> <PASSWORD> # add or update NAME with PASSWORD
pget --help # show help
pget --version # show version
Examples:
# copy the password to your clipboard for server_1
pget server_1
# add or update server_2's password
pget -a server_2 s3cr3tP@ssw0rd
# show help
pget --helpWhen you will run for first time, it will create a file:
~/.ssh/passwords.toml. So you don't have to add a new server's password by cli. You can also add it manually in the file.
Example file layout (TOML):
[servers]
server_1 = "s3cr3tP@ssw0rd"
db-primary = "dbP@ss!"- Fork the repo
- Create a topic branch:
git switch -c feat/your-feature - Make your changes
- Open a PR and describe the change
Keep commits clean for logic where appropriate.