Skip to content

Add a flow to a project

add(project_path, name, before=None, cli=True)

Add a new flow to the given OneCode project.

Parameters:

Name Type Description Default
project_path str

Path to the root of the existing OneCode project.

required
name str

Name of the new flow to add.

required
before str

Insert the new flow before this flow id. Set it to None to put it in last position.

None
cli bool

Set to False for no interaction.

True

Raises:

Type Description
FileNotFoundError

if the project path is incorrect (i-e OneCode config file not found).

main()

Start a user-interactive CLI to add a new flow to an existing OneCode project.

onecode-add