Skip to content

[Feature]: Feedback for shopify app build & shopify app deploy --no-build #6195

@patjakubik

Description

@patjakubik

What area(s) will this request affect?

App

What type of change do you want to see?

Substantial change to existing feature

Overview

Hey there,

After the --no-build flag was introduced (#5943), I started experimenting with my CI setup, building extensions with shopify app build and deploying them using shopify app deploy --no-build.

Overall, I’m loving it! I have a couple of suggestions though:

  1. The shopify app build command relies on the config file, but it only uses extension_directories from it. Could we pass directories as an argument instead of needing a config file? The goal is to build once and switch between environments without relying on the config. For now, we’ve got a workaround using a shopify.app.build.toml file, like this:
# This file is required by Shopify CLI to run the `shopify app build` command
# ---
# The actual configuration is deployed during `shopify app deploy --no-build` command from either:
# - shopify.app.staging.toml 
# - shopify.app.production.toml

client_id = ""
extension_directories = ["packages/extensions/*"]
application_url = "https://.com"
embedded = true

[webhooks]
api_version = ""

[auth]
redirect_urls = []
  1. The shopify app build command doesn’t seem to validate extension TOML files. It’s fine for now, but it’d be nicer if issues like that were caught early.

Thanks!

Motivation

Improving app CI/CD

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions