ReferenceCLIPg

nevia pg suspend

Put a database to sleep

nevia pg suspend [--wait] [--timeout <DURATION>] [DATABASE]

  • Aliases: sleep

Keeps its data and closes open connections. Run nevia pg awake before connecting.

Arguments

  • [DATABASE] - Database ID or name (optional when the workspace has one database)

Options

  • --wait - Wait for the operation to finish, then print the final state. With --json, prints {<noun>, operation, operations}

  • --timeout <DURATION> - How long --wait waits before exiting 6 (e.g. 10m, 300s)

    Default: 10m

  • -h, --help - Print help

On this page