Skip to content

ptkl functions

List and inspect platform functions from the command line.


Overview

ptkl functions provides read-only access to the platform functions defined in your project. Use it to quickly list all functions or retrieve the details of a specific function by name, tag, or UUID.


Subcommands

Subcommand Description
list List all platform functions
get <reference> Get a function by name, tag, or UUID

ptkl functions list

List all platform functions in the current project.

ptkl functions list [options]

Options

Option Description
-f, --format <format> Output format — json or table (default: table)
-o, --output <file> Write output to a file instead of stdout

Example

# table output
ptkl functions list

# JSON output to a file
ptkl functions list --format json --output functions.json

ptkl functions get

Retrieve a single function by its name, tag, or UUID.

ptkl functions get <reference> [options]

Options

Option Description
-f, --format <format> Output format — json or table (default: table)
-o, --output <file> Write output to a file instead of stdout

Example

# by name
ptkl functions get calculate_vat

# JSON output
ptkl functions get calculate_vat --format json

See Also