Skip to content

cg api file-servlet

The file-servlet service endpoint. See cg api for how these relate to the higher-level commands.

Every command also accepts -h / --help.

cg api file-servlet

Download a file by server object ID (the fileservlet servlet).

usage: cg api file-servlet [-h] [--format FORMAT] [--timestamp TIMESTAMP] ID

Arguments

  • ID — Server file ID number.

Options

  • --format FORMAT — Optional format string to append to the URL as a query parameter; e.g., 'puzzle_tile'.
  • --timestamp TIMESTAMP — Optional timestamp. Can be milliseconds since epoch (e.g., '1680000000000'), a duration string (e.g., '1h30m'), a relative duration from now (e.g., '-1h30m'), or an ISO 8601 datetime string.

Generated from the parser itself. For when to use these, see the CLI guides.