This command is marked as unstable and may change in future releases.
Command: phala cvms init-scripts
Syntax
Description
Show or change the platform init scripts a CVM runs. With only a CVM, it lists the scripts. With a script name andon or off, it turns that script on or off and keeps the others as they are.
Turning a script on or off changes the CVM’s compose, so the CVM restarts. See Init scripts.
Arguments
Pass both
<slug> and <state>, or neither.
Options
Advanced Options
Global Options
Output
Without a script name, the command prints one row per script with the columnsSLUG, SELECTED, SELECTABLE, and REASON. SELECTED says whether the CVM runs the script. SELECTABLE says whether you can turn it on for this CVM, and REASON says why not.
If the script is already in the state you asked for, the command says so and changes nothing.
Examples
- List init scripts
- Turn docker_cleanup on
- Turn docker_cleanup off

