Skip to content

ocloud emulator

ocloud v3.17.3View Markdown

Generated from ocloud 3.17.3. All ocloud commands · Olef Cloud overview · olef commands

Create, boot, attach, snapshot, share, view, and run standalone cloud emulators

Global options (--org, --project-root, --quiet, --redact) apply across commands; see the ocloud command catalog.

Turn a workspace’s emulator into a named cloud emulator, once

Terminal window
ocloud emulator adopt --help
Argument Description
<workspace> Required. The workspace (name or id)
--name Required. The cloud emulator’s name

Attach a running cloud emulator to this machine’s adb and publish an Attachment Record so olef can drive it

Terminal window
ocloud emulator attach --help
Argument Description
<emulator> Required. Cloud emulator name (<name> or cloud:<name>)
--shared Attach although someone else is attached
--port Local adb port (default: a free one from 15600)

Boot a cloud emulator and wait until it has finished starting

Terminal window
ocloud emulator boot --help
Argument Description
<emulator> Required. Cloud emulator name (<name> or cloud:<name>)
--attach Attach it to local adb once running
--no-wait Return once asked, without waiting

Create a cloud emulator: a named device with its own disk, kept while stopped (billed for storage) and booted on a cloud host (billed for compute while it runs)

Terminal window
ocloud emulator create --help
Argument Description
<name> Required. Its name (cloud:<name>)
--profile Device and image, from the catalog (default phone-36)
--image A system image from the catalog, instead of the profile’s
--ram RAM, e.g. 4G or 4096 (MB)
--cores
--disk Disk size, e.g. 16G
--near Place it in this workspace’s zone (fast and free traffic between them)
--zone
--idle-stop-min Stop it after this many minutes without use (default 15)
--max-run-hours Stop a run after this many hours (default 8)
--boot Boot it once created

Delete a stopped cloud emulator and its disk

Terminal window
ocloud emulator delete --help
Argument Description
<emulator> Required. Cloud emulator name (<name> or cloud:<name>)

Detach a cloud emulator from this machine (it keeps running)

Terminal window
ocloud emulator detach --help
Argument Description
<emulator> Required. Cloud emulator name (<name> or cloud:<name>)

List your Olef Cloud emulators and whether each is attached locally

Terminal window
ocloud emulator list --help

A cloud emulator’s boot log (why a boot failed)

Terminal window
ocloud emulator logs --help
Argument Description
<emulator> Required. Cloud emulator name (<name> or cloud:<name>)

Reset a cloud emulator back to its image: apps and data go

Terminal window
ocloud emulator reset --help
Argument Description
<emulator> Required. Cloud emulator name (<name> or cloud:<name>)

Boot and attach a cloud emulator, run a command with OLEF_DEVICE and ANDROID_SERIAL set, and unconditionally detach on exit or signal (D6 crash-safe billing wrapper)

Terminal window
ocloud emulator run --help
Argument Description
<emulator> Required. Cloud emulator name (<name> or cloud:<name>)
--shared Attach although someone else is attached
--stop-on-exit Also stop the cloud emulator when the command finishes (stops compute billing immediately)
<command> Required. Command to run after --

Share a cloud emulator with your org’s members, or stop sharing it

Terminal window
ocloud emulator share --help
Argument Description
<emulator> Required. Cloud emulator name (<name> or cloud:<name>)
--off Stop sharing it

List the saved states

Terminal window
ocloud emulator snapshot list --help
Argument Description
<emulator> Required. Positional argument.

Load a saved state

Terminal window
ocloud emulator snapshot load --help
Argument Description
<emulator> Required. Positional argument.
<name> Required. Positional argument.

Save the running state under a name

Terminal window
ocloud emulator snapshot save --help
Argument Description
<emulator> Required. Positional argument.
<name> Required. Positional argument.

Stop a cloud emulator: its Quick Boot state is saved, compute billing stops

Terminal window
ocloud emulator stop --help
Argument Description
<emulator> Required. Cloud emulator name (<name> or cloud:<name>)

A link to a running cloud emulator’s live viewer, hosted by Olef

Terminal window
ocloud emulator viewer --help
Argument Description
<emulator> Required. Cloud emulator name (<name> or cloud:<name>)
--view Watch only, without tapping or typing