Wiki Page: Cli Project Commands

  • Thread starter Thread starter David Berger
  • Start date Start date
Status
Not open for further replies.
D

David Berger

Guest
QUICK REFERENCE project create Creates a new project. project list List your currently available projects. list Alias of project list . project deploy Zips a directory and deploys it to your selected project. If no directory is provided, your current working directory is used. deploy Alias of project deploy . project scale Scales a project to use the number of servos given. project stop Stops your selected project, if it is running. project start Starts your selected project. project restart Restarts your selected project. project logs Retrieves the last 2000 lines of the selected project's logs. project logs tail Begins a real-time stream of a project's logs. logs tail Alias of project logs tail . project logs clear Clear all log data. PROJECT CREATE Creates a new project. Params No Params Prompts name The name of your new project. Example $ modulus project create Welcome to Modulus You are logged in as spiderman [?] Enter a project name: Lizard Locator [√] New project Lizard Locator created. PROJECT LIST (LIST) List your currently available projects. Params No Params Prompts No Prompts Example $ modulus list Welcome to Modulus You are logged in as spiderman Current projects: Lizard Locator (lizard-locator-895.onmodulus.net) - RUNNING PROJECT DEPLOY (DEPLOY) Zips a directory and deploys it to your selected project. If no directory is provided, your current working directory is used. During a deploy your logs will be streamed in real-time. Params dir (optional) The directory to deploy. Options -p (--project-name) The project to deploy to, specified as the project name. This will skip the project selection prompt and deploy directly to the project with the name specified. -m (--include-modules) Indicates you would like to include any node_modules folders in your project bundle. -n (--node-version) Specifies the node version to use when deploying Meteor projects, if applicable. -f (--force-npm-install) Force the deploy to install modules for your project rather than using cached modules. -r (--registry) The registry that will be used when running npm install when your project is deployed. -t (--project-type) Specifies type of application you are deploying. Overrides the auto-detection that occurs normally. Acceptable types are: nodejs - A typical Node.js application. meteor - A Meteor application. Prompts select project If you have more than one project, and do not provide a project name, you must select the project before continuing. Example $ modulus deploy Welcome to Modulus You are logged in as spiderman [?] Are you sure you want to use project Lizard Locator? (yes) yes Compressing project... 2.9 KB written Uploading project... Upload progress [===================] 100% Deploying Project... INFO: Attaching persistent storage. Mon Sep 23 2013 22:37:25 GMT+0000 (UTC) Next log in 4046ms INFO: Found package.json file: /package.json INFO: Node version specified in package.json: 0.10.x INFO: Initializing Node v0.10.18 INFO: Running npm install. INFO: Registry: http://registry.npmjs.org npm http GET http://registry.npmjs.org/marked npm http GET http://registry.npmjs.org/underscore npm http GET http://registry.npmjs.org/hbs ... INFO: Starting application. [√] Lizard Locator running at lizard-locator-895.onmodulus.net PROJECT SCALE Scales a project to use the number of servos, IaaS providers, and regions specified. For multi-region scaling please read the scaling documentation for more details. Params servos If you're currently scaled to a single region you can provide just the number of servos. region list If you're scaled to more than one region, you must specify each IaaS provider and region. The format is iaas.region=count. Prompts select project If you have more than one project, you must select the project before continuing. Example - Single Region $ modulus project scale 2 Example - Multiple Regions $ modulus project scale joyent.us-east-1=3 joyent.eu-ams-1=2 aws.us-east-1a=1 PROJECT STOP Stops a currently running project. Params No Params Prompts select project If you have more than one project, you must select the project before continuing. Example $ modulus project stop Welcome to Modulus You are logged in as spiderman [?] Are you sure you want to use project Lizard Locator? (yes) yes Stopping [ = ] [√] Lizard Locator stopped PROJECT START Starts a currently stopped project. Params No Params Prompts select project If you have more than one project, you must select the project before continuing. Example $ modulus project start Welcome to Modulus You are logged in as spiderman [?] Are you sure you want to use project Lizard Locator? (yes) yes Starting [ = ] [√] Lizard Locator started at lizard-locator-895.onmodulus.net PROJECT RESTART Restarts a currently running project. Params No Params Prompts select project If you have more than one project, you must select the project before continuing. Example $ modulus project restart Welcome to Modulus You are logged in as spiderman [?] Are you sure you want to use project Lizard Locator? (yes) yes Restarting [ = ] [√] Lizard Locator restarted at lizard-locator-895.onmodulus.net PROJECT LOGS Retrieves the last 2000 lines of the selected project's logs. Params No Params Options -p (--project-name) The project to retrieve logs from, specified as the project name. This will skip the project selection prompt and get the logs directly from the project with the name specified. -d (--download) Flag that signals to download the logs instead of printing them. -o (--output) Specifies the file to download to. Must be file type tar.gz. Prompts select project If you have more than one project, you must select the project before continuing. select servo If you have more than one servo, you must select the servo before continuing. Example $ modulus project logs -d Welcome to Modulus You are logged in as spiderman [?] Are you sure you want to use project Lizard Locator? (yes) yes [✓] Lizard_Locator_2013-07-29_21.30.40.tar.gz downloaded to c:\Users\parker\. PROJECT LOGS TAIL (LOGS TAIL) Begins a real-time stream of a project's logs. Logs will continue to stream until canceled. Params No Params Options -p (--project-name) The project to retrieve logs from, specified as the project name. This will skip the project selection prompt and get the logs directly from the project with the name specified. Prompts select project If you have more than one project, you must select the project before continuing. select servo If you have more than one servo, you must select the servo before continuing. Example $ modulus project logs tail -p "Lizard Locator" Welcome to Modulus You are logged in as spiderman [✓] Log streaming started (ctrl-c to exit)... Lizard located at 23,45 Lizard located at 87,23 ... PROJECT LOGS CLEAR Clears all log data. Params No Params Options -p (--project-name) The project to clear the logs for, specified as the project name. This will skip the project selection prompt and clear the logs for the project with the name specified. Prompts select project If you have more than one project, you must select the project before continuing. Example $ modulus project logs clear Welcome to Modulus You are logged in as spiderman [?] Are you sure you want to use project Lizard Locator? (yes) yes [✓] Logs successfully cleared.

Continue reading...
 
Status
Not open for further replies.
Back
Top