For a step-by-step walkthrough, see Build your first app.
Create the app#
tringify app create --name "My app" --type standard --distribution private
It prints the app ID, handle, client ID and client secret; the secret is shown only once. The handle is made from the name unless you choose one with --handle, and can't change later. A sales channel app takes --type sales_channel with --category and --subcategory, listed by tringify app categories. See Create an app for which choices are permanent.
Start the project#
tringify app init --app APP_ID
tringify app webhook rotate-key
app init creates a project from the app starter in a new folder named after the app's handle. It writes the app's configuration to tringify.app.json and its block sources to blocks/, with an example block, and adds a release workflow for GitHub Actions. app webhook rotate-key prints the webhook signing secret your app verifies requests with.
Configure and test#
tringify app config check
tringify app config push
tringify app block preview
tringify app webhook test
tringify.app.json holds the app's scopes, URLs, events and features; see The app configuration file. config check runs the platform's checks without saving; config push runs them, shows what changes and replaces the app's draft, so a field left out of the file is cleared. tringify app config pull writes the draft back to the file. block preview shows the app's blocks inside a theme as a store renders them, and webhook test sends a signed app.test to your webhook URL and shows the answer.
Install it on a store#
tringify app install-link --store my-store.mytringify.com
A private app installs its current draft; a marketplace app installs its published version, or with --draft its draft on your organization's development and transfer stores. The expiry choices and defaults come from the Developer API, so they match the Developer Portal.
Release#
tringify app release --notes "New settings page" # private app
tringify app release --bump minor --notes "New settings page" # marketplace app
tringify app publish 1.1.0 # marketplace, once approved
A private app's release goes to every installed store that doesn't have it yet; a store moves to it at once, and one that asks for more access waits for the store's owner to approve it. A marketplace app's release is submitted for review as a new version (--bump, or exactly --version), and app publish makes an approved version available. tringify app versions lists the versions and, for a private app, how many stores have each. See Releases and install links.
Listing, policies and docs#
tringify app listing show lists what the App Store listing still needs before a marketplace submit, and tringify app listing update changes it. Write the privacy policy, terms and docs in Markdown in your repository and publish them with tringify app privacy push, tringify app terms push, tringify app docs push and tringify app api push; see Privacy, terms and docs for your app.
Credentials#
tringify app secret rotate issues a new client secret and tringify app webhook rotate-key a new webhook signing secret; for 72 hours the previous one keeps working, and tringify app secret finish-rotation or tringify app webhook finish-rotation ends that sooner. --pipe-to hands a new secret straight to your secret store without printing it.
Deliveries, retire and delete#
tringify app deliveries lists webhook deliveries to the app with your endpoint's answers. tringify app retire and tringify app delete show whether the app can be retired or deleted and why, then open the Developer Portal for you to confirm; see Retire or delete an app.