@@ -227,10 +227,34 @@ offer:
227227
228228[ ROFL marketplace ] : https://github.com/oasisprotocol/oasis-sdk/blob/main/docs/rofl/features/marketplace.mdx
229229
230- ## Top-up payment for the machine {#top-up}
230+ ## Manage a deployed ROFL machine {#machine}
231+
232+ Once a ROFL app is deployed, you can manage the machine it's running on using
233+ the ` oasis rofl machine ` subcommands.
234+
235+ ### Show machine information {#machine-show}
236+
237+ To view details about a deployed machine, including its status, expiration,
238+ and any proxy URLs, run ` oasis rofl machine show ` :
239+
240+ ![ code shell] ( ../examples/rofl/machine-show.in.static )
241+
242+ ![ code] ( ../examples/rofl/machine-show.out.static )
243+
244+ If you have published ports in your ` compose.yaml ` , the output will include
245+ a ` Proxy ` section with public URLs to access your services. For more details on
246+ how to configure the proxy and for troubleshooting, see the [ ROFL Proxy]
247+ feature page.
248+
249+ [ ROFL Proxy ] : https://github.com/oasisprotocol/oasis-sdk/blob/main/docs/rofl/features/proxy.mdx
250+
251+ ### Top-up payment for the machine {#machine-top-up}
231252
232253Run ` rofl machine top-up ` to extend the rental of the machine obtained from
233- the [ ROFL marketplace] . The rental is extended under the terms of the original
254+ the [ ROFL marketplace] . You can check the current expiration date of your
255+ machine in the ` Paid until ` field from
256+ the [ ` oasis rofl machine show ` output] ( #machine-show ) .
257+ The rental is extended under the terms of the original
234258offer. Specify the extension period with [ ` --term ` ] [ term-flags ] and
235259[ ` --term-count ` ] [ term-flags ] parameters.
236260
@@ -240,6 +264,41 @@ offer. Specify the extension period with [`--term`][term-flags] and
240264
241265[ term-flags ] : #deploy
242266
267+ ### Show machine logs {#machine-logs}
268+
269+ You can fetch logs from your running ROFL app using ` oasis rofl machine logs ` .
270+
271+ ![ code shell] ( ../examples/rofl/machine-logs.in.static )
272+
273+ :::danger Logs are not encrypted!
274+
275+ While only the app admin can access the logs, they are stored
276+ ** unencrypted on the ROFL node** . In production, make sure
277+ you never print any confidential data to the standard or error outputs!
278+
279+ :::
280+
281+ ### Restart a machine {#machine-restart}
282+
283+ To restart a running machine, use ` oasis rofl machine restart ` .
284+
285+ If you wish to clear the machine's persistent storage,
286+ pass the [ ` --wipe-storage ` ] flag.
287+
288+ [ `--wipe-storage` ] : #machine-deploy
289+
290+ ### Stop a machine {#machine-stop}
291+
292+ To stop a machine, use ` oasis rofl machine stop ` .
293+ To start it back again, use [ ` oasis rofl machine restart ` ] .
294+
295+ [ `oasis rofl machine restart` ] : #machine-restart
296+
297+ ### Remove a machine {#machine-remove}
298+
299+ To cancel the rental and permanently remove a machine,
300+ including its persistent storage, use ` oasis rofl machine remove ` .
301+
243302## Advanced
244303
245304### Upgrade ROFL app dependencies {#upgrade}
0 commit comments