1.0.1 • Published 7 years ago

adsk-forge-cli v1.0.1

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
7 years ago

Forge Command Line Interface (CLI)

The Forge Command Line Interface (CLI) is a unified tool to manage your Forge services. Using Forge CLI you can create, update, query and delete resources in your Forge account from the command line. Use Forge CLI to automate the build and deploy process of Forge depended services.

Contributing guidelines

See CONTRIBUTING

Usage

StepCommandDescription
1mkdir my-forge-da-app && cd my-forge-da-appCreate the project directory
2npm initInitialize npn in your directory
3npm install adsk-forge-cliInstall Forge CLI
4Create a Forge appGet Forge app id and secret
5node_modules/.bin/forge-cli configure -i [FORGE_ID] -s [FORGE_SECRET]Connect Forge CLI with your Forge app
6node_modules/.bin/forge-cli generateGenerate a Forge resources sample yaml
7node_modules/.bin/forge-cli deployDeploy resources to Forge

Commands

Usage: forge-cli [command] [options]

configure options

Set up User ID and Secret

Options:

-i, --id [value]       Optional Client ID
-s, --secret [value]   Optional Client Secret
-p, --profile [value]  Optional Profile Name (default is 'default')
-h, --help             output usage information

generate

Generates a Forge resource yaml file where to add your resources

deploy

Apply the changes required to reach the desired state of the configuration as specified by the forge-resources.yml. This may include creating, updating, or deleting resources.

Options:

-p, --plan  Display a deploy plan without deploying anything

Plan Example:

  DesignAutomationAPI:

  ~ steps-overkill
  + drawLine
  - steps-distil
  - oldDrawLine

In the above example steps-overkill will be updated, drawLine will be created and steps-distil and oldDrawLine will be deleted.

da options

Design Automation API commands

Options:

-h, --help         output usage information
-l, --list <type>  List the DA resources available in the Forge app according the specified type [activities]

help

-h, --help  output usage information