hjk stop
Stop the container associated with an instance.
Synopsis
hjk stop <branch>
Description
Stops the container associated with the specified instance. The worktree is preserved and the instance can be resumed later with hjk run.
This command is useful for freeing up system resources when an instance is not actively being used. All session state within the container is lost, but the git worktree with your code changes remains intact.
Arguments
| Argument | Description |
|---|---|
branch | Git branch name of the instance to stop (required) |
Examples
# Stop an instance
hjk stop feat/auth
Behavior
When an instance is stopped:
- The container is stopped but not deleted
- The git worktree remains on disk with all changes
- Session state (running processes, terminal state) is lost
- Running
hjk runon the same branch will restart the container
See Also
- hjk run - Restart a stopped instance
- hjk rm - Remove an instance entirely
- hjk ps - List instances and their status
- hjk recreate - Recreate the container