@arcgis/create
Version: 
ArcGIS command line tool to create new web GIS projects and applications
43 lines (27 loc) • 1.15 kB
Markdown
# @arcgis/create
A CLI tool for quickly creating an ArcGIS web application using web components.
- [Usage](#usage)
- [Commands](#commands)
# Usage
The package is created to be compatible with the [npm init command](https://docs.npmjs.com/cli/v8/commands/npm-init). This will allow users to run `npm init @arcgis`, and immediately be prompted to initialize a new ArcGIS web application.
1. run via npm init
- `npm init @arcgis`
2. run via npx
- `npx @arcgis/create`
- `npx @arcgis/create -- -n my-app -t react`
# Commands
- [`create-arcgis init`](#init)
## `init`
Initialize a new project from a sample from the code samples repository
```
Usage: init [options] [command]
Options:
  -V, --version              output the version number
  -n, --name <name>          Name of the project
  -t, --template <template>  Template to use (react, angular, vanilla, vite, vue, or webpack)
  -p, --packages <packages>  Additional packages to add (charts, coding)
  -h, --help                 display help for command
Commands:
  init                       Initialize a new arcgis project
  help [command]             display help for command
```