GithubHelp home page GithubHelp logo

isabella232 / forge-cli-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from autodesk/forge-cli

0.0 0.0 0.0 28 KB

Forge Command Line Interface (CLI) is a unified tool to manage your Forge services

JavaScript 100.00%

forge-cli-1's Introduction

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 your Forge resources from the command line. Initially, we only support the management of Activities for the Design Automation API, we welcome pull requests for all other relevant APIs. Use Forge CLI to automate the build and deploy process of Forge depended services.

Contributing guidelines

See CONTRIBUTING

Usage

Step Command Description
1 mkdir my-forge-da-app && cd my-forge-da-app Create the project directory
2 npm init Initialize npn in your directory
3 npm install adsk-forge-cli Install Forge CLI
4 Create a Forge app Get Forge app id and secret
5 node_modules/.bin/forge-cli configure -i [FORGE_ID] -s [FORGE_SECRET] Connect Forge CLI with your Forge app
6 node_modules/.bin/forge-cli generate Generate a Forge resources sample yaml
7 node_modules/.bin/forge-cli deploy Deploy 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

License

Copyright 2016 Autodesk Inc.

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.

forge-cli-1's People

Contributors

tdmartinalonso avatar tdmartino avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.