Skip to content

1ctl pricing calculate

Calculate the total cost for a machine over a specified time range.

1ctl pricing calculate
Flag Type Required Default Description
--machine-ref-id string Yes — Machine reference ID (numeric)
--machine-id string Yes — Machine ID (UUID)
--start string Yes — Start time (RFC3339 format)
--end string Yes — End time (RFC3339 format)
--help, -h boolean No — Show help
Terminal window
# Calculate cost using the machine UUID and reference ID
1ctl pricing calculate --machine-id 550e8400-e29b-41d4-a716-446655440000 --machine-ref-id 42 --start 2026-01-01T00:00:00Z --end 2026-02-01T00:00:00Z
# Calculate cost for a shorter time range
1ctl pricing calculate --machine-id 550e8400-e29b-41d4-a716-446655440000 --machine-ref-id 42 --start 2026-01-01T00:00:00Z --end 2026-01-31T23:59:59Z