Rename setup CLI command to onboard for compatibility

Serde alias on `onboard_completed` preserves existing settings.json files
that still have the old `setup_completed` key.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
This commit is contained in:
Illia Polosukhin
2026-02-06 09:56:32 -08:00
co-authored by Claude Opus 4.6
parent 48ab73574e
commit 8be390afab
8 changed files with 31 additions and 28 deletions
+3 -1
View File
@@ -450,7 +450,9 @@ async fn get_secrets_store() -> anyhow::Result<Arc<dyn SecretsStore + Send + Syn
let config = Config::from_env()?;
let master_key = config.secrets.master_key().ok_or_else(|| {
anyhow::anyhow!("SECRETS_MASTER_KEY not set. Run 'ironclaw setup' first or set it in .env")
anyhow::anyhow!(
"SECRETS_MASTER_KEY not set. Run 'ironclaw onboard' first or set it in .env"
)
})?;
let store = Store::new(&config.database).await?;
+5 -5
View File
@@ -2,7 +2,7 @@
//!
//! Provides subcommands for:
//! - Running the agent (`run`)
//! - Interactive setup wizard (`setup`)
//! - Interactive onboarding wizard (`onboard`)
//! - Managing configuration (`config list`, `config get`, `config set`)
//! - Managing WASM tools (`tool install`, `tool list`, `tool remove`)
//! - Managing MCP servers (`mcp add`, `mcp auth`, `mcp list`, `mcp test`)
@@ -53,9 +53,9 @@ pub struct Cli {
#[arg(short, long, global = true)]
pub config: Option<std::path::PathBuf>,
/// Skip first-run setup check
/// Skip first-run onboarding check
#[arg(long, global = true)]
pub no_setup: bool,
pub no_onboard: bool,
}
#[derive(Subcommand, Debug)]
@@ -63,8 +63,8 @@ pub enum Command {
/// Run the agent (default if no subcommand given)
Run,
/// Interactive setup wizard
Setup {
/// Interactive onboarding wizard
Onboard {
/// Skip authentication (use existing session)
#[arg(long)]
skip_auth: bool,
+1 -1
View File
@@ -40,7 +40,7 @@ pub async fn run_status_command() -> anyhow::Result<()> {
if session_path.exists() {
println!("found ({})", session_path.display());
} else {
println!("not found (run `ironclaw setup`)");
println!("not found (run `ironclaw onboard`)");
}
// Secrets
+3 -1
View File
@@ -717,7 +717,9 @@ async fn auth_tool(name: String, dir: Option<PathBuf>, user_id: String) -> anyho
// Initialize secrets store
let config = Config::from_env()?;
let master_key = config.secrets.master_key().ok_or_else(|| {
anyhow::anyhow!("SECRETS_MASTER_KEY not set. Run 'ironclaw setup' first or set it in .env")
anyhow::anyhow!(
"SECRETS_MASTER_KEY not set. Run 'ironclaw onboard' first or set it in .env"
)
})?;
let store = Store::new(&config.database).await?;