- build - Build the flogo application
- create - Create a flogo application project
- help - Help about any command
- imports - Manage project dependency imports
- install - Install a flogo contribution/dependency
- list - List installed flogo contributions
- plugin - Manage CLI plugins
- update - Update an application contribution/dependency
--verbose verbose output
This command is used to build the application.
Usage:
flogo build [flags]
Flags:
-e, --embed embed configuration in binary
-f, --file string specify a flogo.json to build
-o, --optimize optimize build
--shim string use shim trigger
Note: the optimize flag removes unused trigger, acitons and activites from the built binary.
Build the current project application
$ flogo buildBuild an application directly from a flogo.json
$ flogo build -f flogo.jsonNote: this command will only generate the application binary for the specified json and can be run outside of a flogo application project
This command is used to create a flogo application project.
Usage:
flogo create [flags] [appName]
Flags:
--cv string specify core library version (ex. master)
-f, --file string specify a flogo.json to create project from
Note: when using the --cv flag to specify a version, the exact version specified might not be used the project. The application will install the version that satisfies all the dependency constraints. Typically this flag is used when trying to use the master version of the core library.
Create a base sample project with a specific name:
$ flogo create my_app
Create a project from an existing flogo application descriptor:
$ flogo create -f myapp.json
This command shows help for any flogo commands.
Usage:
flogo help [command]
Get help for the build command:
$ flogo help buildThis command helps manage project imports of contributions and dependencies.
Usage:
flogo imports [command]
Available Commands:
sync sync Go imports to project imports
resolve resolve project imports to installed version
list list project imports
This command is used to install a flogo contribution or dependency.
Usage:
flogo install [flags] <contribution|dependency>
Flags:
-f, --file string specify contribution bundle
-r, --replace string specify path to replacement contribution/dependency
Install the basic REST trigger:
$ flogo install github.com/project-flogo/contrib/trigger/restInstall a contribution that you are currently developing on your computer:
$ flogo install -r /tmp/dev/myactivity github.com/myuser/myactivityInstall a contribution that is being developed by different person on their fork:
$ flogo install -r github.com/otherusr/myactivity@master github.com/myuser/myactivityThis command lists installed contributions in your application
Usage:
flogo list [flags]
Flags:
--filter string apply list filter [used, unused]
-j, --json print in json format (default true)
--orphaned list orphaned refs
Note orphaned refs are ref entries that use an import alias (ex. "ref": "#log") which has no corresponding import.
List all installed contributions:
$ flogo listList all contributions directly used by the application:
$ flogo list --filter usedNote: the results of this command are the only contributions that will be compiled into your application when using flogo build with the optimize flag
This command is used to install a plugin to the Flogo CLI.
Usage:
flogo plugin [command]
Available Commands:
install install CLI plugin
list list installed plugins
update update plugin
List all installed plugins:
$ flogo plugin listInstall the legacy support plugin:
$ flogo plugin install github.com/project-flogo/legacybridge/cli`Note: more information on the legacy support plugin can be found here
Install and use custom plugin:
$ flogo plugin install github.com/myuser/myplugin
$ flogo `your_command`
More information on Flogo CLI plugins can be found [here](plugins.md)
This command updates a contribution or dependency in the project.
Usage:
flogo update [flags] <contribution|dependency>
Update you log activity to master:
$ flogo update github.com/project-flogo/contrib/activity/log@masterUpdate your flogo core library to latest master:
$ flogo update github.com/project-flogo/core@master