Edit a flow as JSON in your editor
Synopsis
Opens a flow as JSON (as printed by 'nova flow get') in your editor and saves it back when you close the editor with changes. An empty file or unchanged content cancels the edit.
The editor is the platform default (e.g. vi), or the one set with 'nova config set editor', e.g. 'nova config set editor "code --wait"' for Visual Studio Code.
Before saving, the instance validates the tree (schema, available actions, globals); --no-validate skips that. If the JSON or the tree is not valid, the editor opens again with your changes. The id can't be changed here ('nova flow push --id' copies a flow).
The flow is only saved if nobody changed it on the instance since it was opened. If it can't be saved, your changes are kept in a file whose path is printed. Scripts and agents use 'nova flow get' and 'nova flow push' instead: this command needs a terminal.
nova flow edit <id> [flags]
Examples
nova flow edit pick-and-place
# with Visual Studio Code
nova config set editor "code --wait"
nova flow edit pick-and-place
# save a work in progress the instance doesn't accept as valid yet
nova flow edit pick-and-place --no-validate
Options
-h, --help help for edit
--no-validate Save without letting the instance validate the tree first
Options inherited from parent commands
--debug Write diagnostic output to stderr: HTTP requests and responses, external commands, the resolved instance. Known secrets are redacted, but bodies (app environments, kubeconfigs) can still contain some: don't share the output unreviewed (env: NOVA_DEBUG=1)
--env string (Wandelbots internal) Portal environment for this invocation: prod, stg or dev (default: the environment of the cloud instance, else of the last 'nova login'; env: NOVA_ENV)
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity (disables TLS verification for all requests)
--instance string Name of the instance to work against for this invocation (overrides the selected instance; env: NOVA_INSTANCE)
-y, --yes Answer yes to questions, e.g. to install NovaFlow when it is missing
SEE ALSO
- nova flow - Manage NovaFlow and its flows on the current cell