Ctrl K
ComunidadGuías…

scripts/start-local.ps1

Rama main · réplica de lectura del repositorio original.

Archivo original ↗Preguntar a KiBot
param(
  [string]$DataRoot = "$PSScriptRoot\..\.data",
  # Recovery git target is OPT-IN. Supply your OWN private repo to enable
  # encrypted-pack delivery; left empty, no external target is configured.
  [string]$RecoveryGitRepository = ''
)

$ErrorActionPreference = 'Stop'
$reference = 'keychain:Ferryman:recovery'
$env:FERRYMAN_RECOVERY_KEY_REFERENCE = $reference

try {
  cargo run -p ferryman-cli --bin ferryman-key -- verify | Out-Null
} catch {
  Write-Host 'Creating your local recovery key in Windows Credential Manager...'
  cargo run -p ferryman-cli --bin ferryman-key -- bootstrap
}

Write-Host 'Starting a local-only Bridge. Nothing is exposed to the internet.'
$serverArgs = @('-p','ferryman-server','--','--database',"$DataRoot\bridge.db",'--artifacts',"$DataRoot\artifacts",'--workspace-root',"$DataRoot\projects",'--memory-root',"$DataRoot\memory",'--recovery-root',"$DataRoot\recovery")
if ($RecoveryGitRepository) { $serverArgs += @('--recovery-git-repository', $RecoveryGitRepository) }
cargo run @serverArgs