Overview
Thedevark add command adds pre-built backend modules to your project, scaffolding authentication, database templates, and other common features.
Syntax
The module to add to your project. See available modules below.
Available Modules
Authentication Modules
google-oauth
Adds Google OAuth authentication to your project.github-oauth
Adds GitHub OAuth authentication to your project.resend-otp
Adds OTP (One-Time Password) authentication using Resend.oauth (Interactive)
Triggers an interactive prompt to select an OAuth provider.Database Templates
node-mongo
Adds a Node.js project template with MongoDB integration.node-postgres
Adds a Node.js project template with PostgreSQL integration.Examples
Module Input
Module names are case-insensitive and whitespace is automatically trimmed.For example,
GOOGLE-OAUTH, google-oauth, and google-oauth all work the same way.Error Handling
Unsupported Module
If you specify a module that doesn’t exist:Installation Aborted
You can cancel installation at any time by pressingCtrl+C:
Interactive Prompt Cancelled
If you cancel an interactive prompt (like the OAuth selector), the installation will abort:Common Workflows
- Adding Authentication
- Setting Up a Database
- Adding OTP Authentication
- Route handlers
- Environment variable templates
- Configuration files
Next Steps
After adding a module:- Check the generated files in your project
- Update environment variables (usually in
.env) - Review the module-specific configuration
- Test the functionality
Most modules require additional configuration like API keys or database connection strings.
Check your
.env file or generated documentation for required values.Related Commands
- devark —version - Check your Devark CLI version

