Restart, redeploy or remove app instances
flux_control_apprestart: restarts containers. redeploy: pulls the image again and recreates containers (hard=true also wipes data). remove: uninstalls from nodes; the registration stays and the network re-spawns it elsewhere, so use flux_cancel_app to stop paying. Scope is one node (nodeIp) or every node running the app (global). Requires the owner key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hard | No | For redeploy: also delete the app data. | |
| name | Yes | ||
| scope | No | global | |
| action | Yes | ||
| nodeIp | No | Required for scope=node; also the node the global command is sent through. | |
| fluxIdPrivateKey | No | WIF private key of the Flux ID that owns the app. Use a dedicated key from flux_generate_keys, never a main wallet key. | |
| paymentPrivateKey | No | WIF private key of the Flux address that pays. Fund it with only what you intend to spend. |