The ready command allows you to specify a command that will determine template sandbox readiness before a snapshot is created. It is executed in an infinite loop until it returns a successful exit code 0. This way you can control how long should we wait for the start command or any system state.Documentation Index
Fetch the complete documentation index at: https://e2b-mintlify-docs-rewrite-anthropic-quickstart-22165.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
How to add ready command
When you are building a sandbox template you can specify the ready command by using the--ready-cmd option:
Sandbox template config
You can specify the ready command inside thee2b.toml in the same directory where you run e2b template build.
Default values
By default, the ready command is set tosleep 0, which means the sandbox template will be ready immediately.
If the start command is defined, the default is set to sleep 20, which means that the template sandbox will wait for 20 seconds before taking the snapshot.