@luckys_luis/nuxt-laravelize-console
v0.3.0
Published
Typed, dependency-injected console command runtime for Nuxt Laravelize
Readme
@luckys_luis/nuxt-laravelize-console
Espanol | English
Typed, dependency-injected console command runtime for Nuxt Laravelize
Install
pnpm add @luckys_luis/nuxt-laravelize-consolePackage-specific usage
The package exposes a small, explicit surface. Configure its dependencies from an application provider or adapter and test its boundaries before promoting it to production.
Public entrypoints
Use only these public entrypoints. Paths not listed here are internals and may change without notice.
| Entrypoint | Use |
|---|---|
| package root | Public entrypoint for this package. |
| ./node | Public entrypoint for this package. |
| ./testing | Public entrypoint for this package. |
Console
@luckys_luis/nuxt-laravelize-console registers typed commands without a global command facade. CommandRegistry rejects duplicate names; argument and option schemas own parsing, defaults, aliases, validation, and help. ConsoleRunner creates one Laravelize application scope per invocation, binds a cli execution context, propagates abort signals, records bounded logs/spans, normalizes exit codes, and always disposes the scope. The portable entrypoint never reads process globals. Use /node for TTY/process adapters and /testing for deterministic terminal, prompt, and process fakes. Prompts fail closed unless an interactive adapter is installed.
const registry = new CommandRegistry().register(defineCommand({
name: 'reports:send',
arguments: { report: argument.string() },
options: { queue: option.string({ short: 'q' }) },
handler: sendReportHandlerToken,
}))
const exitCode = await new ConsoleRunner({ application, registry, terminal, process }).run()Compatibility and boundaries
Respect the at-least-once delivery, durability, authorization, tenant isolation, and secret-handling warnings in the reference section. Examples do not replace server-side authentication, authorization, or validation.
The shared API and security reference lives in the module guide. This page summarizes this package's contract and keeps copy-pasteable examples.
Related packages
@luckys_luis/nuxt-laravelize-core, @luckys_luis/nuxt-laravelize-execution-context, @luckys_luis/nuxt-laravelize-testing.
