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 opensslsudo apt-get update
sudo apt-get install libssl-devCopy code
sudo dnf install openssl-develTo install the zero-cli from Crates.io, use the following command:
cargo install zero-cliThis 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/cliThen, install the zero-cli:
brew install zero-cliThe CLI offers various subcommands:
- auth: Authentication and authorization functionalities.
- projects: Manage projects, including creation, deletion, editing, listing, sharing, usage overview, and viewing details.
- secrets: Handle secrets, allowing users to create, delete, edit, list, share, drop, and view details.
- teams: Operations related to teams, such as creation, deletion, editing, leaving, listing, managing users, and viewing details.
- tokens: Token management including creation, deletion, list view and regeneration.
- help: Display help information about the CLI or a specific subcommand.
Run
cargo runor if you want to test the command run from src folder
cargo run -- auth loginCodegen
cargo install graphql_client_cligraphql-client generate <query_path> --schema-path <schema_path>as example
graphql-client generate src/auth/graphql/me.graphql --schema-path schema.graphql