curl https://wedata3-platform-bundle-cq-1257305158.cos.ap-chongqing.myqcloud.com/bundle_sh/install.sh | sudo sh
curl.exe -fsSL https://wedata3-platform-bundle-cq-1257305158.cos.ap-chongqing.myqcloud.com/bundle_sh/install.bat -o install.bat && install.bat
curl https://wedata3-platform-bundle-cq-1257305158.cos.ap-chongqing.myqcloud.com/bundle_sh/install.sh | sudo sh -s -- --uninstall
curl.exe -fsSL https://wedata3-platform-bundle-cq-1257305158.cos.ap-chongqing.myqcloud.com/bundle_sh/install.bat -o install.bat && install.bat --uninstall
curl https://wedata3-platform-bundle-cq-1257305158.cos.ap-chongqing.myqcloud.com/bundle_sh/install.sh | sudo sh -s -- --upgrade
curl.exe -fsSL https://wedata3-platform-bundle-cq-1257305158.cos.ap-chongqing.myqcloud.com/bundle_sh/install.bat -o install.bat && install.bat --upgrade
databuddy -vdatabuddy --version
databuddy auth logindatabuddy auth login --host "<workspace-url>"
Parameter | Description | Required |
--host | Target Workspace address | No (the address in the default Profile is used) |
<workspace-url> is the full address of the target Workspace in the DataBuddy console. After logging in to the console and going to the target Workspace, copy the URL from the browser address bar, such as https://databuddy.cloud.tencent.com/workbench?o=<workspace_id>&r=<region_id>. In the URL, o is the Workspace ID and r is the region ID. Both are automatically generated by the console and do not need to be manually assembled.<workspace-url> must be enclosed in double quotation marks. Using single quotation marks causes URL parsing to fail, and omitting quotation marks causes authentication to fail. The address must contain the o= parameter. Otherwise, the following error is displayed: workspace id is empty, 'o' param not found in URL.databuddy auth login directly, the terminal prompts you to enter the configuration name (press Enter to use the current configuration) and the Workspace address in sequence. After a successful login, the terminal displays Verification Success, and the login status remains valid for 7 days.~/.databuddycfg configuration file:[default]host = https://databuddy.cloud.tencent.com/workbench?o=<workspace_id>&r=<region_id>secret_id = <your_secret_id>secret_key = <your_secret_key>project_id = <project_id>user_name = <user_name>user_id = <user_id>region = ap-singaporeis_intl = false
600 (readable and writable only by the current user).databuddy auth describedatabuddy auth describe -p <profile_name>databuddy auth describe --host <sub_account>databuddy auth describe --sensitive
Parameter | Description |
-p | View authentication information of a specified Profile. |
--host | View Profile information of a specified sub-account. |
--sensitive | Output sensitive information (secret_id and secret_key). If not specified, it is displayed as ******. |
databuddy bundle subcommands:Parameter | Description |
-t, --target <string> | Specify the Target (such as dev / staging / prod). |
-p, --profile <string> | Specify the Profile to use. |
--var "<key>=<value>" | Override Bundle variables (supported for validate / deploy / summary / destroy). |
--help | View command help. |
databuddy bundle init
Template | Description | Intended Audience |
SQL | Project skeleton for SQL processing tasks, including example SQL files and workflow configurations | Data development engineers who write SQL for ETL |
Notebook | Project skeleton for Notebook tasks, including example ipynb files | Use Python for complex data processing. |
Minimal | Minimal skeleton containing only databuddy.yml and an empty directory structure | Advanced users who want full customization |
[] is the default value, and you can press Enter directly to use the default configuration. For Compute, you need to manually enter the compute resource name.yiwu_etl/├── databuddy.yml├── src/│ └── sql_example.sql├── resources/│ └── workflow/│ └── sql_example.yml└── README.md
init can run databuddy bundle deploy directly without modifying the configuration. By default, scheduling runs at 00:00 (UTC+8), and the compute resources and runtime account are configured during initialization.databuddy bundle generate workflow --existing-workflow-id <workflow_id>
workflow is the resource type, and --existing-workflow-id specifies the ID of the workflow to pull.Flag | Description |
-t, --target | Specify the Target. |
-p, --profile | Specify the Profile. |
databuddy bundle deployment bind workflow <resource_key> <workflow_id>
<resource_key> is the local resource identifier, and <workflow_id> is the online workflow ID. After binding, you can run deploy to synchronize the local configuration to the workflow.<resource_key> is taken from the key name under resources → workflows in the local resources/workflow/*.yml file. In the following configuration, <resource_key> is workflow_a:resources:workflows:workflow_a: # This key name is <resource_key>name: workflow_a
<workflow_id>, open the target workflow in Data Engineering > Workflow in the DataBuddy console, and then get it from the address bar on the details page or from the workflow properties.Flag | Description |
-t, --target | Specify the Target. |
-p, --profile | Specify the Profile. |
databuddy bundle deployment unbind workflow <resource_key>
<resource_key> is the local resource identifier.Flag | Description |
-t, --target | Specify the Target. |
-p, --profile | Specify the Profile. |
databuddy bundle validate
Flag | Description |
-t, --target | Specify the Target. |
-p, --profile | Specify the Profile. |
--var | Override Bundle variables (see Variable Override (--var) in this document). |
databuddy bundle deploydatabuddy bundle deploy -t devdatabuddy bundle deploy -t prod -p admin_profiledatabuddy bundle deploy --var="database=prod_ods"
Flag | Description |
-t, --target | Specify the Target. |
-p, --profile | Specify the Profile. |
--var | Override Bundle variables (see Variable Override (--var) in this document). |
databuddy bundle run workflow <resource_key> -t devdatabuddy bundle run workflow <resource_key> --params="key1=value1" --params="key2=value2"
<resource_key> is the resource identifier of the workflow to run.Flag | Description |
-t, --target | Specify the Target. |
-p, --profile | Specify the Profile. |
--params | Specify the runtime parameter values in the key=value format. This option can be used multiple times. |
databuddy bundle destroydatabuddy bundle destroy -t dev
Flag | Description |
-t, --target | Specify the Target. |
-p, --profile | Specify the Profile. |
--var | Override Bundle variables. |
destroy operation is irreversible. Before execution, the system lists the resources to be deleted and asks for confirmation.databuddy bundle summarydatabuddy bundle summary -t devdatabuddy bundle summary --var="database=prod_ods"
Flag | Description |
-t, --target | Specify the Target. |
-p, --profile | Specify the Profile. |
--var | Override Bundle variables. |
databuddy bundle --help
--var parameter in the command line to override variable values defined in databuddy.yml without modifying the configuration file.databuddy bundle <command> --var="<key>=<value>" --var="<key>=<value>"databuddy bundle <command> --var="<key>=<value>,<key>=<value>"
Command | Example |
validate | databuddy bundle validate --var="database=prod_ods" |
deploy | databuddy bundle deploy --var="database=prod_ods" |
summary | databuddy bundle summary --var="database=prod_ods" |
destroy | databuddy bundle destroy --var="database=prod_ods" |
# Single variabledatabuddy bundle deploy --var="database=prod_ods"# Multiple variables (use --var repeatedly)databuddy bundle deploy --var="database=prod_ods" --var="engine=presto"# Multiple variables (comma-separated)databuddy bundle deploy --var="database=prod_ods,engine=presto"
--var (highest)resources/databuddy.yml → targetsdatabuddy.yml → variables (lowest)Command | Purpose |
databuddy -v | View the CLI version. |
databuddy auth login | Log In and Authenticate. |
databuddy auth describe | View authentication configuration. |
databuddy bundle init | Initialize a Bundle project (with template selection supported). |
databuddy bundle generate workflow --existing-workflow-id <id> | Pull the workflow to the local environment. |
databuddy bundle deployment bind workflow <key> <id> | Bind a workflow. |
databuddy bundle deployment unbind workflow <key> | Unbind a workflow. |
databuddy bundle validate -t <target> | Validate the Bundle configuration. |
databuddy bundle deploy -t <target> | Deploy a Bundle. |
databuddy bundle deploy --var="key=value" | Override variables during deployment. |
databuddy bundle run workflow <key> -t <target> | Run a workflow. |
databuddy bundle run workflow <key> --params="key=value" | Run a workflow with parameters. |
databuddy bundle destroy -t <target> | Terminate a deployment. |
databuddy bundle summary -t <target> | View the deployment summary. |
databuddy bundle --help | View Help. |
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan