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
| Argument | Description |
|---|---|
name | Optional. Environment name. |
Options
| Option | Description |
|---|---|
--hours <n> | Extend by N hours |
--disable | Disable auto-destroy completely |
--enable | Re-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 4Disable Auto-Destroy
# Keep environment running indefinitely
gb extend feature-auth --disableRe-enable Auto-Destroy
# Turn auto-destroy back on
gb extend feature-auth --enableAuto-Destroy Behavior
| Activity | Effect |
|---|---|
| SSH connection | Resets timer |
| HTTP request to service | Resets timer |
gb extend | Resets/extends timer |
| No activity for 58 min | Environment destroyed |
Cost Considerations
- Disabled auto-destroy = continuous billing
- Forgotten environments can be expensive
- Check
gb listregularly - Set up billing alerts
Notes
- Auto-destroy helps prevent unexpected costs
- Consider stopping instead of disabling
- Timer resets on any activity
- Use
gb statusto see remaining time
See Also
gb stop- Pause without destroyinggb status- Check auto-destroy timergb balance- Check credit balance
Last updated on