Loading...
Loading...
Compare original and translation side by side
fcodefcode-core-conceptsfcodefcode-core-conceptsfcode pullfcode addfcode dependencies:installdependencies/package.jsondependencies/requirements.txtfcode run <process-slug>fcode pushstablestablefcode pullfcode addfcode dependencies:installdependencies/package.jsondependencies/requirements.txtfcode run <process-slug>fcode pushstablestablefcode runfcode addfcode addfcode push--forcepushpull--forcevariables.inherited.envfcode pushvariables.envfcode addfcode runfcode addfcode push--forcepushpull--forcevariables.inherited.envfcode pushvariables.envfcode addfcode addrunpushrunpushfcode dependencies:installfcode dependencies:installdependencies/package.jsondependencies/requirements.txtdependencies/package.jsondependencies/requirements.txtfcode run <process-slug> --parameters <filepath | json>fcode run <process-slug> --parameters <filepath | json>variables.envvariables.local.envparameters.jsonfcode run my-process --parameters '{"key": "value"}'
fcode run my-process --parameters ./params.json
fcode run my-process # default parameters.json
fcode run my-process --locale pt-BR # resolve fcode.i18n in that localefcode add--localefcode.i18ni18n/fcode-i18nvariables.envvariables.local.envparameters.jsonfcode run my-process --parameters '{"key": "value"}'
fcode run my-process --parameters ./params.json
fcode run my-process # 默认使用parameters.json
fcode run my-process --locale pt-BR # 以该区域解析fcode.i18nfcode add--localei18n/fcode.i18nfcode-i18nfcode httpfcode http--port3000--auth-user--auth-passwordwebhook.authModemetadata.jsonTEAMwebhookAuthteam.jsonBearer <token>Authorizationvariables.inherited.envvariables.envvariables.local.envTEAM403****************variables.local.env--auth-user--auth-passwordAuthorization--port--auth-user--auth-passwordmetadata.jsonwebhook.authModeteam.jsonwebhookAuthTEAMAuthorizationBearer <token>variables.inherited.envvariables.envvariables.local.envTEAM403****************variables.local.env--auth-user--auth-passwordAuthorizationfcode pullfcode pull--force--forcefcode pushfcode pushfcode addfcode run--forcefcode addfcode run--forcefcode team:pullteam:pushteam:statusfcode team:pullteam:pushteam:statusteam.jsonteam:pullteam:pushteam:statusfcode pullfcode pushteam.jsonteam:pullteam:pushteam:statusfcode pullfcode pushfcode team:versions:*fcode team:aliases:*fcode team:versions:*fcode team:aliases:*fcode-core-conceptsstablefcode team:versions:create v1.0.0 --comment "First stable release"
fcode team:versions:list
fcode team:versions:delete v1.0.0 # cascades; asks confirmation unless --force
fcode team:aliases:set stable v1.0.0 # create or re-point; rollback = older tag
fcode team:aliases:list
fcode team:aliases:delete stableteam:versions:createversions/<tag>/team.jsonteam:versions:deleteteam:aliases:setstablestablefcode-core-conceptsstablefcode team:versions:create v1.0.0 --comment "First stable release"
fcode team:versions:list
fcode team:versions:delete v1.0.0 # 级联删除;除非使用--force,否则会要求确认
fcode team:aliases:set stable v1.0.0 # 创建或重新指向;回滚即指向旧标签
fcode team:aliases:list
fcode team:aliases:delete stableteam:versions:createversions/<tag>/team.jsonteam:versions:deleteteam:aliases:setstablestablefcode i18n:*fcode i18n:*i18n:pulli18n:pushi18n:statusi18n:add <locale>i18n:remove <locale>i18n:reseti18n/<locale>.yamli18n/<locale>.inherited.yamlpullfcode pullpushstatusfcode-i18ni18n:pulli18n:pushi18n:statusi18n:add <locale>i18n:remove <locale>i18n:reseti18n/<locale>.yamli18n/<locale>.inherited.yamlfcode pullpushstatusfcode-i18nmetadata.jsonmetadata.jsonprocesses/<slug>/metadata.jsonpushpullfcode pushfcode status| Field | Type | Meaning |
|---|---|---|
| string | Display name (defaults to the slug) |
| string, optional | Process description |
| string[] | Tags (defaults to |
| object, optional | Webhook trigger: |
| object, optional | Form settings: |
{
"name": "Order sync",
"description": "Syncs Shopify orders into Factorial",
"tags": ["integration", "shopify"],
"webhook": {
"enabled": true,
"authMode": "CUSTOM",
"auth": { "variableKey": "SHOPIFY_WEBHOOK_TOKEN" }
},
"form": { "enabled": false }
}"webhook": { "enabled": true, "authMode": "TEAM" }"webhook": { "enabled": true }{
"name": "Connect your account",
"tags": ["setup"],
"form": { "enabled": true, "authMode": "FACTORIAL", "appRole": "INSTALL" }
}webhook.auth.variableKey403authMode: TEAMwebhookAuthteam.jsonauthMode: TEAMteam.jsonfcode team:pushwebhook.auth.headerNameAuthorizationBearer <token>CookieHostFcode-AuthorizationAuthorizationx-factorial-wh-challengeform.authModeform.appRolewebhook.authModeNONEwebhook.auth.headerNameAuthorization"form": { "enabled": true }"authMode": "NONE"authauthMode: CUSTOMform.appRolemetadata.jsonfcode add{ "name": "<slug>", "tags": [] }processes/<slug>/metadata.jsonpushpullfcode pushfcode status| 字段 | 类型 | 含义 |
|---|---|---|
| string | 显示名称(默认值为slug) |
| string, optional | 流程描述 |
| string[] | 标签(默认值为 |
| object, optional | Webhook触发器: |
| object, optional | 表单设置: |
{
"name": "Order sync",
"description": "Syncs Shopify orders into Factorial",
"tags": ["integration", "shopify"],
"webhook": {
"enabled": true,
"authMode": "CUSTOM",
"auth": { "variableKey": "SHOPIFY_WEBHOOK_TOKEN" }
},
"form": { "enabled": false }
}"webhook": { "enabled": true, "authMode": "TEAM" }"webhook": { "enabled": true }{
"name": "Connect your account",
"tags": ["setup"],
"form": { "enabled": true, "authMode": "FACTORIAL", "appRole": "INSTALL" }
}webhook.auth.variableKey403authMode: TEAMteam.jsonwebhookAuthauthMode: TEAMteam.jsonfcode team:pushwebhook.auth.headerNameAuthorizationBearer <token>CookieHostFcode-AuthorizationAuthorizationx-factorial-wh-challengeform.authModeform.appRolewebhook.authModeNONEwebhook.auth.headerNameAuthorization"form": { "enabled": true }"authMode": "NONE"authauthMode: CUSTOMform.appRolemetadata.jsonfcode add{ "name": "<slug>", "tags": [] }https://code.factorialhr.com/platform/api/<team-slug>/webhooks/<process-slug>version_tagstablecurl -X POST "https://code.factorialhr.com/platform/api/<team-slug>/webhooks/<process-slug>?version_tag=stable"version_tagv1.0.0stableFcode-Version-Tagversion_tagasynclocalelocalefcode-i18nhttps://code.factorialhr.com/platform/api/<team-slug>/webhooks/<process-slug>version_tagstablecurl -X POST "https://code.factorialhr.com/platform/api/<team-slug>/webhooks/<process-slug>?version_tag=stable"version_tagv1.0.0stableFcode-Version-Tagversion_tagasynclocalelocalefcode-i18nteam.jsonteam.jsonfcode team:pullteam:pushteam:statusfcode pushpull| Field | Type | Meaning |
|---|---|---|
| string[] | Teams this workspace inherits processes, modules and variables from (direct parents only, max 5) |
| string, optional | Team timezone (e.g. for schedules) |
| object, optional | |
| object, optional | |
| string, optional | The workspace's main language: the locale used when a caller names none, and the key-level fallback for untranslated keys (see |
| array, pull-only | Workspace versions: |
| array, pull-only | Workspace aliases: |
{
"parentTeamSlugs": ["base-app"],
"zoneId": "Europe/Madrid",
"errorHandlerConfig": { "processSlug": "error-handler", "tag": null },
"webhookAuth": {
"headerName": "x-factorial-wh-challenge",
"variableKey": "FACTORIAL_CHALLENGE_TOKEN"
},
"versions": [
{ "tag": "v1.0.0", "comment": "First stable release", "createdAt": "2026-08-01T10:00:00" }
],
"aliases": [{ "name": "stable", "tag": "v1.0.0" }]
}team.jsonversionsaliasesteam:pullteam:pushteam:versions:*team:aliases:*webhookAuthparentTeamSlugswebhookAuthfcode team:pullteam:pushteam:statusfcode pushpull| 字段 | 类型 | 含义 |
|---|---|---|
| string[] | 该工作区继承流程、模块和变量的团队(仅直接父团队,最多5个) |
| string, optional | 团队时区(例如用于调度) |
| object, optional | |
| object, optional | |
| string, optional | 工作区的主要语言:当调用者未指定区域时使用的区域,以及未翻译键的键级回退(请参考 |
| array, pull-only | 工作区版本: |
| array, pull-only | 工作区别名: |
{
"parentTeamSlugs": ["base-app"],
"zoneId": "Europe/Madrid",
"errorHandlerConfig": { "processSlug": "error-handler", "tag": null },
"webhookAuth": {
"headerName": "x-factorial-wh-challenge",
"variableKey": "FACTORIAL_CHALLENGE_TOKEN"
},
"versions": [
{ "tag": "v1.0.0", "comment": "First stable release", "createdAt": "2026-08-01T10:00:00" }
],
"aliases": [{ "name": "stable", "tag": "v1.0.0" }]
}team.jsonversionsaliasesteam:pullteam:pushteam:versions:*team:aliases:*webhookAuthparentTeamSlugswebhookAuth.env| File | Holds | Synced |
|---|---|---|
| The variables this workspace owns | Committed; pushed and pulled |
| The variables inherited from parent workspaces ( | Pull-only; gitignored (the CLI adds the entry) |
| Local-only overrides | Never pushed, never pulled |
variables.local.envvariables.envvariables.inherited.envvariables.env.env| 文件 | 存储内容 | 同步方式 |
|---|---|---|
| 该工作区拥有的变量 | 可提交;会被推送和拉取 |
| 从父工作区( | 仅可拉取;已加入git忽略(CLI会添加该条目) |
| 仅本地生效的覆盖变量 | 从不推送,从不拉取 |
variables.local.envvariables.envvariables.inherited.envvariables.envvariables.envfcode statusfcode pushfcode variables:addvariables.inherited.envfcode push********variables.envfcode variables:status🔗 <slug>fcode-core-conceptsfcode.variablesfcode-javascriptfcode-pythonvariablesFileNameinheritedVariablesFileNamelocalVariablesFileNamevariables.envfcode statusfcode pushfcode variables:addvariables.inherited.envfcode push********variables.envfcode variables:status🔗 <slug>fcode-core-conceptsfcode.variablesfcode-javascriptfcode-pythonvariablesFileNameinheritedVariablesFileNamelocalVariablesFileNamevariables.meta.jsonvariables.meta.json{
"ACME_API_KEY": { "isSensitive": true },
"ACME_BASE_URL": { "isSensitive": false }
}fcode variables:add --sensitivefcode.variables.setsensitive: falsesensitive=Falsefcode-javascriptfcode-pythonpull********variables.envvariables.inherited.envvariables.local.envfcode-core-conceptsisSensitivevariables.meta.jsonfcode status{
"ACME_API_KEY": { "isSensitive": true },
"ACME_BASE_URL": { "isSensitive": false }
}fcode variables:add --sensitivefcode.variables.setsensitive: falsesensitive=Falsefcode-javascriptfcode-pythonpullvariables.env********variables.inherited.envvariables.local.envfcode-core-conceptsisSensitivevariables.meta.jsonfcode statusfcode runvariables.local.envKEY=valuevariables.local.envvariables.local.envfcode pushFACTORIAL_TOKENvariables.local.envfcode runvariables.local.envKEY=valuevariables.local.envvariables.local.envfcode pushFACTORIAL_TOKENvariables.local.envfcode add
fcode dependencies:install # if dependencies changed
fcode run shopify-order-sync --parameters '{"dateFrom":"2024-01-01","dateTo":"2024-01-31"}'
fcode push # no need to re-run `add` if nothing new was createdfcode push # `add` not needed — process already registeredfcode add
fcode dependencies:install # 如果依赖项有变更
fcode run shopify-order-sync --parameters '{"dateFrom":"2024-01-01","dateTo":"2024-01-31"}'
fcode push # 如果未创建新资源,无需重新运行`add`fcode push # 无需`add`——流程已注册