Commands
After instalation, the dpkit’s command-line tool is available in your terminal under name dp. Please read the Getting Started guide for more information.
Command categories
Section titled “Command categories”The CLI commands are organized into categories named after the main objects they support:
- package
- resource
- dialect
- schema
- table
- file
Each category has its own commands for example the table category:
dp table convertdp table describedp table exploredp table scriptdp table validate
Working with data packages
Section titled “Working with data packages”Usually non-package command support the -p/--package and -r/--resource options to specify the datapackage file path and a resource name to access an object inside a data package.
For example, we can explore a table using this command:
dp table explore table.csvOr this command using an interactive mode:
dp table explore -p datapackage.json# it will ask you to select a resourceOr this command using both the datapackage file path and the resource name making it non-interactive similarly to the plain path-based command:
dp table explore -p datapackage.json -r table