@arcgis/cli
[![npm version][npm-img]][npm-url] [![build status][travis-img]][travis-url] [![apache licensed](https://img.shields.io/badge/license-Apache%202.0-orange.svg?style=flat-square)](https://raw.githubusercontent.com/Esri/arcgis-js-cli/master/LICENSE)
Last updated a month ago by odoe .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @arcgis/cli 
SYNC missed versions from official npm registry.

@arcgis/cli

npm version build status apache licensed

This CLI will allow you to quickly scaffold various applications for the ArcGIS API for JavaScript.

Usage

Prerequisites

You will need node v8+.

  • NOTE FOR WINDOWS USERS - You may need to install the Windows-Build-Tools to compile npm modules for this project. npm install --global --production windows-build-tools

Installation

From NPM

npm install -g @arcgis/cli

In a terminal, run:

arcgis --help

This will output the following:

Usage: arcgis <name> [dest] -t <type>

Commands:
  arcgis create <name> [dest]  Create a new application.
  arcgis init [type]           Initialize a new application in current directory
  arcgis widget <name> [type]  Create a new Widget.

Quick Start

default template application

arcgis create jsapi-app

react template application

arcgis create jsapi-react-app -t react

vue template application

arcgis create jsapi-vue-app -t vue

calcite-app-components template application using CDN

arcgis create jsapi-calcite-app -t calcite --cdn

Features

Create a new application

$ arcgis create <name> [dest]

Create a new application.

Options:
  --version   Show version number                                      [boolean]
  --name, -n  directory and package name for the new app
  --dest      Directory to create the application in                                     [default: <name>]
  --type, -t  A project template           [choices: "jsapi". "react", "vue", "calcite"] [default: "jsapi"]
  --cdn       Project template using JSAPI CDN (only valid with default or calcite)      [default: false]
  -h, --help  Show help                                                [boolean]

Initialize a new application in current directory

$ arcgis init [type]

Initialize a new application in current directory

Options:
  --version   Show version number                                      [boolean]
  --type, -t  A project template           [choices: "jsapi". "react", "vue", "calcite"] [default: "jsapi"]
  --cdn       Project template using JSAPI CDN (only valid with default or calcite)      [default: false]
  -h, --help  Show help                                                [boolean]

Create a new widget

$ arcgis widget <name> [type]

Create a new Widget.

Options:
  --version   Show version number                                      [boolean]
  --name, -n  Name of new widget
  --type, -t  A widget template            [choices: "jsapi", "exb"] [default: "jsapi"]
  -h, --help  Show help                                                [boolean]

Experience Builder Widgets

The CLI can be used to scaffold custom widgets for the ArcGIS Experience Builder Developer Edition.

You will want to run the CLI in the extracted root directory of your Experience Builder installation.

arcgis widget my-widget -t exb

This will install your widget in the Experience Builder folder structure as follows.

<Experience-Builder-Installation>\client\your-extensions\widgets\MyWidget\

Issues

Find a bug or want to request a new feature enhancement? Let us know by submitting an issue.

Contributing

Anyone and everyone is welcome to contribute. We do accept pull requests.

  1. Get involved
  2. Report issues
  3. Contribute code
  4. Improve documentation

Licensing

Copyright 2020 Esri

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

A copy of the license is available in the repository's LICENSE file

Current Tags

  • 4.15.1                                ...           latest (a month ago)

30 Versions

  • 4.15.1                                ...           a month ago
  • 4.15.0                                ...           2 months ago
  • 4.14.5                                ...           3 months ago
  • 4.14.4                                ...           3 months ago
  • 4.14.3                                ...           3 months ago
  • 4.14.2                                ...           3 months ago
  • 4.14.1                                ...           3 months ago
  • 4.14.0                                ...           5 months ago
  • 4.13.0                                ...           8 months ago
  • 4.12.4                                ...           8 months ago
  • 4.12.3                                ...           8 months ago
  • 4.12.1                                ...           a year ago
  • 4.12.0                                ...           a year ago
  • 4.11.1                                ...           a year ago
  • 4.11.0                                ...           a year ago
  • 4.10.0                                ...           a year ago
  • 4.9.3                                ...           2 years ago
  • 4.9.2                                ...           2 years ago
  • 4.9.1                                ...           2 years ago
  • 4.9.0                                ...           2 years ago
  • 4.8.3                                ...           2 years ago
  • 4.8.2                                ...           2 years ago
  • 4.8.1                                ...           2 years ago
  • 4.8.0                                ...           2 years ago
  • 4.7.5                                ...           2 years ago
  • 4.7.4                                ...           2 years ago
  • 4.7.3                                ...           2 years ago
  • 4.7.2                                ...           2 years ago
  • 4.7.1                                ...           2 years ago
  • 4.7.0                                ...           2 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 5
Last Week 49
Last Month 115
Dependencies (22)
Dev Dependencies (18)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |