How can i run two commands in my netlify.tomly

im trying to run hugo to create the public then after that run npx pagefind --source "public" to install pagefind search

this is my netlify.toml

publish = "public"
command = "hugo --gc --minify"

HUGO_VERSION = "0.119.0"
HUGO_ENV = "production"

command = "hugo --gc --minify --enableGitInfo"

HUGO_VERSION = "0.119.0"
HUGO_ENV = "production"

command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"

HUGO_VERSION = "0.119.0"

command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"

HUGO_VERSION = "0.119.0"


from = "/npmjs/*"
to = "/npmjs/"
status = 200

any help?

@shimboy You would want something like

command = "hugo --gc --minify && npx pagefind --source 'public'"


Thank you very much that worked for me

glad to hear it thanks for writing back in.