steedos-cli 2.2.52-beta.30 → 2.2.52-beta.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE.txt CHANGED
@@ -11,8 +11,6 @@ If the file has no header, the following rules apply
11
11
 
12
12
  On request, licenses under different terms are available.
13
13
 
14
- Project templates can be found in the folders steedos-projects/
15
-
16
14
  Source code of enterprise features are files that
17
15
  * are in folders named "ee" or start with "ee_", or in subfolders of such folders.
18
16
  * contain the strings "ee_" in its filename name.
package/README.md CHANGED
@@ -57,5 +57,31 @@ steedos run --help
57
57
  - export: 从服务器获取数据生成本地文件。 比如 `steedos data:export -o accounts`或`steedos data:export -o accounts -p`
58
58
  - import: 将本地文件部署到服务器。 比如 `steedos data:import -f accounts.json`或`steedos data:import -p account-plan.json`
59
59
 
60
- ## 功能说明
61
- - 此包用于生成steedos命令
60
+
61
+ ## 检索内置对象的扩展属性
62
+
63
+ ### 方式1: 使用package.yml
64
+ 1 新增package.yml
65
+ ```
66
+ # 例如同步部门的自定义字段、按钮. 新增`steedos-app/package.yml`
67
+ CustomAction:
68
+ - organizations.*
69
+ CustomActionScript:
70
+ - organizations.*
71
+ CustomField:
72
+ - organizations.*
73
+ ```
74
+
75
+ 2 在项目跟路径下执行命令
76
+ ```
77
+ steedos source:retrieve -y ./steedos-app/package.yml
78
+ ```
79
+ ### 方式2: retrieve -m 命令
80
+ 示例1: 同步部门的自定义按钮`btn1`
81
+ ```
82
+ steedos source:retrieve -m CustomAction:organizations.btn1
83
+ ```
84
+ 示例2: 同步部门所有自定义按钮
85
+ ```
86
+ steedos source:retrieve -m CustomAction:organizations.*
87
+ ```
@@ -0,0 +1,255 @@
1
+ "use strict";
2
+
3
+ require('dotenv-flow').config(
4
+ {
5
+ path: process.cwd(),
6
+ silent: true
7
+ });
8
+
9
+ /**
10
+ * Steedos ServiceBroker configuration file
11
+ *
12
+ * More info about options:
13
+ * https://moleculer.services/docs/0.14/configuration.html
14
+ *
15
+ *
16
+ * Overwriting options in production:
17
+ * ================================
18
+ * You can overwrite any option with environment variables.
19
+ * For example to overwrite the "logLevel" value, use `LOGLEVEL=warn` env var.
20
+ * To overwrite a nested parameter, e.g. retryPolicy.retries, use `RETRYPOLICY_RETRIES=10` env var.
21
+ *
22
+ * To overwrite broker’s deeply nested default options, which are not presented in "steedos.config.js",
23
+ * use the `MOL_` prefix and double underscore `__` for nested properties in .env file.
24
+ * For example, to set the cacher prefix to `MYCACHE`, you should declare an env var as `MOL_CACHER__OPTIONS__PREFIX=mycache`.
25
+ * It will set this:
26
+ * {
27
+ * cacher: {
28
+ * options: {
29
+ * prefix: "mycache"
30
+ * }
31
+ * }
32
+ * }
33
+ */
34
+ module.exports = {
35
+ // Namespace of nodes to segment your nodes on the same network.
36
+ namespace: "steedos",
37
+ // Unique node identifier. Must be unique in a namespace.
38
+ nodeID: process.env.NODEID,
39
+ // Custom metadata store. Store here what you want. Accessing: `this.broker.metadata`
40
+ metadata: {},
41
+
42
+ // Enable/disable logging or use custom logger. More info: https://moleculer.services/docs/0.14/logging.html
43
+ // Available logger types: "Console", "File", "Pino", "Winston", "Bunyan", "debug", "Log4js", "Datadog"
44
+ logger: [{
45
+ type: "Console",
46
+ options: {
47
+ // Using colors on the output
48
+ colors: true,
49
+ // Print module names with different colors (like docker-compose for containers)
50
+ moduleColors: false,
51
+ // Line formatter. It can be "json", "short", "simple", "full", a `Function` or a template string like "{timestamp} {level} {nodeID}/{mod}: {msg}"
52
+ formatter: "full",
53
+ // Custom object printer. If not defined, it uses the `util.inspect` method.
54
+ objectPrinter: null,
55
+ // Auto-padding the module name in order to messages begin at the same column.
56
+ autoPadding: false
57
+ }
58
+ },
59
+ {
60
+ type: "File",
61
+ options: {
62
+ // Logging level
63
+ level: "warn",
64
+ // Folder path to save files. You can use {nodeID} & {namespace} variables.
65
+ folder: "./logs",
66
+ // Filename template. You can use {date}, {nodeID} & {namespace} variables.
67
+ filename: "{nodeID}-{date}.log",
68
+ // Line formatter. It can be "json", "short", "simple", "full", a `Function` or a template string like "{timestamp} {level} {nodeID}/{mod}: {msg}"
69
+ formatter: "json",
70
+ // Custom object printer. If not defined, it uses the `util.inspect` method.
71
+ objectPrinter: null,
72
+ // End of line. Default values comes from the OS settings.
73
+ eol: "\n",
74
+ // File appending interval in milliseconds.
75
+ interval: 1 * 1000
76
+ },
77
+ },
78
+ ],
79
+
80
+ // Default log level for built-in console logger. It can be overwritten in logger options above.
81
+ // Available values: trace, debug, info, warn, error, fatal
82
+ logLevel: "warn",
83
+
84
+ // Define transporter.
85
+ // More info: https://moleculer.services/docs/0.14/networking.html
86
+ // Note: During the development, you don't need to define it because all services will be loaded locally.
87
+ // In production you can set it via `TRANSPORTER=nats://localhost:4222` environment variable.
88
+ transporter: function () {
89
+ try {
90
+ return JSON.parse(process.env.STEEDOS_TRANSPORTER);
91
+ } catch (error) {
92
+ return process.env.STEEDOS_TRANSPORTER;
93
+ }
94
+ }(), //process.env.STEEDOS_TRANSPORTER,
95
+
96
+ // Define a cacher.
97
+ // More info: https://moleculer.services/docs/0.14/caching.html
98
+ cacher: function () {
99
+ try {
100
+ return JSON.parse(process.env.STEEDOS_CACHER);
101
+ } catch (error) {
102
+ return process.env.STEEDOS_CACHER;
103
+ }
104
+ }(),
105
+
106
+ // Define a serializer.
107
+ // Available values: "JSON", "Avro", "ProtoBuf", "MsgPack", "Notepack", "Thrift".
108
+ // More info: https://moleculer.services/docs/0.14/networking.html#Serialization
109
+ serializer: "JSON",
110
+
111
+ // Number of milliseconds to wait before reject a request with a RequestTimeout error. Disabled: 0
112
+ requestTimeout: 0,
113
+
114
+ // Retry policy settings. More info: https://moleculer.services/docs/0.14/fault-tolerance.html#Retry
115
+ retryPolicy: {
116
+ // Enable feature
117
+ enabled: false,
118
+ // Count of retries
119
+ retries: 5,
120
+ // First delay in milliseconds.
121
+ delay: 100,
122
+ // Maximum delay in milliseconds.
123
+ maxDelay: 1000,
124
+ // Backoff factor for delay. 2 means exponential backoff.
125
+ factor: 2,
126
+ // A function to check failed requests.
127
+ check: err => err && !!err.retryable
128
+ },
129
+
130
+ // Limit of calling level. If it reaches the limit, broker will throw an MaxCallLevelError error. (Infinite loop protection)
131
+ maxCallLevel: 100,
132
+
133
+ // Number of seconds to send heartbeat packet to other nodes.
134
+ heartbeatInterval: 10,
135
+ // Number of seconds to wait before setting node to unavailable status.
136
+ heartbeatTimeout: 30,
137
+
138
+ // Cloning the params of context if enabled. High performance impact, use it with caution!
139
+ contextParamsCloning: false,
140
+
141
+ // Tracking requests and waiting for running requests before shuting down. More info: https://moleculer.services/docs/0.14/context.html#Context-tracking
142
+ tracking: {
143
+ // Enable feature
144
+ enabled: false,
145
+ // Number of milliseconds to wait before shuting down the process.
146
+ shutdownTimeout: 5000,
147
+ },
148
+
149
+ // Disable built-in request & emit balancer. (Transporter must support it, as well.). More info: https://moleculer.services/docs/0.14/networking.html#Disabled-balancer
150
+ disableBalancer: false,
151
+
152
+ // Settings of Service Registry. More info: https://moleculer.services/docs/0.14/registry.html
153
+ registry: {
154
+ // Define balancing strategy. More info: https://moleculer.services/docs/0.14/balancing.html
155
+ // Available values: "RoundRobin", "Random", "CpuUsage", "Latency", "Shard"
156
+ strategy: "RoundRobin",
157
+ // Enable local action call preferring. Always call the local action instance if available.
158
+ preferLocal: true
159
+ },
160
+
161
+ // Settings of Circuit Breaker. More info: https://moleculer.services/docs/0.14/fault-tolerance.html#Circuit-Breaker
162
+ circuitBreaker: {
163
+ // Enable feature
164
+ enabled: false,
165
+ // Threshold value. 0.5 means that 50% should be failed for tripping.
166
+ threshold: 0.5,
167
+ // Minimum request count. Below it, CB does not trip.
168
+ minRequestCount: 20,
169
+ // Number of seconds for time window.
170
+ windowTime: 60,
171
+ // Number of milliseconds to switch from open to half-open state
172
+ halfOpenTime: 10 * 1000,
173
+ // A function to check failed requests.
174
+ check: err => err && err.code >= 500
175
+ },
176
+
177
+ // Settings of bulkhead feature. More info: https://moleculer.services/docs/0.14/fault-tolerance.html#Bulkhead
178
+ bulkhead: {
179
+ // Enable feature.
180
+ enabled: false,
181
+ // Maximum concurrent executions.
182
+ concurrency: 10,
183
+ // Maximum size of queue
184
+ maxQueueSize: 100,
185
+ },
186
+
187
+ // Enable action & event parameter validation. More info: https://moleculer.services/docs/0.14/validating.html
188
+ validator: true,
189
+
190
+ errorHandler: null,
191
+
192
+ // Enable/disable built-in metrics function. More info: https://moleculer.services/docs/0.14/metrics.html
193
+ metrics: {
194
+ enabled: false,
195
+ // Available built-in reporters: "Console", "CSV", "Event", "Prometheus", "Datadog", "StatsD"
196
+ reporter: {
197
+ type: "Prometheus",
198
+ options: {
199
+ // HTTP port
200
+ port: 3030,
201
+ // HTTP URL path
202
+ path: "/metrics",
203
+ // Default labels which are appended to all metrics labels
204
+ defaultLabels: registry => ({
205
+ namespace: registry.broker.namespace,
206
+ nodeID: registry.broker.nodeID
207
+ })
208
+ }
209
+ }
210
+ },
211
+
212
+ // Enable built-in tracing function. More info: https://moleculer.services/docs/0.14/tracing.html
213
+ tracing: {
214
+ enabled: false,
215
+ // Available built-in exporters: "Console", "Datadog", "Event", "EventLegacy", "Jaeger", "Zipkin"
216
+ exporter: {
217
+ type: "Console", // Console exporter is only for development!
218
+ options: {
219
+ // Custom logger
220
+ logger: null,
221
+ // Using colors
222
+ colors: true,
223
+ // Width of row
224
+ width: 100,
225
+ // Gauge width in the row
226
+ gaugeWidth: 40
227
+ }
228
+ }
229
+ },
230
+
231
+ // Register custom middlewares
232
+ middlewares: [],
233
+
234
+ // Register custom REPL commands.
235
+ replCommands: null,
236
+
237
+ // Called after broker created.
238
+ created(broker) {
239
+ // Clear all cache entries
240
+ broker.logger.warn('Clear all cache entries on startup.')
241
+ broker.cacher.clean();
242
+ const objectql = require(require.resolve('@steedos/objectql', {paths: [process.cwd()]}));
243
+ objectql.broker.init(broker);
244
+ },
245
+
246
+ // Called after broker started.
247
+ started(broker) {
248
+
249
+ },
250
+
251
+ // Called after broker stopped.
252
+ stopped(broker) {
253
+
254
+ }
255
+ };
@@ -0,0 +1,113 @@
1
+ datasources:
2
+ default:
3
+ connection:
4
+ url: ${MONGO_URL}
5
+ objectFiles:
6
+ - "./steedos-app/**"
7
+ public:
8
+ cfs:
9
+ store: ${STEEDOS_CFS_STORE}
10
+ templateSpaceId: 'template'
11
+ webservices:
12
+ jsreport:
13
+ url: ${JSREPORT_URL}
14
+ urlProvideForJsreport: ${JSREPORT_TO_ACQUIRE_DATA_URL}
15
+ app_exchange:
16
+ url: ${STEEDOS_APP_EXCHANGE_URL}
17
+ page:
18
+ assetUrls: ${STEEDOS_PUBLIC_PAGE_ASSETURLS}
19
+ unpkgUrl: ${STEEDOS_PUBLIC_PAGE_UNPKGURL}
20
+ cfs:
21
+ store: ${STEEDOS_CFS_STORE}
22
+ local:
23
+ folder: ${STEEDOS_STORAGE_DIR}
24
+ aliyun:
25
+ region: ${STEEDOS_CFS_ALIYUN_REGION}
26
+ bucket: ${STEEDOS_CFS_ALIYUN_BUCKET}
27
+ folder: ${STEEDOS_CFS_ALIYUN_FOLDER}
28
+ accessKeyId: ${STEEDOS_CFS_ALIYUN_ACCESSKEYID}
29
+ secretAccessKey: ${STEEDOS_CFS_ALIYUN_SECRETACCESSKEY}
30
+ aws:
31
+ endpoint: ${STEEDOS_CFS_AWS_S3_ENDPOINT}
32
+ bucket: ${STEEDOS_CFS_AWS_S3_BUCKET}
33
+ accessKeyId: ${STEEDOS_CFS_AWS_S3_ACCESS_KEY_ID}
34
+ secretAccessKey: ${STEEDOS_CFS_AWS_S3_SECRET_ACCESS_KEY}
35
+ s3ForcePathStyle: ${STEEDOS_CFS_AWS_S3_FORCE_PATH_STYLE}
36
+ signatureVersion: ${STEEDOS_CFS_AWS_S3_SIGNATURE_VERSION}
37
+ steedosCloud:
38
+ region: ${STEEDOS_CFS_CLOUD_REGION}
39
+ bucket: ${STEEDOS_CFS_CLOUD_BUCKET}
40
+ endpoint: ${STEEDOS_CFS_CLOUD_ENDPOINT}
41
+ accessKeyId: ${STEEDOS_CFS_CLOUD_ACCESSKEYID}
42
+ secretAccessKey: ${STEEDOS_CFS_CLOUD_SECRETACCESSKEY}
43
+ tenant:
44
+ _id: ${STEEDOS_CLOUD_SPACE_ID}
45
+ name: 华炎魔方
46
+ logo_url: ${STEEDOS_TENANT_LOGO_URL}
47
+ logo_square_url: ${STEEDOS_TENANT_LOGO_SQUARE_URL}
48
+ background_url: ${STEEDOS_TENANT_BACKGROUND_URL}
49
+ enable_activation: ${STEEDOS_TENANT_ENABLE_ACTIVATION} # 启用初始化向导
50
+ enable_register: ${STEEDOS_TENANT_ENABLE_REGISTER} # 启用注册功能 true / false
51
+ enable_forget_password: ${STEEDOS_TENANT_ENABLE_FORGET_PASSWORD}
52
+ enable_create_tenant: ${STEEDOS_TENANT_ENABLE_CREATE_TENANT}
53
+ enable_password_login: ${STEEDOS_TENANT_ENABLE_PASSWORD_LOGIN}
54
+ enable_mobile_code_login: ${STEEDOS_TENANT_ENABLE_MOBILE_CODE_LOGIN}
55
+ enable_email_code_login: ${STEEDOS_TENANT_ENABLE_EMAIL_CODE_LOGIN}
56
+ enable_bind_email: ${STEEDOS_TENANT_ENABLE_BIND_EMAIL}
57
+ enable_bind_mobile: ${STEEDOS_TENANT_ENABLE_BIND_MOBILE}
58
+ tokenSecret: ${STEEDOS_TENANT_TOKEN_SECRET} # 默认值 43位字符串, 每次重启服务时生成新的值
59
+ accessTokenExpiresIn: ${STEEDOS_TENANT_ACCESS_TOKEN_EXPIRES_IN} # 默认值 90d
60
+ refreshTokenExpiresIn: ${STEEDOS_TENANT_REFRESH_TOKEN_EXPIRES_IN} # 默认值 7d
61
+ sms:
62
+ qcloud:
63
+ smsqueue_interval: 1000
64
+ sdkappid: ${STEEDOS_SMS_QCLOUD_SDKAPPID}
65
+ appkey: ${STEEDOS_SMS_QCLOUD_APPKEY}
66
+ signname: ${STEEDOS_SMS_QCLOUD_SIGNNAME}
67
+ email:
68
+ from: ${MAIL_FROM}
69
+ url: ${MAIL_URL}
70
+ signname: ${MAIL_SIGNNAME}
71
+ cron:
72
+ instancerecordqueue_interval: 10000
73
+ mailqueue_interval: 10000
74
+ # push_interval: 1000
75
+ webhookqueue_interval: 1000
76
+ build_index: "0 0 * * * *"
77
+ instances_stat:
78
+ schedule: ${STEEDOS_INSTANCES_STAT_SCHEDULE}
79
+ dingtalk:
80
+ api_Key: ${APIKEY}
81
+ log_path: ${DING_LOGPATH}
82
+ qywx:
83
+ api_Key: ${APIKEY}
84
+ log_path: ${QYWX_LOGPATH}
85
+ push:
86
+ apn:
87
+ keyData: ${STEEDOS_PUSH_APN_DATA}
88
+ certData: ${STEEDOS_PUSH_APN_DATA}
89
+ gcm:
90
+ apiKey: xxx
91
+ xinge:
92
+ accessId: ${STEEDOS_PUSH_XINGE_ACCESSID}
93
+ secretKey: ${STEEDOS_PUSH_XINGE_SECRETKEY}
94
+ huawei:
95
+ appId: ${STEEDOS_PUSH_HUAWEI_APPID}
96
+ appSecret: ${STEEDOS_PUSH_HUAWEI_APPSECRET}
97
+ appPkgName: ${STEEDOS_PUSH_HUAWEI_APPPKGNAME}
98
+ mi:
99
+ appSecret: ${STEEDOS_PUSH_MI_APPSECRET}
100
+ production: ${STEEDOS_PUSH_MI_PRODUCTION}
101
+ pay:
102
+ weixin:
103
+ appid: ${PAY_WEIXIN_APPID}
104
+ mch_id: ${PAY_WEIXIN_MCH_ID}
105
+ partner_key: ${PAY_WEIXIN_PARTNER_KEY}
106
+ sso:
107
+ oidc:
108
+ config_url: ${SSO_OIDC_CONFIG_URL}
109
+ client_id: ${SSO_OIDC_CLIENT_ID}
110
+ client_secret: ${SSO_OIDC_CLIENT_SECRET}
111
+ name: ${SSO_OIDC_NAME}
112
+ logo: ${SSO_OIDC_LOGO}
113
+ require_local_account: ${SSO_OIDC_REQUIRE_LOCAL_ACCOUNT}
@@ -1 +1 @@
1
- {"version":"2.2.52-beta.30","commands":{"i18n":{"id":"i18n","description":"sync i18n resources","pluginName":"steedos-cli","pluginType":"core","aliases":[],"flags":{"serverDir":{"name":"serverDir","type":"option","char":"s","description":"Steedos Server Dir"},"packageDir":{"name":"packageDir","type":"option","char":"p","description":"Steedos Package Dir"}},"args":[{"name":"name","description":"language","required":true}]},"start":{"id":"start","description":"run steedos projects","pluginName":"steedos-cli","pluginType":"core","aliases":[],"flags":{"repl":{"name":"repl","type":"boolean","char":"r","description":"If true, it switches to REPL mode after broker started.","allowNo":false},"silent":{"name":"silent","type":"boolean","char":"s","description":"Disable the broker logger. It prints nothing to the console.","allowNo":false},"hot":{"name":"hot","type":"boolean","char":"h","description":"Hot reload services when they change.","allowNo":false},"config":{"name":"config","type":"option","char":"c","description":"Load configuration file from a different path or a different filename.","default":"steedos.config.js"},"env":{"name":"env","type":"boolean","char":"e","description":"Load environment variables from the ‘.env’ file from the current folder.","allowNo":false},"envfile":{"name":"envfile","type":"option","char":"E","description":"Load environment variables from the specified file."},"instances":{"name":"instances","type":"option","char":"i","description":"Launch [number] node instances or max for all cpu cores (with cluster module)"}},"args":[{"name":"servicePaths","description":"service files or directories or glob masks","required":false,"default":""}]},"auth:login":{"id":"auth:login","pluginName":"steedos-cli","pluginType":"core","aliases":[],"flags":{"username":{"name":"username","type":"option","char":"u","description":"user"},"password":{"name":"password","type":"option","char":"p","description":"password"}},"args":[]},"data:export":{"id":"data:export","pluginName":"steedos-cli","pluginType":"core","aliases":[],"flags":{"objectName":{"name":"objectName","type":"option","char":"o","description":"objectName","required":true},"ids":{"name":"ids","type":"option","char":"i","description":"ids"},"fields":{"name":"fields","type":"option","char":"f","description":"fields"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"Directory to store generated files."},"prefix":{"name":"prefix","type":"option","char":"x","description":"Prefix of generated files."},"plan":{"name":"plan","type":"boolean","char":"p","description":"Generates multiple sObject tree files and a plan definition file for aggregated import.","allowNo":false}},"args":[]},"data:import":{"id":"data:import","pluginName":"steedos-cli","pluginType":"core","aliases":[],"flags":{"sobjectfiles":{"name":"sobjectfiles","type":"option","char":"f","description":"Paths of JSON files containing a collection of record to insert. Either --sobjecttreefiles or --plan is required."},"plan":{"name":"plan","type":"option","char":"p","description":"Path to plan to insert multiple data files that have master-detail relationships. Either --sobjecttreefiles or --plan is required."}},"args":[]},"package:build":{"id":"package:build","pluginName":"steedos-cli","pluginType":"core","aliases":[],"flags":{"appPath":{"name":"appPath","type":"option","char":"p","description":"appPath","required":true},"packageName":{"name":"packageName","type":"option","char":"n","description":"package name"},"loglevel":{"name":"loglevel","type":"option","char":"l","description":"(debug|info|warn) [default: warn] logging level for this command invocation"}},"args":[]},"source:config":{"id":"source:config","pluginName":"steedos-cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"source:convert":{"id":"source:convert","pluginName":"steedos-cli","pluginType":"core","aliases":[],"flags":{"oldFilesPath":{"name":"oldFilesPath","type":"option","char":"o","description":"oldFilesPath","required":true},"targetPath":{"name":"targetPath","type":"option","char":"t","description":"targetPath","required":true}},"args":[]},"source:delete":{"id":"source:delete","pluginName":"steedos-cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"source:deploy":{"id":"source:deploy","description":" Use this command to deploy source (metadata that’s in source format)\nTo deploy metadata that’s in metadata format, use \"steedos source:deploy\".\n\nThe source you deploy overwrites the corresponding metadata on the server. This command does not attempt to merge your source with the versions on the server.\n\nExamples:\n\nTo deploy the source files in a directory:\n $ steedos source:deploy -p path/to/source\nTo deploy a specific custom object and the objects whose source is in a directory:\n $ steedos source:deploy -p \"path/to/custom/objects/myObject.object.yml\"\nor\"\n $ steedos source:deploy -p \"path/to/source/objects/my_object\"\n\n","pluginName":"steedos-cli","pluginType":"core","aliases":[],"flags":{"sourcePath":{"name":"sourcePath","type":"option","char":"p","description":"Submit the local file under the path to the server"}},"args":[]},"source:retrieve":{"id":"source:retrieve","description":"Use this command to retrieve source (metadata that’s in source format)\nTo retrieve metadata that’s in metadata format, use \"steedos source:retrieve\".\n\nThe source you retrieve overwrites the corresponding source files in your local project. This command does not attempt to merge the source from your org with your local source files.\n\nExamples:\n\nTo retrieve the source files in a directory:\n $ steedos source:retrieve -p path/to/source\nTo retrieve a specific Custom object and the objects whose source is in a directory:\n $ steedos source:retrieve -p \"path/to/custom/objects/myObject.object.yml\"\nor\n $ steedos source:retrieve -p \"path/to/source/objects/my_object\"\nTo retrieve all Custom objects:\n $ steedos source:retrieve -m CustomObject\nTo retrieve a specific Custom object:\n $ steedos source:retrieve -m CustomObject:myObject\n\nTo retrieve all metadata components listed in a manifest:\n $ steedos source:retrieve -y path/to/package.yml\n\n\nMetaDataList:\n[\"ApprovalProcess\",\"Chart\",\"CustomAction\",\"CustomApplication\",\"CustomField\",\"CustomListview\",\"CustomObject\",\"CustomPermission\",\"CustomPermissionset\",\"CustomProfile\",\"CustomReport\",\"CustomValidationRule\",\"Flow\",\"FlowRole\",\"Layout\",\"Page\",\"Process\",\"Query\",\"RestrictionRule\",\"Role\",\"ShareRule\",\"Tab\",\"Workflow\"]\n","pluginName":"steedos-cli","pluginType":"core","aliases":[],"flags":{"serverDir":{"name":"serverDir","type":"option","char":"p","description":"generate request according to the path and update it"},"manifest":{"name":"manifest","type":"option","char":"y","description":"file path for manifest (package.yml) of components to deploy"},"metadata":{"name":"metadata","type":"option","char":"m","description":"metadata"}},"args":[]}}}
1
+ {"version":"2.2.52-beta.36","commands":{"i18n":{"id":"i18n","description":"sync i18n resources","pluginName":"steedos-cli","pluginType":"core","aliases":[],"flags":{"serverDir":{"name":"serverDir","type":"option","char":"s","description":"Steedos Server Dir"},"packageDir":{"name":"packageDir","type":"option","char":"p","description":"Steedos Package Dir"}},"args":[{"name":"name","description":"language","required":true}]},"start":{"id":"start","description":"run steedos projects","pluginName":"steedos-cli","pluginType":"core","aliases":[],"flags":{"repl":{"name":"repl","type":"boolean","char":"r","description":"If true, it switches to REPL mode after broker started.","allowNo":false},"silent":{"name":"silent","type":"boolean","char":"s","description":"Disable the broker logger. It prints nothing to the console.","allowNo":false},"hot":{"name":"hot","type":"boolean","char":"h","description":"Hot reload services when they change.","allowNo":false},"config":{"name":"config","type":"option","char":"c","description":"Load configuration file from a different path or a different filename.","default":"steedos.config.js"},"env":{"name":"env","type":"boolean","char":"e","description":"Load environment variables from the ‘.env’ file from the current folder.","allowNo":false},"envfile":{"name":"envfile","type":"option","char":"E","description":"Load environment variables from the specified file."},"instances":{"name":"instances","type":"option","char":"i","description":"Launch [number] node instances or max for all cpu cores (with cluster module)"}},"args":[{"name":"servicePaths","description":"service files or directories or glob masks","required":false,"default":""}]},"auth:login":{"id":"auth:login","pluginName":"steedos-cli","pluginType":"core","aliases":[],"flags":{"username":{"name":"username","type":"option","char":"u","description":"user"},"password":{"name":"password","type":"option","char":"p","description":"password"}},"args":[]},"data:export":{"id":"data:export","pluginName":"steedos-cli","pluginType":"core","aliases":[],"flags":{"objectName":{"name":"objectName","type":"option","char":"o","description":"objectName","required":true},"ids":{"name":"ids","type":"option","char":"i","description":"ids"},"fields":{"name":"fields","type":"option","char":"f","description":"fields"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"Directory to store generated files."},"prefix":{"name":"prefix","type":"option","char":"x","description":"Prefix of generated files."},"plan":{"name":"plan","type":"boolean","char":"p","description":"Generates multiple sObject tree files and a plan definition file for aggregated import.","allowNo":false}},"args":[]},"data:import":{"id":"data:import","pluginName":"steedos-cli","pluginType":"core","aliases":[],"flags":{"sobjectfiles":{"name":"sobjectfiles","type":"option","char":"f","description":"Paths of JSON files containing a collection of record to insert. Either --sobjecttreefiles or --plan is required."},"plan":{"name":"plan","type":"option","char":"p","description":"Path to plan to insert multiple data files that have master-detail relationships. Either --sobjecttreefiles or --plan is required."}},"args":[]},"package:build":{"id":"package:build","pluginName":"steedos-cli","pluginType":"core","aliases":[],"flags":{"appPath":{"name":"appPath","type":"option","char":"p","description":"appPath","required":true},"packageName":{"name":"packageName","type":"option","char":"n","description":"package name"},"loglevel":{"name":"loglevel","type":"option","char":"l","description":"(debug|info|warn) [default: warn] logging level for this command invocation"}},"args":[]},"source:config":{"id":"source:config","pluginName":"steedos-cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"source:convert":{"id":"source:convert","pluginName":"steedos-cli","pluginType":"core","aliases":[],"flags":{"oldFilesPath":{"name":"oldFilesPath","type":"option","char":"o","description":"oldFilesPath","required":true},"targetPath":{"name":"targetPath","type":"option","char":"t","description":"targetPath","required":true}},"args":[]},"source:delete":{"id":"source:delete","pluginName":"steedos-cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"source:deploy":{"id":"source:deploy","description":" Use this command to deploy source (metadata that’s in source format)\nTo deploy metadata that’s in metadata format, use \"steedos source:deploy\".\n\nThe source you deploy overwrites the corresponding metadata on the server. This command does not attempt to merge your source with the versions on the server.\n\nExamples:\n\nTo deploy the source files in a directory:\n $ steedos source:deploy -p path/to/source\nTo deploy a specific custom object and the objects whose source is in a directory:\n $ steedos source:deploy -p \"path/to/custom/objects/myObject.object.yml\"\nor\"\n $ steedos source:deploy -p \"path/to/source/objects/my_object\"\n\n","pluginName":"steedos-cli","pluginType":"core","aliases":[],"flags":{"sourcePath":{"name":"sourcePath","type":"option","char":"p","description":"Submit the local file under the path to the server"}},"args":[]},"source:retrieve":{"id":"source:retrieve","description":"Use this command to retrieve source (metadata that’s in source format)\nTo retrieve metadata that’s in metadata format, use \"steedos source:retrieve\".\n\nThe source you retrieve overwrites the corresponding source files in your local project. This command does not attempt to merge the source from your org with your local source files.\n\nExamples:\n\nTo retrieve the source files in a directory:\n $ steedos source:retrieve -p path/to/source\nTo retrieve a specific Custom object and the objects whose source is in a directory:\n $ steedos source:retrieve -p \"path/to/custom/objects/myObject.object.yml\"\nor\n $ steedos source:retrieve -p \"path/to/source/objects/my_object\"\nTo retrieve all Custom objects:\n $ steedos source:retrieve -m CustomObject\nTo retrieve a specific Custom object:\n $ steedos source:retrieve -m CustomObject:myObject\n\nTo retrieve all metadata components listed in a manifest:\n $ steedos source:retrieve -y path/to/package.yml\n\n\nMetaDataList:\n[\"ApprovalProcess\",\"Chart\",\"CustomAction\",\"CustomApplication\",\"CustomField\",\"CustomListview\",\"CustomObject\",\"CustomPermission\",\"CustomPermissionset\",\"CustomProfile\",\"CustomReport\",\"CustomValidationRule\",\"Flow\",\"FlowRole\",\"Layout\",\"Page\",\"Process\",\"Query\",\"RestrictionRule\",\"Role\",\"ShareRule\",\"Tab\",\"Workflow\"]\n","pluginName":"steedos-cli","pluginType":"core","aliases":[],"flags":{"serverDir":{"name":"serverDir","type":"option","char":"p","description":"generate request according to the path and update it"},"manifest":{"name":"manifest","type":"option","char":"y","description":"file path for manifest (package.yml) of components to deploy"},"metadata":{"name":"metadata","type":"option","char":"m","description":"metadata"}},"args":[]}}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steedos-cli",
3
- "version": "2.2.52-beta.30",
3
+ "version": "2.2.52-beta.36",
4
4
  "description": "Develop and run your enterprise apps in miniutes",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -29,6 +29,8 @@
29
29
  "/bin",
30
30
  "/npm-shrinkwrap.json",
31
31
  "/oclif.manifest.json",
32
+ "/default.steedos.config.js",
33
+ "/default.steedos.settings.yml",
32
34
  "/dist"
33
35
  ],
34
36
  "dependencies": {
@@ -36,7 +38,7 @@
36
38
  "@oclif/command": "^1.5.10",
37
39
  "@oclif/config": "^1.12.8",
38
40
  "@oclif/plugin-help": "^2.1.6",
39
- "@steedos/metadata-core": "2.2.52-beta.30",
41
+ "@steedos/metadata-core": "2.2.52-beta.36",
40
42
  "archiver": "^5.0.2",
41
43
  "chalk": "2.4.2",
42
44
  "change-case": "^3.1.0",
@@ -108,5 +110,5 @@
108
110
  "publishConfig": {
109
111
  "access": "public"
110
112
  },
111
- "gitHead": "bc2c2bc4fb5d851c5bdeb88a38e2e81369cbc566"
113
+ "gitHead": "a6f8fe7b378a50270ddf7999259e26d2da3d42de"
112
114
  }