spacedriveapp/spacedrive · error · anyhow::Error

Invalid action '{}'. Supported: share-local, join-remote, me

Error message

Invalid action '{}'. Supported: share-local, join-remote, merge

What it means

Error "Invalid action '{}'. Supported: share-local, join-remote, merge" thrown in spacedriveapp/spacedrive.

Source

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

						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 {
			local_device_id,
			remote_device_id: remote_device,
			local_library_id: local_library,
			remote_library_id: self.remote_library,
			action,
			leader_device_id,
		})
	}
}

View on GitHub (pinned to 6dfeccf211)

When it happens

Trigger: Thrown at apps/cli/src/domains/library/args.rs:202 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/c5e0fe66441576ff. Report an issue: GitHub.