Agent commands

asc pass-type-ids commands: create, list, update and delete Wallet pass type IDs and list their certificates.

asc pass-type-ids manages the Wallet pass type IDs of the connected Apple team. Create a pass certificate for one with asc certificates create --certificate-type PASS_TYPE_ID --pass-type-id "ABC123" --csr ./pass.csr (see asc certificates). Picking an Apple team, output, pagination, --confirm and exit codes work as described on the asc page; the flag tables below leave out --output, --pretty, --limit, --next, --paginate and the --fields / --…-fields flags, which are explained there.

Notes that apply to the whole page:

  • --pass-type-id is the resource ID from asc pass-type-ids list (its data[].id), not the pass.… identifier.
  • A flag marked “Required” is checked before any request; leaving it out exits 2.
  • Commands that read or change a pass type ID print Apple’s JSON, as described on asc.
Subcommand What it does
list List pass type IDs.
view View a pass type ID by ID.
create Create a pass type ID.
update Update a pass type ID.
delete Delete a pass type ID.
certificates List pass type ID certificates.

list

Lists the Apple team’s pass type IDs, optionally filtered and sorted.

Flag What it does Default
--id Only these pass type IDs, comma-separated. —
--identifier Only these identifiers, such as pass.com.example, comma-separated. —
--name Only these names, comma-separated. —
--sort name, identifier or id, with - for descending. —
--include Adds related resources: certificates. —
--limit-certificates Caps included certificates per pass type ID (1–50). Needs --include certificates. —

--certificate-fields and --limit-certificates are refused without --include certificates. --next can’t be combined with --limit, --limit-certificates or the filter, sort, include or fields flags: the links.next URL already carries them.

Terminal window
asc pass-type-ids list --identifier "pass.com.example" --include certificates

view

Shows one pass type ID.

Flag What it does Default
--pass-type-id Pass type ID. Required. —
--include Adds related resources: certificates. —
--limit-certificates Caps included certificates (1–50). Needs --include certificates. —
Terminal window
asc pass-type-ids view --pass-type-id "ABC123"

create

Creates a pass type ID and prints it.

Flag What it does Default
--identifier The pass type identifier, such as pass.com.example. Required. —
--name A name for the pass type ID. Required. —
Terminal window
asc pass-type-ids create --identifier "pass.com.example" --name "Example Pass"

update

Renames a pass type ID and prints it. The name is the only thing that can be changed.

Flag What it does Default
--pass-type-id Pass type ID. Required. —
--name The new name. Required. —
Terminal window
asc pass-type-ids update --pass-type-id "ABC123" --name "Example Pass"

delete

Deletes a pass type ID and prints id and "deleted": true.

Flag What it does Default
--pass-type-id Pass type ID. Required. —
--confirm Confirms the deletion. Required. false
Terminal window
asc pass-type-ids delete --pass-type-id "ABC123" --confirm

certificates

The certificates issued for a pass type ID.

Subcommand What it does
certificates list List certificates for a pass type ID.
certificates view View certificate relationships for a pass type ID.

certificates list

Lists the certificates of a pass type ID, with their attributes.

Flag What it does Default
--pass-type-id Pass type ID. Required unless --next is given. —
--certificate-type Only these certificate types, such as PASS_TYPE_ID, comma-separated. —
--display-name Only these display names, comma-separated. —
--serial-number Only these serial numbers, comma-separated. —
--id Only these certificate IDs, comma-separated. —
--sort displayName, certificateType, serialNumber or id, with - for descending. —

With --next, the pass type ID is read from the URL; if you also give --pass-type-id, it must match. --next can’t be combined with the filter or sort flags.

Terminal window
asc pass-type-ids certificates list --pass-type-id "ABC123"

certificates view

Prints only the IDs of a pass type ID’s certificates (relationship linkages), without their attributes. With --next, the pass type ID is read from the URL; if you also give --pass-type-id, it must match.

Flag What it does Default
--pass-type-id Pass type ID. Required unless --next is given. —
Terminal window
asc pass-type-ids certificates view --pass-type-id "ABC123" --paginate