Early Access - The Dcycle CLI is currently available for enterprise customers.
Contact us to learn more about access.
Overview
Thehub command manages logistic hubs — distribution centers and logistic nodes used in transport emission calculations.
Available Commands
| Command | Description |
|---|---|
list | List logistic hubs |
show | Show hub details |
create | Create a logistic hub |
edit | Edit a logistic hub |
delete | Delete a logistic hub |
List Hubs
Examples
Flags
| Flag | Short | Default | Description |
|---|---|---|---|
--name | -n | — | Filter by name |
--type | -t | — | Filter by type (owned, subcontracted) |
--category | -c | — | Filter by category (see table below) |
--facility | -f | — | Filter by facility ID |
--status | — | — | Filter by status |
--page | — | 1 | Page number |
--size | — | 50 | Items per page |
--org | — | — | Organization ID override |
Hub Categories
transshipment_ambient, transshipment_mixed, storage_transhipment_ambient, storage_transhipment_mixed, warehouse_ambient, warehouse_mixed, liquid_bulk_terminals_ambient, liquid_bulk_terminals_mixed, maritime_container_terminals_ambient, maritime_container_terminals_temperature_controlled
Output
Show Hub Details
Examples
Flags
| Flag | Description |
|---|---|
--org | Organization ID override |
Output
Create Hub
Examples
Flags
| Flag | Short | Required | Default | Description |
|---|---|---|---|---|
--name | -n | Yes | — | Hub name |
--address | -a | Yes | — | Physical address |
--type | -t | Yes | — | Hub type (owned, subcontracted) |
--category | -c | Yes | — | Hub category (see categories above) |
--country | — | No | — | Country code |
--facility | — | No | — | Associated facility ID |
--supercharger | — | No | false | Has supercharger (electric charging) |
--org | — | No | — | Organization ID override |
Edit Hub
Examples
Flags
Accepts the same flags ascreate (all optional). Additionally:
| Flag | Description |
|---|---|
--no-supercharger | Set supercharger to false |
Delete Hub
Examples
Flags
| Flag | Short | Default | Description |
|---|---|---|---|
--yes | -y | false | Skip confirmation prompt |
--org | — | — | Organization ID override |
Output
Confirmation prompt:Common Options
All hub commands support:| Flag | Description |
|---|---|
--format json | JSON output (default: text) |
--verbose | Show HTTP request/response details |
--timeout | Request timeout in seconds |