Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 1 KB

README.md

File metadata and controls

49 lines (32 loc) · 1 KB

dataworks-cli

A tool to help data engineers and data architects to know about the stuffs locked in Dataworks more clearly and efficiently.

FYI: Dataworks is a service provided by Aliyun. This project is not associated with the Dataworks nor Aliyun.

Usage

Prepare the .env file

Add the following env variables to .env file:

ACCESS_KEY_ID=
ACCESS_KEY_SECRET=
DATAWORKS_PROJECT_ID=
DATAWORKS_ENDPOINT=dataworks.cn-beijing.aliyuncs.com # or other endpoint

Get the file list by file types

dataworks-cli files list -t 10,23  -o files/manifest.json

Download the files from the file list

dataworks-cli files list -t 10,23  -o files/manifest.json

Get the table list by data source

dataworks-cli files download -i files.json -o ./files

Get the DI sync tasks

dataworks-cli di list-sync-tasks -s data-source-name -o di-sync-tasks.json

Get the node list by project env

dataworks-cli nodes list -e PROD -o nodes.json