Skip to main content

Getting Started

Installation - 中通天鸿 Docs

Get Virex set up in your project in under 5 minutes. This guide covers installation, authentication, and your first deployment.

Getting started with Virex takes just a few minutes. This guide will walk you through installation, authentication, and deploying your first project.

Prerequisites

Before you begin, make sure you have:

  • Node.js 18+ installed on your machine
  • A Virex account (sign up at virex.example.com)
  • Git installed and configured

Install the CLI

The Virex CLI is the primary way to interact with the platform. Install it globally:

npm install -g @virex/cli

Verify the installation:

virex --version

Authenticate

Log in to your Virex account:

virex login

This opens your browser for authentication. Once complete, you’re ready to create projects.

Initialize Your Project

Navigate to your project directory and initialize Virex:

cd your-project
virex init

This creates a virex.config.js file with sensible defaults:

export default {
  name: 'your-project',
  framework: 'auto', // Virex auto-detects your framework
  buildCommand: 'npm run build',
  outputDirectory: 'dist',
};

Deploy

Deploy your project with a single command:

virex deploy

That’s it! Virex will:

  1. Build your project
  2. Upload the artifacts
  3. Deploy to a preview URL
  4. Return the live URL

Next Steps

Now that you’re set up:

Troubleshooting

”Command not found: virex”

Make sure npm’s global bin directory is in your PATH. Run npm bin -g to find the location.

Authentication Issues

Try logging out and back in:

virex logout
virex login

Build Failures

Check that your build command works locally before deploying:

npm run build

Still stuck? Join our Discord for help from the community.

在线咨询 在线咨询
热线电话 热线电话 热线电话 热线电话
免费热线 400-668-3333
微信咨询 微信咨询 微信咨询 微信咨询
微信二维码 专家一对一沟通 免费获取专属方案
体验demo 体验demo 体验demo 体验demo 免费试用 免费试用 免费试用 免费试用
回顶部 回顶部 回顶部 回顶部
热线电话 热线电话
在线咨询 在线咨询
微信咨询 微信咨询
体验demo 体验demo 免费试用 免费试用
0元免费试用,立即领取免费试用机会! 0元免费试用, 立即领取免费试用机会! 免费试用