Skip to content

Help for install command #596

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 1, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/man_pages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ Command | Description
[emulate `<Platform>`](project/testing/emulate.html) | Deploys the project in the native emulator for the selected target platform.
[run `<Platform>`](project/testing/run.html) | Runs your project on a connected device or in the native emulator, if configured.
[debug `<Platform>`](project/testing/debug.html) | Debugs your project on a connected device.
[plugin](plugin.html) | Lists all installed plugins for your project or lets you manage the plugins for your project.
[install](project/configuration/install.html) | Installs all platforms and dependencies described in the `package.json` file in the current directory.
[plugin](lib-management/plugin.html) | Lets you manage the plugins for your project.

## Device Commands
Command | Description
Expand Down
27 changes: 27 additions & 0 deletions docs/man_pages/project/configuration/install.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
install
==========

Usage | Synopsis
---|---
General | `$ tns install [--path]`

Installs all platforms and dependencies described in the `package.json` file in the current directory.

<% if(isHtml) { %>
The `package.json` file must be a valid `package.json` describing the configuration of a NativeScript project. If missing or corrupted, you can recreate the file by running `$ tns init` in the directory of a NativeScript project.
<% } %>

### Options
* `--path` - Specifies the directory where you want to create the project, if different from the current directory. The directory must be empty.

<% if(isHtml) { %>
### Related Commands

Command | Description
----------|----------
[platform add](platform-add.html) | Configures the current project to target the selected platform.
[platform remove](platform-remove.html) | Removes the selected platform from the platforms that the project currently targets.
[platform update](platform-update.html) | Updates the NativeScript runtime for the specified platform.
[platform](platform.html) | Lists all platforms that the project currently targets.
[prepare](prepare.html) | Copies common and relevant platform-specific content from the app directory to the subdirectory for the selected target platform in the platforms directory.
<% } %>
1 change: 1 addition & 0 deletions docs/man_pages/project/configuration/platform-add.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ To list only experimental versions for ios, run `$ npm view tns-ios dist-tags`

Command | Description
----------|----------
[install](install.html) | Installs all platforms and dependencies described in the `package.json` file in the current directory.
[platform remove](platform-remove.html) | Removes the selected platform from the platforms that the project currently targets.
[platform update](platform-update.html) | Updates the NativeScript runtime for the specified platform.
[platform](platform.html) | Lists all platforms that the project currently targets.
Expand Down
1 change: 1 addition & 0 deletions docs/man_pages/project/configuration/platform-remove.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Removes the selected platform from the platforms that the project currently targ

Command | Description
----------|----------
[install](install.html) | Installs all platforms and dependencies described in the `package.json` file in the current directory.
[platform add](platform-add.html) | Configures the current project to target the selected platform.
[platform update](platform-update.html) | Updates the NativeScript runtime for the specified platform.
[platform](platform.html) | Lists all platforms that the project currently targets.
Expand Down
1 change: 1 addition & 0 deletions docs/man_pages/project/configuration/platform-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ To list only experimental versions for ios, run `$ npm view tns-ios dist-tags`

Command | Description
----------|----------
[install](install.html) | Installs all platforms and dependencies described in the `package.json` file in the current directory.
[platform add](platform-add.html) | Configures the current project to target the selected platform.
[platform remove](platform-remove.html) | Removes the selected platform from the platforms that the project currently targets.
[platform](platform.html) | Lists all platforms that the project currently targets.
Expand Down
1 change: 1 addition & 0 deletions docs/man_pages/project/configuration/platform.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Lists all platforms that the project currently targets. You can build and deploy

Command | Description
----------|----------
[install](install.html) | Installs all platforms and dependencies described in the `package.json` file in the current directory.
[platform add](platform-add.html) | Configures the current project to target the selected platform.
[platform remove](platform-remove.html) | Removes the selected platform from the platforms that the project currently targets.
[platform update](platform-update.html) | Updates the NativeScript runtime for the specified platform.
Expand Down
1 change: 1 addition & 0 deletions docs/man_pages/project/configuration/prepare.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ in the `platforms` directory. This lets you build the project with the SDK for t

Command | Description
----------|----------
[install](install.html) | Installs all platforms and dependencies described in the `package.json` file in the current directory.
[platform add](platform-add.html) | Configures the current project to target the selected platform.
[platform remove](platform-remove.html) | Removes the selected platform from the platforms that the project currently targets.
[platform update](platform-update.html) | Updates the NativeScript runtime for the specified platform.
Expand Down