npxShadcn() — ui Function Reference
Architecture documentation for the npxShadcn() function in helpers.ts from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 26ee316c_482d_d5d0_7c05_26095f85f089["npxShadcn()"] d74412ab_0ee4_22df_d4c9_26e6c03c4a41["helpers.ts"] 26ee316c_482d_d5d0_7c05_26095f85f089 -->|defined in| d74412ab_0ee4_22df_d4c9_26e6c03c4a41 8f2772cb_48bf_edee_e0f3_31c76c107492["runCommand()"] 26ee316c_482d_d5d0_7c05_26095f85f089 -->|calls| 8f2772cb_48bf_edee_e0f3_31c76c107492 7080324f_c817_0e10_a2d5_da08756280e2["getRegistryUrl()"] 26ee316c_482d_d5d0_7c05_26095f85f089 -->|calls| 7080324f_c817_0e10_a2d5_da08756280e2 style 26ee316c_482d_d5d0_7c05_26095f85f089 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/tests/src/utils/helpers.ts lines 67–87
export async function npxShadcn(
cwd: string,
args: string[],
{
debug = false,
}: {
debug?: boolean
} = {}
) {
const result = await runCommand(cwd, args, {
env: {
REGISTRY_URL: getRegistryUrl(),
},
})
if (debug) {
console.log(result)
}
return result
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does npxShadcn() do?
npxShadcn() is a function in the ui codebase, defined in packages/tests/src/utils/helpers.ts.
Where is npxShadcn() defined?
npxShadcn() is defined in packages/tests/src/utils/helpers.ts at line 67.
What does npxShadcn() call?
npxShadcn() calls 2 function(s): getRegistryUrl, runCommand.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free