pub enum Commands {
Show 19 variants
Init,
Set {
key: String,
value: Option<String>,
force: bool,
},
Get {
key: String,
clipboard: bool,
},
List,
Delete {
key: String,
force: bool,
},
Run {
command: Vec<String>,
clean_env: bool,
only: Option<Vec<String>>,
exclude: Option<Vec<String>>,
redact_output: bool,
allowed_commands: Option<Vec<String>>,
},
RotateKey {
new_keyfile: Option<String>,
},
Export {
format: String,
output: Option<String>,
},
Import {
file: String,
format: Option<String>,
dry_run: bool,
skip_existing: bool,
},
Auth {
action: AuthAction,
},
Env {
action: EnvAction,
},
Diff {
target_env: String,
show_values: bool,
},
Edit,
Version,
Update,
Completions {
shell: String,
},
Scan {
ci: bool,
dir: Option<String>,
gitleaks_config: Option<String>,
},
Search {
pattern: String,
},
Audit {
action: Option<AuditAction>,
last: usize,
since: Option<String>,
},
}Expand description
All available subcommands.
Variants§
Init
Initialize a new vault (auto-imports .env)
Set
Set a secret (add or update)
Fields
Get
Get a secret’s value
List
List all secrets
Delete
Delete a secret
Run
Run a command with secrets injected
Fields
RotateKey
Change the vault’s master password
Export
Export secrets to a file or stdout
Fields
Import
Import secrets from a file
Fields
Auth
Manage authentication methods (keyring, keyfile)
Fields
§
action: AuthActionEnv
Manage environments (list, clone, delete)
Diff
Compare secrets between two environments
Fields
Edit
Open secrets in an editor (decrypts to temp file, re-encrypts on save)
Version
Show version and check for updates
Update
Update envvault to the latest version
Completions
Generate shell completion scripts
Scan
Scan files for leaked secrets (API keys, tokens, passwords)
Fields
Search
Search secrets by name pattern (supports * and ? wildcards)
Audit
View, export, or purge the audit log
Trait Implementations§
Source§impl FromArgMatches for Commands
impl FromArgMatches for Commands
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for Commands
impl Subcommand for Commands
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for Commands
impl RefUnwindSafe for Commands
impl Send for Commands
impl Sync for Commands
impl Unpin for Commands
impl UnsafeUnpin for Commands
impl UnwindSafe for Commands
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more