Crates.io | syspass-cli |
lib.rs | syspass-cli |
version | |
source | src |
created_at | 2024-06-23 14:19:53.169525 |
updated_at | 2024-12-12 18:22:20.4653 |
description | A CLI client for Syspass |
homepage | https://github.com/ggnosh/syspass-cli |
repository | https://github.com/ggnosh/syspass-cli |
max_upload_size | |
id | 1281231 |
Cargo.toml error: | TOML parse error at line 22, column 1 | 22 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
A simple command line tool to interact with sysPass databases.
sysPass Intuitive, secure and multiuser password manager
git clone https://github.com/ggnosh/syspass-cli.git
cd syspass-cli
cargo build --release
# cp target/release/syspass-cli somewhere
If you already have a Rust environment set up, you can use the cargo install
command:
cargo install syspass-cli
Download binary from https://github.com/ggnosh/syspass-cli/releases
syspass-cli will look for a configuration file in $(HOME)/.syspass/config.json
NOTE
The password can be set in plaintext in the config.json
file or as an environment variable.
If no SYSPASS_PASSWORD
is found, syspass-cli will prompt for it.
Create a config file at $(HOME)/.syspass/config.json
{
"host": "https://example.org/api.php",
"token": "AUTHORIZATION_TOKEN",
"password": "PASSWORD",
"verifyHost": true,
"passwordTimeout": 15,
"apiVersion": "SyspassV3",
"noShell": false,
"noClipboard": false
}
noShell
implies --no-shell
when searching
noClipboard
implies --show-password
when searching and doesn't try to copy things to the clipboard.
If password
is empty it will be prompted when needed.
passwordTimeout
if the value is 0 this feature is ignored.
Otherwise, the clipboard will be cleared after given seconds unless the --showpassword
flag is given.
apiVersion
defines which API to use. Supported values are SyspassV2
and SyspassV3
.
If value is not defined the syspass-cli defaults to newest sysPass version.
Located at $(HOME)/.syspass/usage.json
This file is used to sort the most commonly used accounts.
The behaviour can be disabled by using -u
or --disableusage
during account search.
Usage: syspass-cli [OPTIONS] [COMMAND]
Commands:
search, -s Search for account password [aliases: find]
edit, -e Edit entity [aliases: change]
remove, -r Remove entity [aliases: delete]
new, -n Add a new entity [aliases: add]
check-update Update syspass-cli
help Print this message or the help of the given subcommand(s)
Options:
-c, --config <FILE> Sets a custom config file
-d, --debug Output debug information
-q, --quiet Do not output any message
-v, --verbose Output more information
--completions <completions> Output debug information [possible values: bash, elvish, fish, powershell, zsh]
-h, --help Print help
-V, --version Print version
syspass-cli --completions
after building, e.g.syspass-cli --completions zsh | sudo tee /usr/share/zsh/site-functions/_syspass-cli > /dev/null
For development see DEVELOPMENT.md