Skip to Content
New to Genbox? Check out our Getting Started guide
Commandsextend

gb extend

Extend the lifetime of a Genbox environment.

Synopsis

gb extend [name] [options]

Description

Extends an environment’s auto-destroy timer or disables auto-destroy entirely. By default, environments auto-destroy after 58 minutes of inactivity.

Arguments

ArgumentDescription
nameOptional. Environment name.

Options

OptionDescription
--hours <n>Extend by N hours
--disableDisable auto-destroy completely
--enableRe-enable auto-destroy

Examples

Extend Timer

# Extend by default amount (1 hour) gb extend feature-auth # Extend by 4 hours gb extend feature-auth --hours 4

Disable Auto-Destroy

# Keep environment running indefinitely gb extend feature-auth --disable

Re-enable Auto-Destroy

# Turn auto-destroy back on gb extend feature-auth --enable

Auto-Destroy Behavior

ActivityEffect
SSH connectionResets timer
HTTP request to serviceResets timer
gb extendResets/extends timer
No activity for 58 minEnvironment destroyed

Cost Considerations

  • Disabled auto-destroy = continuous billing
  • Forgotten environments can be expensive
  • Check gb list regularly
  • Set up billing alerts

Notes

  • Auto-destroy helps prevent unexpected costs
  • Consider stopping instead of disabling
  • Timer resets on any activity
  • Use gb status to see remaining time

See Also

Last updated on