maton function code get

maton function code get --function <function-id> [flags]

Show the presigned download envelope for a function version: the URL, the bundle’s SHA-256, and its size. One request, and nothing is written to disk.

The URL is valid for ten minutes and must be fetched without an Authorization header — S3 rejects a bearer token sent alongside a presigned signature. To skip both hazards, use maton function code download, which follows the URL for you.

Options

-f, --function <string>
Function ID this resource belongs to (required)
-q, --jq <expression>
Filter JSON output using a jq expression
--json <fields>
Output JSON with the specified fields
-t, --template <string>
Format JSON output using a Go template; see "maton help formatting"
--version <int> (default 0)
Version to describe (the current version when omitted)

Options inherited from parent commands

-p, --profile <string>
Profile to use for this invocation (overrides the active profile; also reads MATON_PROFILE)

ALIASES

maton functions code view, maton function code view

JSON Fields

download_url, sha256, size

Examples

# The current version's envelope
$ maton function code get --function 9f3c1e2a-0b7d-4c11-9d2e-5f6a7b8c9d01

# An older version
$ maton function code get -f 9f3c1e2a-0b7d-4c11-9d2e-5f6a7b8c9d01 --version 2

# Just the URL, for scripting
$ maton function code get -f 9f3c1e2a-0b7d-4c11-9d2e-5f6a7b8c9d01 --jq .download_url

See also