Early Access - The Dcycle CLI is currently available for enterprise customers.
Contact us to learn more about access.
Overview
My categories (elastic data) are datasets your organization defines itself, for operational data that doesn’t fit a standard emission category: meter readings, supplier scorecards, customer metrics, anything you track in a spreadsheet today. Each dataset has:- Fields (columns), each with a stable
key, a visiblenameand adata_type. - Records (rows), stored as a JSON object keyed by field
key.
dcy elastic manages all three from the terminal. The command is also available as dcy categories and dcy my-categories.
Available Commands
List Datasets
Show a Dataset
--format json to get the full schema, including each field’s options (the allowed values of a select, the unit of a quantity_unit).
Create a Dataset
A dataset starts empty. Create it, then add its fields:Flags
dcy elastic dataset edit <dataset-id> takes the same flags and changes only the ones you pass.
Add Fields
One field at a time with flags:key, name, data_type, required, description, options, default_value):
fields.json
Flags
Data types and options
Data types and options
Edit a Field
Only the flags you pass change. Thekey never changes.
--type only works while no record has a value for the field. For a select field, --options must keep every value already in use. To rename a value, add the new one, move the records, then remove the old one (see Rename a select value).List Records
Flags
Filter syntax (field_key:op:value)
Filter syntax (field_key:op:value)
bt/nbtake a JSON 2-array:amount:bt:[100,200]in/nitake a JSON array:status:in:["open","late"]*:valuesearches every field
dcy elastic dataset show first.Create Records
One record:--file - for stdin):
--format json you get each row’s new id or its error.
Edit a Record
Only the keys you pass change; a key set tonull clears it.
Delete
Typical Workflows
Load a Dataset from a CSV
Convert the CSV to a JSON array keyed by field key, then create the rows in one call:Rename a Select Value
Aselect field only accepts its listed values, and the list must keep every value in use. To rename Churn MRR to Churn across a dataset:
Aliases
Limitations
- User session only. API keys are not accepted; use
dcy auth login. - No folders or project links. Organizing datasets into folders and linking them to projects are done in the app.
- No field type change once the field has values. Create a new field and move the values instead.
Next Steps
MCP Elastic Data Tools
The same operations from an AI assistant
Custom KPIs
KPI definitions that can be built on your datasets