npx vratix init
Our CLI offers a quick, hassle-free way to set up a new project and install API modules with a single command.
While you’re free to copy source code directly from our GitHub repo, the CLI significantly simplifies the setup process by automating file placements, dependency resolutions, and other configurations.
The "raw" source code of API modules in GitHub may appear complex if copied directly. This setup is intentional to make the CLI work but can be confusing when integrating manually.
Using the CLI ensures smooth installation by handling:
- Copying files from the module registry
- Installing schema validators and database repositories
- Resolving internal and external dependencies
- Adjusting
import
aliases in each file
init
Use the init
command to create a new project using our Node.js template or to add a .config/modules.json
file to an existing project.
This command installs the template, sets up package.json
, and configures the project based on your choices. For details on this process, refer to the Installation Guide.
Options
add
The add
command allows you to add new API modules to your project. It checks if both package.json
and .config/modules.json
exist in the project directory.
If these files are missing, use the init command first.
This command installs all relevant files for the specified module, manages dependencies, and adjusts import
statements as needed.