pub struct InitCommand {Show 16 fields
pub interactive: bool,
pub non_interactive: bool,
pub profile: Option<InitProfile>,
pub key_alias: String,
pub force: bool,
pub confirm_replace: bool,
pub dry_run: bool,
pub registry: Option<String>,
pub register: bool,
pub github: bool,
pub no_github: bool,
pub git_scope: Option<GitScopeArg>,
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
confirm_replace: boolConfirm replacing an existing root identity when running non-interactively. Required with
--force over an existing identity when there is no TTY to confirm at.
dry_run: boolPreview agent configuration without creating files or identities
registry: Option<String>Registry URL for identity registration. No default: auths needs no
registry, and registration is opt-in via --register.
register: boolRegister identity with the Auths Registry after creation
github: boolLink your GitHub account and upload your SSH signing key, so your commits show as Verified on github.com.
Defaults to on when this repo has a GitHub remote and there is a TTY to
confirm at. Unrelated to --register, which publishes to the Auths
Registry.
no_github: boolSkip linking GitHub, even when this repo has a GitHub remote.
git_scope: Option<GitScopeArg>Where to write git signing config: local (this repo), global (every repo on this machine), or skip.
Interactive runs ask. Non-interactive runs default to local — a scripted
or CI init should not silently rewrite your ~/.gitconfig.
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; add further
devices with auths device pair (each is a delegated identity under
the root). The full atomic multi-device inception path is wired 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.