1 |
|
2 | ## Built.io Flow connector builder
|
3 |
|
4 | Install
|
5 | ``` bash
|
6 | npm i @builtioflow/connector-builder -g
|
7 | ```
|
8 |
|
9 | ## Contents
|
10 | - [Get Started](#get-started)
|
11 | - [Commands](#commands)
|
12 | - [Guide To Creating A New Connector](https://flowdocs.built.io/guide/connector-builder)
|
13 |
|
14 | ## Get Started
|
15 | Built.io Flow connector builder is a Command Line Interface tool for Built.io Flow. It lets you build your own connectors for Built.io flow. Using Built.io Flow connector builder you can deploy your connector to Built.io and share it with others.
|
16 |
|
17 | ## Commands
|
18 | Following are the commands which Built.io Flow connector builder supports.
|
19 |
|
20 | - [flow connectors](#connectors)
|
21 | - [flow auth](#auth)
|
22 | - [flow create](#create)
|
23 | - [flow deploy](#deploy)
|
24 | - [flow download](#download)
|
25 | - [flow help](#help)
|
26 | - [flow history](#history)
|
27 | - [flow init](#init)
|
28 | - [flow login](#login)
|
29 | - [flow logout](#logout)
|
30 | - [flow share](#share)
|
31 | - [flow unshare](#unshare)
|
32 | - [flow versions](#versions)
|
33 | - [flow import](#import)
|
34 | - [flow oauth](#oauth)
|
35 | - [flow attach](#attach-lookup)
|
36 | - [flow detach](#detach-lookup)
|
37 | - [flow collaborate](#collaborate)
|
38 | - [flow postman](#postman)
|
39 |
|
40 |
|
41 |
|
42 |
|
43 | ## connectors
|
44 | Use this command to display all the connectors created by current user.
|
45 | ``` bash
|
46 | flow connectors
|
47 | ```
|
48 | Sample Output:
|
49 |
|
50 | ``` bash
|
51 | | App Name | Version | created_at |
|
52 | |---------- |-----------------| -------------------------|
|
53 | | Github | 1.0 | 2017-06-19T14:22:23.485Z |
|
54 | | Facebook | 2.0 | 2017-06-20T11:11:24.485Z |
|
55 | | Gmail | 2.0 | 2017-06-23T10:03:22.485Z |
|
56 |
|
57 | ```
|
58 | ## auth
|
59 | Use this command to add an authentication for your connector.
|
60 | ``` bash
|
61 | flow auth
|
62 | ```
|
63 |
|
64 | ## create
|
65 | Use this command to add a new trigger, action, lookup.
|
66 | ``` bash
|
67 | flow create trigger new_push
|
68 | flow create action create_user
|
69 | flow create lookup list_users
|
70 | ```
|
71 |
|
72 | ## deploy
|
73 | Use this command for building and deploying the connector on Built.io Flow.
|
74 | ``` bash
|
75 | flow deploy
|
76 | ```
|
77 |
|
78 | ## download
|
79 | Use this command for download a zip file of your connector.
|
80 | ``` bash
|
81 | flow download
|
82 | ```
|
83 |
|
84 |
|
85 |
|
86 | ## help
|
87 | Use this command to list all the commands you can use.
|
88 | ``` bash
|
89 | flow help
|
90 | ```
|
91 |
|
92 | Sample Output:
|
93 |
|
94 | ``` bash
|
95 | | Command | Example | Info |
|
96 | |---------- |--------------------------------------|------------------------------------------------------------|
|
97 | | connectors | flow connectors | Lists all the connectors of the current user |
|
98 | | auth | flow auth | Adds an authentication for your connector |
|
99 | | create | flow create trigger trigger_name | Adds a new trigger, action and lookup |
|
100 | | deploy | flow deploy | Builds and deploys connector on Built.io Flow |
|
101 | | download | flow download | Downloads zip of your connector |
|
102 | | help | flow help | Lists all the commands |
|
103 | | history | flow history | Shows the activity history of your current connector |
|
104 | | init | flow init example | Initializes a new connector |
|
105 | | login | flow login | Login to Built.io Flow account |
|
106 | | logout | flow logout | Logout from Built.io Flow account |
|
107 | | share | flow share | Shares your connector with other Built.io Flow users |
|
108 | | unshare | flow unshare | Unshares your connector from a specific user |
|
109 | | versions | flow versions | Lists all the versions of your current connector |
|
110 | | oauth | flow oauth deploy | Deploy custom user oauth to Built.io Flow |
|
111 | | attach | flow attach lookup | To attach lookup in any specific actions or triggers field |
|
112 | | detach | flow detach lookup | To detach lookup in any specific actions or triggers field |
|
113 | | collaborate | flow collaborate | To collaborate connector with other user |
|
114 | | postman | flow postman [file.json] | To import action from postman collection exported json |
|
115 |
|
116 |
|
117 |
|
118 | ```
|
119 |
|
120 |
|
121 | ## history
|
122 | Use this command to view the complete history of your current connector.
|
123 | ``` bash
|
124 | flow history
|
125 | ```
|
126 |
|
127 | Sample Output:
|
128 |
|
129 | ``` bash
|
130 |
|
131 | | User | Operation | Message | Date & Time |
|
132 | |----------------|-------------------------|------------------------|-----------------------------|
|
133 | | abc@gmail.com | Created trigger | Name: Received email | 2017-06-23T08:51:56.815Z |
|
134 | | abc@gmail.com | Created action | Name: Save draft | 2017-06-23T09:10:22.248Z |
|
135 | | abc@gmail.com | Deployed application | Version: 1 | 2017-06-23T09:10:30.702Z |
|
136 |
|
137 | ```
|
138 |
|
139 |
|
140 | ## init
|
141 | Use this command to create an initial project.
|
142 |
|
143 | ```bash
|
144 | flow init [path] [foldername] --template=minimal
|
145 | flow init example
|
146 | ```
|
147 |
|
148 | - Options
|
149 | * template - Optional template argument. Default `minimal`
|
150 |
|
151 |
|
152 | ## login
|
153 | Use this command for configuring your deploy key and logging into Built.io Flow
|
154 | ``` bash
|
155 | flow login
|
156 | ```
|
157 |
|
158 | ## logout
|
159 | Use this command for deleting access token from your home directory.
|
160 | ``` bash
|
161 | flow logout
|
162 | ```
|
163 |
|
164 |
|
165 | ## share
|
166 | Use this command for sharing your connector with other users.
|
167 | ``` bash
|
168 | flow share
|
169 | ```
|
170 |
|
171 | ## unshare
|
172 | Use this command for unsharing your connector from a specific user.
|
173 | ``` bash
|
174 | flow unshare
|
175 | ```
|
176 |
|
177 | ## versions
|
178 | Use this command for displaying all the versions and their status of the current connector.
|
179 | ``` bash
|
180 | flow versions
|
181 | ```
|
182 | Sample Output:
|
183 |
|
184 | ``` bash
|
185 | | App name | Version | Status |
|
186 | |---------- |:------------: |-----------|
|
187 | | Github | 1 | Published |
|
188 | | | 2 | Pending |
|
189 | -----------------------------------------
|
190 | ```
|
191 |
|
192 | ## import
|
193 | To import all swagger api calls as an action in connector.
|
194 | ``` bash
|
195 | flow import <swagger file path>
|
196 | ```
|
197 |
|
198 | ## oauth
|
199 | To deploy custom user oauth to Built.io Flow
|
200 |
|
201 | ``` bash
|
202 | flow oauth deploy
|
203 | ```
|
204 |
|
205 | ## attach lookup
|
206 | To attach lookup in any specific action's or trigger's input field.
|
207 |
|
208 | ``` bash
|
209 | flow attach lookup
|
210 | ```
|
211 |
|
212 | ## detach lookup
|
213 | To detach lookup in any specific action's or trigger's input field.
|
214 |
|
215 | ``` bash
|
216 | flow detach lookup
|
217 | ```
|
218 |
|
219 | ## collaborate
|
220 | To collaborate connector with other user
|
221 |
|
222 | ``` bash
|
223 | flow collaborate
|
224 | ```
|
225 |
|
226 | ## postman
|
227 |
|
228 | To create actions from postman collections exported json
|
229 |
|
230 | ``` bash
|
231 | flow postman [box-exported-v2.1.json]
|
232 | ``` |
\ | No newline at end of file |