Skip to main content
Early Access - The Dcycle CLI is currently available for enterprise customers. Contact us to learn more about access.

Overview

Most CLI commands operate within an organization context. You must set an active organization before working with facilities, vehicles, emissions data, etc.

List Organizations

View all organizations you have access to:
Output:
The [current] marker indicates your active organization.

Hierarchy View

Use --show-hierarchy to see the role of each organization in the group:
Output:
Organization types: parent (has children, no parent), child (has parent, no children), intermediate (has both), standalone (neither).

Set Active Organization

Switch your working context to a specific organization:
Output:
If the organization is not found, the CLI suggests alternatives:
The active organization is stored in your config file (~/.config/dcycle/v2/config.yaml) and persists across sessions.

Show Organization Details

View detailed information about a specific organization:
Output:
Without an argument, shows the active organization:

Organization Tree

For holdings with subsidiaries, view the organizational hierarchy:
Output:

Create Organization

Create a new organization:

Valid Sectors


Edit Organization

Update organization details:
Without an org-id argument, edits the active organization.

Invite User

Invite a user to the active organization:
dcy org invite is the same as dcy member invite — both use the same invitation flow.

Bulk Create Child Organizations

Create multiple child organizations from a CSV file:

CSV Format

The CSV must have these columns:
children.csv
Share values above 1 are treated as percentages (e.g. 750.75).

Parent-Child Linking

Link existing organizations into a corporate hierarchy using a two-step workflow: request, then confirm. Send a link request from child organizations to a parent. This triggers email invitations to the parent organization’s owners.
Accept or reject pending link requests (run from the parent organization):

Typical Workflows

Quick Organization Switch for Scripts

Build a Corporate Group

Audit Group Structure


Current Context

Check your current organization context:
The output shows your active organization along with authentication details.

Next Steps

Members

Manage organization members

Facilities

Manage physical locations and their emissions

Invoices

Manage energy invoices for Scope 1 and Scope 2 emissions

Examples

Complete workflow examples

MCP Tools

Query organization data from AI assistants via MCP