mirror of
https://github.com/DeBrosOfficial/orama.git
synced 2026-03-17 20:06:59 +00:00
- Deleted redeploy.sh, which handled redeployment to nodes in devnet/testnet environments. - Removed upgrade-nodes.sh, responsible for rolling upgrades of nodes. - Eliminated upload-source-fanout.sh, which uploaded source archives to nodes in parallel. - Removed upload-source.sh, used for uploading and extracting source archives to VPS nodes.
26 lines
850 B
Go
26 lines
850 B
Go
package node
|
|
|
|
import (
|
|
"github.com/DeBrosOfficial/network/pkg/cli/production/clean"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var cleanCmd = &cobra.Command{
|
|
Use: "clean",
|
|
Short: "Clean (wipe) remote nodes for reinstallation",
|
|
Long: `Remove all Orama data, services, and configuration from remote nodes.
|
|
Anyone relay keys at /var/lib/anon/ are preserved.
|
|
|
|
This is a DESTRUCTIVE operation. Use --force to skip confirmation.
|
|
|
|
Examples:
|
|
orama node clean --env testnet # Clean all testnet nodes
|
|
orama node clean --env testnet --node 1.2.3.4 # Clean specific node
|
|
orama node clean --env testnet --nuclear # Also remove shared binaries
|
|
orama node clean --env testnet --force # Skip confirmation`,
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
clean.Handle(args)
|
|
},
|
|
DisableFlagParsing: true,
|
|
}
|