SC26AI agents lab + dinner on the river · Nov 17
Parallel Works

pw billing allocations usage post

pw billing allocations usage post

Record a usage event against an allocation

pw billing allocations usage post <allocation> [flags]

Examples

  pw billing allocations usage post --sku SLURM_CPU_HOUR --quantity 64 \
  --start 2026-06-23T10:00:00Z --end 2026-06-23T14:00:00Z \
  --metadata jobId=12345 --metadata cluster=hpc1 research-team
  
  # Safe to rerun: a repeat with the same key records the event once
  pw billing allocations usage post --idempotency-key job-12345 --sku SLURM_CPU_HOUR \
  --quantity 64 --start 2026-06-23T10:00:00Z --end 2026-06-23T14:00:00Z research-team

Options

      --end string               End time (RFC3339)
  -h, --help                     help for post
      --idempotency-key string   Key that makes retrying safe: a repeat with the same key and payload records the event once
      --metadata stringArray     Repeatable key=value metadata
      --org string               Target organization (defaults to current context)
  -o, --output string            Output format (table, json) (default "table")
      --quantity float           Quantity of usage
      --sku string               SKU code to attribute usage to
      --start string             Start time (RFC3339, e.g. 2026-06-23T10:00:00Z)
      --user string              Attribute usage to this user (org admins only)

Options inherited from parent commands

      --context string         The context to use. Overrides PW_CONTEXT environment variable and current context from config.
      --platform-host string   The Parallel Works ACTIVATE platform host to use. Overrides PW_PLATFORM_HOST environment variable and the current context's server.
  -v, --verbose                Enable verbose logging

SEE ALSO