CLI Overview
The DataRecs CLI (datarecs) lets you manage workspaces, connections, and jobs from your terminal.
Installation
Section titled “Installation”npm install -g @datarecs/cliAuthentication
Section titled “Authentication”datarecs loginThis opens a browser window for OAuth authentication. Once complete, your session token is stored locally in ~/.datarecs/config.json.
For CI/CD environments, use an API key instead:
export DATARECS_API_KEY=your_api_key_hereConfiguration
Section titled “Configuration”Set your default workspace:
datarecs config set workspace my-workspaceView current config:
datarecs config listCommand structure
Section titled “Command structure”datarecs <resource> <action> [options]Resources: workspace, connection, job, config.
Run datarecs --help or datarecs <resource> --help for full usage details.