spacedriveapp/spacedrive · error · anyhow::Error

--remote-library is required for merge action

Error message

--remote-library is required for merge action

What it means

Error "--remote-library is required for merge action" thrown in spacedriveapp/spacedrive.

Source

Thrown at apps/cli/src/domains/library/args.rs:190

					})?;
					LibrarySyncAction::ShareLocalLibrary { library_name: name }
				}
				"join-remote" => {
					let remote_library_id = self.remote_library.ok_or_else(|| {
						anyhow::anyhow!("--remote-library is required for join-remote action")
					})?;
					let name = self.name.clone().ok_or_else(|| {
						anyhow::anyhow!("--name is required for join-remote action")
					})?;
					LibrarySyncAction::JoinRemoteLibrary {
						remote_library_id,
						remote_library_name: name,
					}
				}
				"merge" => {
					let local_library_id = local_library;
					let remote_library_id = self.remote_library.ok_or_else(|| {
						anyhow::anyhow!("--remote-library is required for merge action")
					})?;
					let name = self
						.name
						.clone()
						.ok_or_else(|| anyhow::anyhow!("--name is required for merge action"))?;
					LibrarySyncAction::MergeLibraries {
						local_library_id,
						remote_library_id,
						merged_name: name,
					}
				}
				_ => anyhow::bail!(
					"Invalid action '{}'. Supported: share-local, join-remote, merge",
					action_str
				),
			};

		Ok(LibrarySyncSetupInput {

View on GitHub (pinned to 6dfeccf211)

When it happens

Trigger: Thrown at apps/cli/src/domains/library/args.rs:190 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of spacedriveapp/spacedrive@6dfeccf211 (2026-08-16). Data as JSON: /api/errors/4d885e979ca4e2b1. Report an issue: GitHub.