vaxla run

Runs any command referenced within the Vaxla config.

npm
pnpm
bun
yarn
npx vaxla run [PACKAGE] [COMMAND]

The run command will match a command from within your configuration and runs the code outside of Vaxla.

Arguments

PACKAGE
The package ID to run the command from.
COMMAND
The command ID to run.

Options

--package=<packageId>
Alternative to providing an argument for PACKAGE.
--command=<commandId>
Alternative to providing an argument for COMMAND.
--dir=<directory>
packageJson.vaxla.config || /vaxla || /tools/vaxla
Directory containing the information configuration folder.

Example

vaxla/config.ts
export default defineVaxlaConfig({
  packages: {
    web: {
      name: 'Web',
      path: './apps/web',
      scripts: {
        dev: {
          command: {package: true, npm: 'dev'},
          icon: 'lucide:code-xml',
        },
      },
    },
  },
});

To run the dev script from the web package, we type in the command:

vaxla run web dev