profile

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProfileCmd = &cobra.Command{
	Use:   "profile",
	Short: "Manage PostgreSQL connection profiles",
	Long: `Manage saved PostgreSQL connection profiles.

Examples:
  # Add a local profile
  pgtransfer profile add local --user postgres --host localhost --database mydb
  
  # Add a profile with SSH tunnel using ssh-agent
  pgtransfer profile add remote --user postgres --host localhost --database mydb --ssh-host example.com --ssh-user myuser
  
  # Add a profile with SSH tunnel using specific key
  pgtransfer profile add remote --user postgres --host localhost --database mydb --ssh-host example.com --ssh-user myuser --ssh-key ~/.ssh/id_rsa
  
  # List all profiles
  pgtransfer profile list
  
  # Set active profile
  pgtransfer profile use local
  
  # Show active profile
  pgtransfer profile active
  
  # Delete a profile
  pgtransfer profile delete remote
`,
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL