← 返回命令列表

Linux command

meteor 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Create new project

meteor create [project-name]

Run development server

meteor

Add package

meteor add [package-name]

Remove package

meteor remove [package-name]

Build for production

meteor build [output-dir]

Deploy to Galaxy

meteor deploy [app.meteorapp.com]

说明

meteor is the command-line driver for the Meteor.js full-stack JavaScript framework. Running meteor in a project directory bundles the client, server, and database scripts together, starts a local MongoDB instance, watches the source tree for changes, and serves the application with hot-code reload to connected clients. Beyond the dev server, the CLI bootstraps new projects (meteor create), installs Atmosphere or npm packages (meteor add, meteor npm install), produces architecture-specific bundles for deployment (meteor build), and pushes apps to Meteor's hosted Galaxy platform (meteor deploy). Underneath sits a reactive data layer (DDP) that synchronizes documents between server-side MongoDB collections and client-side Minimongo caches over WebSockets.

参数

create _NAME_
Create new project.
add _PKG_
Add package.
remove _PKG_
Remove package.
build _DIR_
Build for production.
deploy _HOST_
Deploy application.
--help
Display help information.

FAQ

What is the meteor command used for?

meteor is the command-line driver for the Meteor.js full-stack JavaScript framework. Running meteor in a project directory bundles the client, server, and database scripts together, starts a local MongoDB instance, watches the source tree for changes, and serves the application with hot-code reload to connected clients. Beyond the dev server, the CLI bootstraps new projects (meteor create), installs Atmosphere or npm packages (meteor add, meteor npm install), produces architecture-specific bundles for deployment (meteor build), and pushes apps to Meteor's hosted Galaxy platform (meteor deploy). Underneath sits a reactive data layer (DDP) that synchronizes documents between server-side MongoDB collections and client-side Minimongo caches over WebSockets.

How do I run a basic meteor example?

Run `meteor create [project-name]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does create _NAME_ do in meteor?

Create new project.