8 stable releases

new 2.1.0 Apr 19, 2024
2.0.2 Mar 27, 2024
2.0.0 Feb 14, 2024
1.0.4 Dec 27, 2023
1.0.2 Nov 29, 2023

#585 in Command line utilities

Download history 2/week @ 2023-12-23 127/week @ 2024-02-10 18/week @ 2024-02-17 12/week @ 2024-02-24 1/week @ 2024-03-02 2/week @ 2024-03-09 82/week @ 2024-03-23 38/week @ 2024-03-30 2/week @ 2024-04-06

123 downloads per month

MIT/Apache

650KB
20K SLoC

GraphQL 13K SLoC Rust 7.5K SLoC // 0.0% comments

zero-cli

A command line tool for Zero Secrets Manager.

Overview

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.

Installation

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!

Usage

The 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, and view details.
  • teams: Operations related to teams, such as creation, deletion, editing, leaving, listing, managing users, and viewing details.
  • help: Display help information about the CLI or a specific subcommand.

🛠 Development guide

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

Download schema

gq http://localhost:8080/v1/graphql -H 'X-Hasura-Admin-Secret:111' --introspect > schema.graphql

Dependencies

~14–31MB
~470K SLoC