Command Line (DAP CLI)
Access your organization's Instructure data from the command line.
Last updated
Was this helpful?
Access your organization's Instructure data from the command line.
Last updated
Was this helpful?
The Data Access Platform (DAP) CLI is a command-line tool that enables efficient access to large volumes of educational data with high fidelity and low latency. It adheres to a canonical data model and integrates with various educational products.
Built on top of the , DAP CLI allows you to:
Fetch initial snapshots of data.
Track incremental changes.
Initialize and synchronize a supported database with .
Before using DAP CLI, it is recommended to familiarize yourself with the .
For developers, a implementing the Query API is also available. The CLI is essentially a wrapper around this , offering the same robust functionality in a command-line interface for ease of use.
Supported Operating Systems: Ubuntu 22, Windows 11 (via -based Python only), Windows Server 2022 (via -based Python only), MacOS 14+
Supported Database Integrations: PostgreSQL 16.3+, MySQL 8.2+, Microsoft SQL Server 2019+
Supported Python Versions: Python 3.11+
The basic syntax is:
Refer to section in the sidebar for a list of available commands. Or, run the dap --help
command to get this information right in the terminal.
To ensure optimal performance, always use the latest version of DAP CLI. Check your current version with:
To upgrade to the latest version, run:
The default log level is info
, and messages are printed to the console. To change the log level or save logs to a file, use the following parameters:
When executing the DAP CLI from a shell or other script the exit code can be used to determine if there were errors during execution, only the exit code 0
indicates a successful execution.
When executing on multiple tables it might happen that it fails for some tables, in this case the exit code will be non zero even if it failed only on a single table.
DAP CLI follows the . Be mindful of these limits when making requests.
DAP Community
Visit our forums to connect with the community and learn more about DAP.
Support
To report bugs or request new features, open a ticket for our Support Team.