Skip to main content

Commands

Enum Commands 

Source
pub enum Commands {
Show 16 variants Init, Set { key: String, value: Option<String>, }, Get { key: String, }, List, Delete { key: String, force: bool, }, Run { command: Vec<String>, clean_env: bool, }, RotateKey, Export { format: String, output: Option<String>, }, Import { file: String, format: Option<String>, }, Auth { action: AuthAction, }, Env { action: EnvAction, }, Diff { target_env: String, show_values: bool, }, Edit, Version, Completions { shell: String, }, Audit { 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

§key: String

Secret name (e.g. DATABASE_URL)

§value: Option<String>

Secret value (omit for interactive prompt)

§

Get

Get a secret’s value

Fields

§key: String

Secret name

§

List

List all secrets

§

Delete

Delete a secret

Fields

§key: String

Secret name

§force: bool

Skip confirmation prompt

§

Run

Run a command with secrets injected

Fields

§command: Vec<String>

Command and arguments (after –)

§clean_env: bool

Start with a clean environment (only vault secrets, no inherited vars)

§

RotateKey

Change the vault’s master password

§

Export

Export secrets to a file or stdout

Fields

§format: String

Output format: env (default) or json

§output: Option<String>

Output file path (prints to stdout if omitted)

§

Import

Import secrets from a file

Fields

§file: String

Path to the file to import

§format: Option<String>

Import format: env (default) or json (auto-detected from extension)

§

Auth

Manage authentication methods (keyring, keyfile)

Fields

§action: AuthAction
§

Env

Manage environments (list, clone, delete)

Fields

§action: EnvAction
§

Diff

Compare secrets between two environments

Fields

§target_env: String

Target environment to compare against

§show_values: bool

Show secret values in diff output

§

Edit

Open secrets in an editor (decrypts to temp file, re-encrypts on save)

§

Version

Show version and check for updates

§

Completions

Generate shell completion scripts

Fields

§shell: String

Shell to generate completions for (bash, zsh, fish, powershell)

§

Audit

View the audit log of vault operations

Fields

§last: usize

Number of entries to show (default: 50)

§since: Option<String>

Show entries since a duration ago (e.g. 7d, 24h, 30m)

Trait Implementations§

Source§

impl FromArgMatches for Commands

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

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>

Assign values from ArgMatches to self.
Source§

impl Subcommand for Commands

Source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

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 more
Source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V