pgEdge
GitHubGitHub (opens in a new tab)
  • Introduction to pgEdge

  • pgEdge Cloud
    • Getting Started: Choosing a Cloud Edition
      • Getting Started with pgEdge Enterprise Edition
      • Getting Started with pgEdge Developer Edition
      • Linking your Cloud Account
        • Linking an AWS Account
        • Linking an Azure Account
        • Linking a Google Account
      • Adding an SSH Key
    • Cluster Management
      • Creating a Cluster
      • Managing a Cluster
      • Defining a Cluster's Backup Store
      • Managing Firewall Rules
    • Database Management
      • Creating a Database
      • Managing a Database
    • Modifying a Database or a Cluster
      • Using the Actions Menu
      • Adding a Database or Cluster Node
      • Dropping a Database, Node, or Cluster
      • Modifying a Database, Node, or Cluster
    • Database Administration
      • Creating and Managing Tables
      • Using Integrations
      • Reviewing Database Metrics
      • Viewing Log Files
      • Reviewing Backup Details
      • Using PostgreSQL Extensions
    • Connecting to a Database
      • Connecting with ssh
      • Connecting with psql
      • Connecting with pgAdmin
      • Connecting a Custom Client to Developer Edition
      • Connecting over HTTPS
      • Backing up your Database
      • Managing Database Backups on the Cloud
      • Restoring Data to a Database
    • Reviewing Console Tasks
    • Migrating to pgEdge Cloud
      • Taking a Backup
      • Restoring from Backup
    • Settings
    • Team Resources
    • Troubleshooting
  • pgEdge Platform
    • Prerequisites: Preparing your System for pgEdge
      • Supported Operating Systems
      • pgEdge Architecture Models
      • Planning for Active-Active Replication
    • Installing the pgEdge Platform
      • Deploying with a Configuration File
        • Creating and Managing a cluster_name.json File
        • Validating a Cluster Definition File
        • Deploying a Cluster with the cluster Command
      • Manually Deploying a Cluster
      • Creating an Offline Repository
      • Adding a Node to Your Cluster
      • Using Spock to Synchronize a New Node
      • Removing a Node from Your Cluster
      • Configuring Backups with pgBackrest
      • Setting Parameter Values
      • Managing Supported Extensions
      • Finding Cluster Information
      • Accessing the PostgreSQL Server Logs
    • ACE (the Active Consistency Engine)
      • Managing Data Consistency with ACE
      • Installing ACE
      • Using ACE Functions
      • ACE API Endpoints
      • Scheduling ACE Monitoring
    • Automatic DDL Replication
    • Using Snowflake Sequences
    • Creating Custom Filters
    • Managing Replication Exceptions
    • PGEDGE CLI Reference
      • ACE Commands
      • DB Commands
      • CLUSTER Commands
      • LOCALHOST Commands
      • SERVICE Commands
      • SETUP Command
      • SPOCK Commands
      • UPDATE Manager
    • Troubleshooting Replication
    • pgEdge Release Notes
  • The Spock Extension
    • Configuring Spock
      • Node Mgmt
      • Replication Set Mgmt
      • Subscription Mgmt
      • Additional Mgmt Functions
    • Finding Cluster Information
      • Replicating Partitioned Tables
      • Adding a Subscriber with pg_basebackup
      • Using a Trigger to Assign a New Table to a Replication Set
      • Using Batch Inserts
    • Limitations

On This Page

  • LOCALHOST Commands
pgEdge Platform
PGEDGE CLI Reference
LOCALHOST Commands

LOCALHOST Commands

Commands in the localhost module include:

CommandDescription
cluster-createCreate a local cluster. Each node will be located in the cluster/<cluster_name>/<node_name> directory. Each database will have a different port.
cluster-destroyDestroy a local cluster. This will stop PostgreSQL on each node, and then remove the pgedge directory for each node in a local cluster.
CLUSTER CommandsSERVICE Commands

2025 ©pgEdge, Inc.