pub struct InitCommand {
pub interactive: bool,
pub non_interactive: bool,
pub profile: Option<InitProfile>,
pub key_alias: String,
pub force: bool,
pub dry_run: bool,
pub registry: String,
pub register: bool,
pub github_action: bool,
pub device_count: u8,
pub signing_threshold: Option<String>,
pub rotation_threshold: Option<String>,
}Expand description
Initializes Auths identity with a guided setup wizard.
Supports three profiles (developer, ci, agent) covering the most common
deployment scenarios. Interactive by default on TTY; pass --non-interactive
for scripted or CI use, or --interactive to force prompts.
Usage:
// auths init
// auths init --profile developer --non-interactive
// auths init --interactive --profile developerFields§
§interactive: boolForce interactive prompts (errors if not a TTY)
non_interactive: boolSkip interactive prompts and use sensible defaults
profile: Option<InitProfile>Preset profile: developer, ci, or agent
key_alias: StringKey alias for the identity key (default: main)
force: boolForce overwrite if identity already exists
dry_run: boolPreview agent configuration without creating files or identities
registry: StringRegistry URL for identity registration
register: boolRegister identity with the Auths Registry after creation
github_action: boolScaffold a GitHub Actions workflow using the auths attest-action
device_count: u8Number of device slots for a multi-key KEL (default 1).
Values > 1 require --signing-threshold and --rotation-threshold.
Multi-device init today runs a single-device inception and points the
operator at auths id expand for the device-expansion rotation; the
full atomic multi-device inception path is wired through later.
signing_threshold: Option<String>Signing threshold: scalar integer (e.g. "2") or fraction list
(e.g. "1/2,1/2,1/2"). Required when --device-count > 1.
rotation_threshold: Option<String>Rotation (next) threshold, same format as --signing-threshold.
Trait Implementations§
Source§impl Args for InitCommand
impl Args for InitCommand
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for InitCommand
impl Clone for InitCommand
Source§fn clone(&self) -> InitCommand
fn clone(&self) -> InitCommand
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for InitCommand
impl Debug for InitCommand
Source§impl ExecutableCommand for InitCommand
impl ExecutableCommand for InitCommand
Source§impl FromArgMatches for InitCommand
impl FromArgMatches for InitCommand
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>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.