Skip to content

Commit 799067f

Browse files
committed
Add lifecycle commands
1 parent 6d186d2 commit 799067f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ go run cmd/hypeman/main.go
3737
# Pull an image
3838
hypeman pull nginx:alpine
3939

40-
# Boot a VM (auto-pulls image if needed)
40+
# Boot a new VM (auto-pulls image if needed)
4141
hypeman run --name my-app nginx:alpine
4242

4343
# List running VMs
@@ -55,6 +55,16 @@ hypeman exec my-app whoami
5555
# Shell into the VM
5656
hypeman exec -it my-app /bin/sh
5757

58+
# VM lifecycle
59+
# Turn off the VM
60+
hypeman instances stop --id my-app
61+
# Boot the VM that was turned off
62+
hypeman instances start --id my-app
63+
# Put the VM to sleep (paused)
64+
hypeman instances standby --id my-app
65+
# Awaken the VM (resumed)
66+
hypeman instances restore --id my-app
67+
5868
# Create a reverse proxy ("ingress") from the host to your VM
5969
hypeman ingress create --name my-ingress my-app --hostname my-nginx-app --port 80 --host-port 8081
6070

0 commit comments

Comments
 (0)