Crates.io | zero-cli |
lib.rs | zero-cli |
version | 2.5.0 |
source | src |
created_at | 2023-11-28 15:37:14.198622 |
updated_at | 2024-10-04 11:44:21.297839 |
description | A command line tool for Zero Secrets Manager |
homepage | https://tryzero.com |
repository | https://github.com/zerosecrets/cli |
max_upload_size | |
id | 1052096 |
size | 617,950 |
A command line tool for Zero Secrets Manager.
This CLI tool allows users to manage secrets and projects within the Zero Secrets Manager. It provides functionalities for authentication, project management, secret management, team handling, and more.
Make sure OpenSSL is installed on your system. Here are the installation instructions for different platforms:
brew install openssl
sudo apt-get update
sudo apt-get install libssl-dev
Copy code
sudo dnf install openssl-devel
To install the zero-cli
from Crates.io, use the following command:
cargo install zero-cli
This command will download the crate, compile all the binary targets it contains (in "release" mode), and copy them into the ~/.cargo/bin/ directory. Ensure that your shell knows to look there for binaries!
First, tap the Zero Secrets CLI repository:
brew tap zerosecrets/cli
Then, install the zero-cli:
brew install zero-cli
The CLI offers various subcommands:
Run
cargo run
or if you want to test the command run from src folder
cargo run -- auth login
Codegen
cargo install graphql_client_cli
graphql-client generate <query_path> --schema-path <schema_path>
as example
graphql-client generate src/auth/graphql/me.graphql --schema-path schema.graphql