Skip to content
Console
Menu

Getting Started

Authentication

KV Store

sylphx assets assets

Every sylphx assets assets command: its argument, its flags and a run line.

The assets commands of Sylphx Generated Assets, as the CLI spells them: the same calls as the assets API page, typed for the shell. Install, sign in and the grammar are on the CLI index.

#get

Gets an asset.

NAME — the resource's name; a bare id is enough below the linked project.

CLI

Shell
sylphx assets assets get orgs/acme/projects/shop/envs/production/assets/asset

GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/assets/asset · scope assets:read · effect read · Request, response and examples

#list

Lists assets. The filter is limited to kind, state, and review_state.

PARENT — optional: the CLI fills it from the linked project or the key's scope when it is left out.

CLI

Shell
sylphx assets assets list orgs/acme/projects/shop/envs/production

GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/assets · scope assets:read · effect read · Request, response and examples

Flags

FlagTypeWhat it does
--page-sizeintAt most this many; default 50, clamped to 1000.
--page-tokenstringnext_page_token of the previous page.
--filterstringAIP-160 filter, limited to kind, state, and review_state; for example kind = ASSET_KIND_IMAGE AND state = ASSET_STATE_READY.

#export

Exports every servable variant in the environment as one flat, paged manifest, independent of the keys the code declares. Rejected and retired variants are left out unless filter asks for their review_state. The last page carries a digest a client checks to know it holds the whole set.

NAME — the resource's name; a bare id is enough below the linked project.

CLI

Shell
sylphx assets assets export orgs/acme/projects/shop/envs/production

GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/assets:export · scope assets:read · effect read · Request, response and examples

Flags

FlagTypeWhat it does
--page-sizeintAt most this many items; default 100, clamped to 1000.
--page-tokenstringnext_page_token of the previous page.
--filterstringAIP-160 filter, limited to kind and review_state; for example kind = ASSET_KIND_IMAGE. Without a review_state term, rejected and retired variants are left out.

#generate

Records the recipes as assets and generates the variants that are missing. Each call is idempotent and works within a bounded time; call again until pending is 0.

NAME — the resource's name; a bare id is enough below the linked project.

CLI

Shell
sylphx assets assets generate orgs/acme/projects/shop/envs/production

POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/assets:generate · scope assets:write · effect write · Request, response and examples

Flags

FlagTypeWhat it does
--recipesjsonThe recipes the code declares; 1 to 1000. Required. Repeat the flag for each value.
--dry-runboolValidate and print the result without writing (validate_only).

#lock

Returns the assets.lock entries and canonical text for the keys the call names, and only those. A read with a request body, like a query.

NAME — the resource's name; a bare id is enough below the linked project.

CLI

Shell
sylphx assets assets lock orgs/acme/projects/shop/envs/production

POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/assets:lock · scope assets:read · effect read · Request, response and examples

Flags

FlagTypeWhat it does
--keysstringThe logical keys the code declares, 1 to 5000, each 16 lowercase hex characters. The lock holds only these, so a removed recipe drops out. Required. Repeat the flag for each value.

#approve-variant

Approves one variant and records who approved it.

NAME — the resource's name; a bare id is enough below the linked project.

CLI

Shell
sylphx assets assets approve-variant orgs/acme/projects/shop/envs/production/assets/asset

POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/assets/asset:approveVariant · scope assets:write · effect write · Request, response and examples

Flags

FlagTypeWhat it does
--content-hashstringThe content hash of the variant, 64 lowercase hex characters. Required.

#reject-variant

Rejects one variant. Its slot is freed and the next :generate fills it; the rejected file keeps serving at its URL.

NAME — the resource's name; a bare id is enough below the linked project.

CLI

Shell
sylphx assets assets reject-variant orgs/acme/projects/shop/envs/production/assets/asset

POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/assets/asset:rejectVariant · scope assets:write · effect write · Request, response and examples

Flags

FlagTypeWhat it does
--content-hashstringThe content hash of the variant, 64 lowercase hex characters. Required.

#retire-variant

Retires one variant. Its URL answers 404 from then on and its slot is freed.

NAME — the resource's name; a bare id is enough below the linked project.

CLI

Shell
sylphx assets assets retire-variant orgs/acme/projects/shop/envs/production/assets/asset --yes

POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/assets/asset:retireVariant · scope assets:write · effect destructive · Request, response and examples

Flags

FlagTypeWhat it does
--content-hashstringThe content hash of the variant, 64 lowercase hex characters. Required.
--reasonstringWhy the variant is retired, at most 500 characters.
--yesboolDo not ask before this destructive call.