mulesoft / api-sync-tool

Tool that synchronizes an API in API platform with local filesystem
Other
4 stars 3 forks source link

bug in -f option of api-synch push #129

Open dberlind opened 8 years ago

dberlind commented 8 years ago

image

juancoen commented 8 years ago

can you attach the .api-sync.log file that's located in your home folder?

Thanks!

dberlind commented 8 years ago

attached.

On Mon, Jul 25, 2016 at 7:24 PM, Juan Pablo Coen Mitrani < notifications@github.com> wrote:

can you attach the .api-sync.log file that's located in your home folder?

Thanks!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mulesoft/api-sync-tool/issues/129#issuecomment-235116817, or mute the thread https://github.com/notifications/unsubscribe-auth/AGVduudHkB5PDjxMvftWr1zAOrBWRVR5ks5qZUWlgaJpZM4JUegT .

juancoen commented 8 years ago

I can't see it, can you paste its contents in a comment? thanks!

dberlind commented 8 years ago

Here it is:

[ERROR] Thu Jul 14 2016 09:24:37 GMT-0400 (EDT): BaseError: Usage:
  first choose an API: 
    api-sync setup    for an interactive wizard
  or if you know your API details
    api-sync setup --bizGroup=(Business group id) --api=(API id) --apiVersion=(API version id) -p (Run pull after setup)

  or if you want to create a new API and upload files
    api-sync create    for an interactive wizard
  or
    api-sync create --bizGroup=(Business group id) (--apiName=(API name)|--apiId=(API id)) --apiVersion=(API version name) --rootRaml=(rootRaml path, must be in the root folder)

  then
    api-sync pull     download the files from Anypoint Platform
    api-sync push     upload your files to Anypoint Platform
    api-sync cleanup  deletes all metadata for current folder. This include login information and setup configuration.
    api-sync status   show the files status
  for a detailed description of a command, use it with --help

    at Object.get (/usr/local/lib/node_modules/api-sync/lib/factories/commandFactory.js:14:30)
    at Object.run (/usr/local/lib/node_modules/api-sync/lib/application.js:9:29)
    at module.exports (/usr/local/lib/node_modules/api-sync/lib/api-sync.js:8:6)
    at Object.<anonymous> (/usr/local/lib/node_modules/api-sync/bin/index.js:8:1)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.runMain (module.js:575:10)
    at run (bootstrap_node.js:352:7)
    at startup (bootstrap_node.js:144:9)
    at bootstrap_node.js:467:3
[DEBUG] Thu Jul 14 2016 09:38:09 GMT-0400 (EDT): Parsed input and found command: setup
[DEBUG] Thu Jul 14 2016 09:38:09 GMT-0400 (EDT): Running command
[DEBUG] Thu Jul 14 2016 09:38:09 GMT-0400 (EDT): Authentication file not found.
[INFO] Thu Jul 14 2016 09:38:09 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[INFO] Thu Jul 14 2016 09:39:06 GMT-0400 (EDT): Current setup:
- Business group: Mulesoft
- API: Jukebox 1.0
[INFO] Thu Jul 14 2016 09:39:06 GMT-0400 (EDT): Downloading the API definition files...
[INFO] Thu Jul 14 2016 09:39:08 GMT-0400 (EDT): API definition files download finished
[INFO] Thu Jul 14 2016 09:39:08 GMT-0400 (EDT): The API is empty
[DEBUG] Thu Jul 14 2016 09:39:08 GMT-0400 (EDT): Command completed successfully
[ERROR] Thu Jul 14 2016 09:39:52 GMT-0400 (EDT): BaseError: Usage:
  first choose an API: 
    api-sync setup    for an interactive wizard
  or if you know your API details
    api-sync setup --bizGroup=(Business group id) --api=(API id) --apiVersion=(API version id) -p (Run pull after setup)

  or if you want to create a new API and upload files
    api-sync create    for an interactive wizard
  or
    api-sync create --bizGroup=(Business group id) (--apiName=(API name)|--apiId=(API id)) --apiVersion=(API version name) --rootRaml=(rootRaml path, must be in the root folder)

  then
    api-sync pull     download the files from Anypoint Platform
    api-sync push     upload your files to Anypoint Platform
    api-sync cleanup  deletes all metadata for current folder. This include login information and setup configuration.
    api-sync status   show the files status
  for a detailed description of a command, use it with --help

    at Object.get (/usr/local/lib/node_modules/api-sync/lib/factories/commandFactory.js:14:30)
    at Object.run (/usr/local/lib/node_modules/api-sync/lib/application.js:9:29)
    at module.exports (/usr/local/lib/node_modules/api-sync/lib/api-sync.js:8:6)
    at Object.<anonymous> (/usr/local/lib/node_modules/api-sync/bin/index.js:8:1)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.runMain (module.js:575:10)
    at run (bootstrap_node.js:352:7)
    at startup (bootstrap_node.js:144:9)
    at bootstrap_node.js:467:3
[DEBUG] Thu Jul 14 2016 09:41:09 GMT-0400 (EDT): Parsed input and found command: push
[DEBUG] Thu Jul 14 2016 09:41:10 GMT-0400 (EDT): Running command
[ERROR] Thu Jul 14 2016 09:41:10 GMT-0400 (EDT): BaseError: Please run setup before running other commands.
    at /usr/local/lib/node_modules/api-sync/lib/strategies/validateSetupDoneStrategy.js:8:34
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromiseAtPostResolution (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:245:10)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Thu Jul 14 2016 09:41:23 GMT-0400 (EDT): Parsed input and found command: setup
[DEBUG] Thu Jul 14 2016 09:41:23 GMT-0400 (EDT): Running command
[DEBUG] Thu Jul 14 2016 09:41:23 GMT-0400 (EDT): Authentication file not found.
[INFO] Thu Jul 14 2016 09:41:23 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[INFO] Thu Jul 14 2016 09:41:55 GMT-0400 (EDT): Current setup:
- Business group: Mulesoft
- API: Jukebox 1.0
[DEBUG] Thu Jul 14 2016 09:41:55 GMT-0400 (EDT): Command completed successfully
[ERROR] Thu Jul 14 2016 09:42:13 GMT-0400 (EDT): BaseError: Usage:
  first choose an API: 
    api-sync setup    for an interactive wizard
  or if you know your API details
    api-sync setup --bizGroup=(Business group id) --api=(API id) --apiVersion=(API version id) -p (Run pull after setup)

  or if you want to create a new API and upload files
    api-sync create    for an interactive wizard
  or
    api-sync create --bizGroup=(Business group id) (--apiName=(API name)|--apiId=(API id)) --apiVersion=(API version name) --rootRaml=(rootRaml path, must be in the root folder)

  then
    api-sync pull     download the files from Anypoint Platform
    api-sync push     upload your files to Anypoint Platform
    api-sync cleanup  deletes all metadata for current folder. This include login information and setup configuration.
    api-sync status   show the files status
  for a detailed description of a command, use it with --help

    at Object.get (/usr/local/lib/node_modules/api-sync/lib/factories/commandFactory.js:14:30)
    at Object.run (/usr/local/lib/node_modules/api-sync/lib/application.js:9:29)
    at module.exports (/usr/local/lib/node_modules/api-sync/lib/api-sync.js:8:6)
    at Object.<anonymous> (/usr/local/lib/node_modules/api-sync/bin/index.js:8:1)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.runMain (module.js:575:10)
    at run (bootstrap_node.js:352:7)
    at startup (bootstrap_node.js:144:9)
    at bootstrap_node.js:467:3
[DEBUG] Thu Jul 14 2016 09:42:40 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Thu Jul 14 2016 09:42:40 GMT-0400 (EDT): Running command
[ERROR] Thu Jul 14 2016 09:42:40 GMT-0400 (EDT): BaseError: This folder has the following setup 
bussinesGroup: Mulesoft
api: Jukebox
version: 1.0
    at /usr/local/lib/node_modules/api-sync/lib/strategies/validateNoSetupDoneStrategy.js:10:38
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromiseAtPostResolution (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:245:10)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Thu Jul 14 2016 09:45:28 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Thu Jul 14 2016 09:45:28 GMT-0400 (EDT): Running command
[ERROR] Thu Jul 14 2016 09:45:28 GMT-0400 (EDT): BaseError: This folder has the following setup 
bussinesGroup: Mulesoft
api: Jukebox
version: 1.0
    at /usr/local/lib/node_modules/api-sync/lib/strategies/validateNoSetupDoneStrategy.js:10:38
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromiseAtPostResolution (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:245:10)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Thu Jul 14 2016 09:47:35 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Thu Jul 14 2016 09:47:36 GMT-0400 (EDT): Running command
[ERROR] Thu Jul 14 2016 09:47:36 GMT-0400 (EDT): BaseError: This folder has the following setup 
bussinesGroup: Mulesoft
api: Jukebox
version: 1.0
    at /usr/local/lib/node_modules/api-sync/lib/strategies/validateNoSetupDoneStrategy.js:10:38
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromiseAtPostResolution (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:245:10)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Thu Jul 14 2016 09:50:09 GMT-0400 (EDT): Parsed input and found command: setup
[DEBUG] Thu Jul 14 2016 09:50:10 GMT-0400 (EDT): Running command
[ERROR] Thu Jul 14 2016 09:50:10 GMT-0400 (EDT): BaseError: This folder has the following setup 
bussinesGroup: Mulesoft
api: Jukebox
version: 1.0
    at /usr/local/lib/node_modules/api-sync/lib/strategies/validateNoSetupDoneStrategy.js:10:38
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromiseAtPostResolution (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:245:10)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Thu Jul 14 2016 09:53:30 GMT-0400 (EDT): Parsed input and found command: status
[DEBUG] Thu Jul 14 2016 09:53:30 GMT-0400 (EDT): Running command
[DEBUG] Thu Jul 14 2016 09:53:30 GMT-0400 (EDT): Authentication file not found.
[INFO] Thu Jul 14 2016 09:53:30 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[INFO] Thu Jul 14 2016 09:53:41 GMT-0400 (EDT): + README.md new file
+ heybulldog.mp3 new file
+ jukebox-api.raml new file
+ jukebox-include-album-new.sample new file
+ jukebox-include-album-retrieve.sample new file
+ jukebox-include-album-songs.sample new file
+ jukebox-include-album.schema new file
+ jukebox-include-albums.sample new file
+ jukebox-include-artist-albums.sample new file
+ jukebox-include-artist-new.sample new file
+ jukebox-include-artist-retrieve.sample new file
+ jukebox-include-artist.schema new file
+ jukebox-include-artists.sample new file
+ jukebox-include-song-new.sample new file
+ jukebox-include-song-retrieve.sample new file
+ jukebox-include-song.schema new file
+ jukebox-include-songs.sample new file
[DEBUG] Thu Jul 14 2016 09:53:41 GMT-0400 (EDT): Command completed successfully
[ERROR] Thu Jul 14 2016 09:55:02 GMT-0400 (EDT): BaseError: Usage:
  first choose an API: 
    api-sync setup    for an interactive wizard
  or if you know your API details
    api-sync setup --bizGroup=(Business group id) --api=(API id) --apiVersion=(API version id) -p (Run pull after setup)

  or if you want to create a new API and upload files
    api-sync create    for an interactive wizard
  or
    api-sync create --bizGroup=(Business group id) (--apiName=(API name)|--apiId=(API id)) --apiVersion=(API version name) --rootRaml=(rootRaml path, must be in the root folder)

  then
    api-sync pull     download the files from Anypoint Platform
    api-sync push     upload your files to Anypoint Platform
    api-sync cleanup  deletes all metadata for current folder. This include login information and setup configuration.
    api-sync status   show the files status
  for a detailed description of a command, use it with --help

    at Object.get (/usr/local/lib/node_modules/api-sync/lib/factories/commandFactory.js:14:30)
    at Object.run (/usr/local/lib/node_modules/api-sync/lib/application.js:9:29)
    at module.exports (/usr/local/lib/node_modules/api-sync/lib/api-sync.js:8:6)
    at Object.<anonymous> (/usr/local/lib/node_modules/api-sync/bin/index.js:8:1)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.runMain (module.js:575:10)
    at run (bootstrap_node.js:352:7)
    at startup (bootstrap_node.js:144:9)
    at bootstrap_node.js:467:3
[DEBUG] Thu Jul 14 2016 09:56:04 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Thu Jul 14 2016 09:56:04 GMT-0400 (EDT): Running command
[ERROR] Thu Jul 14 2016 09:56:04 GMT-0400 (EDT): BaseError: This folder has the following setup 
bussinesGroup: Mulesoft
api: Jukebox
version: 1.0
    at /usr/local/lib/node_modules/api-sync/lib/strategies/validateNoSetupDoneStrategy.js:10:38
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromiseAtPostResolution (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:245:10)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Thu Jul 14 2016 09:56:24 GMT-0400 (EDT): Parsed input and found command: cleanup
[DEBUG] Thu Jul 14 2016 09:56:24 GMT-0400 (EDT): Running command
[DEBUG] Thu Jul 14 2016 09:56:24 GMT-0400 (EDT): Authentication file not found.
[INFO] Thu Jul 14 2016 09:56:24 GMT-0400 (EDT): Cleanup successful
[DEBUG] Thu Jul 14 2016 09:56:24 GMT-0400 (EDT): Command completed successfully
[DEBUG] Thu Jul 14 2016 09:56:30 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Thu Jul 14 2016 09:56:30 GMT-0400 (EDT): Running command
[INFO] Thu Jul 14 2016 09:56:30 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[DEBUG] Thu Jul 14 2016 09:57:43 GMT-0400 (EDT): Parsed input and found command: cleanup
[DEBUG] Thu Jul 14 2016 09:57:43 GMT-0400 (EDT): Running command
[INFO] Thu Jul 14 2016 09:57:43 GMT-0400 (EDT): Cleanup successful
[DEBUG] Thu Jul 14 2016 09:57:43 GMT-0400 (EDT): Command completed successfully
[DEBUG] Thu Jul 14 2016 09:58:06 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Thu Jul 14 2016 09:58:07 GMT-0400 (EDT): Running command
[ERROR] Thu Jul 14 2016 09:58:07 GMT-0400 (EDT): BaseError: This folder has the following setup 
bussinesGroup: Mulesoft
api: Jukebox
version: 1.0
    at /usr/local/lib/node_modules/api-sync/lib/strategies/validateNoSetupDoneStrategy.js:10:38
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromiseAtPostResolution (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:245:10)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Thu Jul 14 2016 09:58:35 GMT-0400 (EDT): Parsed input and found command: cleanup
[DEBUG] Thu Jul 14 2016 09:58:35 GMT-0400 (EDT): Running command
[INFO] Thu Jul 14 2016 09:58:35 GMT-0400 (EDT): Cleanup successful
[DEBUG] Thu Jul 14 2016 09:58:35 GMT-0400 (EDT): Command completed successfully
[DEBUG] Thu Jul 14 2016 09:58:45 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Thu Jul 14 2016 09:58:45 GMT-0400 (EDT): Running command
[INFO] Thu Jul 14 2016 09:58:45 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[DEBUG] Thu Jul 14 2016 09:59:30 GMT-0400 (EDT): Parsed input and found command: cleanup
[DEBUG] Thu Jul 14 2016 09:59:30 GMT-0400 (EDT): Running command
[INFO] Thu Jul 14 2016 09:59:30 GMT-0400 (EDT): Cleanup successful
[DEBUG] Thu Jul 14 2016 09:59:30 GMT-0400 (EDT): Command completed successfully
[DEBUG] Thu Jul 14 2016 09:59:45 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Thu Jul 14 2016 09:59:45 GMT-0400 (EDT): Running command
[INFO] Thu Jul 14 2016 09:59:45 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[INFO] Thu Jul 14 2016 10:00:19 GMT-0400 (EDT): Creating API
[INFO] Thu Jul 14 2016 10:00:19 GMT-0400 (EDT): API created
[INFO] Thu Jul 14 2016 10:00:19 GMT-0400 (EDT): Uploading the root RAML
[INFO] Thu Jul 14 2016 10:00:20 GMT-0400 (EDT): Root raml: api.raml uploaded
[INFO] Thu Jul 14 2016 10:00:20 GMT-0400 (EDT): Setting the environment
[INFO] Thu Jul 14 2016 10:00:21 GMT-0400 (EDT): Current setup:
- Business group: Mulesoft
- API: CocoaNoir 1.0
[INFO] Thu Jul 14 2016 10:00:22 GMT-0400 (EDT): Pushing new files...
[INFO] Thu Jul 14 2016 10:00:22 GMT-0400 (EDT): Uploading: README.md
[INFO] Thu Jul 14 2016 10:00:23 GMT-0400 (EDT): + README.md new file
[DEBUG] Thu Jul 14 2016 10:00:23 GMT-0400 (EDT): Command completed successfully
[ERROR] Thu Jul 14 2016 10:26:39 GMT-0400 (EDT): BaseError: Usage:
  first choose an API: 
    api-sync setup    for an interactive wizard
  or if you know your API details
    api-sync setup --bizGroup=(Business group id) --api=(API id) --apiVersion=(API version id) -p (Run pull after setup)

  or if you want to create a new API and upload files
    api-sync create    for an interactive wizard
  or
    api-sync create --bizGroup=(Business group id) (--apiName=(API name)|--apiId=(API id)) --apiVersion=(API version name) --rootRaml=(rootRaml path, must be in the root folder)

  then
    api-sync pull     download the files from Anypoint Platform
    api-sync push     upload your files to Anypoint Platform
    api-sync cleanup  deletes all metadata for current folder. This include login information and setup configuration.
    api-sync status   show the files status
  for a detailed description of a command, use it with --help

    at Object.get (/usr/local/lib/node_modules/api-sync/lib/factories/commandFactory.js:14:30)
    at Object.run (/usr/local/lib/node_modules/api-sync/lib/application.js:9:29)
    at module.exports (/usr/local/lib/node_modules/api-sync/lib/api-sync.js:8:6)
    at Object.<anonymous> (/usr/local/lib/node_modules/api-sync/bin/index.js:8:1)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.runMain (module.js:575:10)
    at run (bootstrap_node.js:352:7)
    at startup (bootstrap_node.js:144:9)
    at bootstrap_node.js:467:3
[DEBUG] Thu Jul 14 2016 10:38:02 GMT-0400 (EDT): Parsed input and found command: status
[DEBUG] Thu Jul 14 2016 10:38:02 GMT-0400 (EDT): Running command
[INFO] Thu Jul 14 2016 10:38:02 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[INFO] Thu Jul 14 2016 10:38:14 GMT-0400 (EDT): * README.md updated
[DEBUG] Thu Jul 14 2016 10:38:14 GMT-0400 (EDT): Command completed successfully
[DEBUG] Thu Jul 14 2016 10:38:57 GMT-0400 (EDT): Parsed input and found command: setup
[DEBUG] Thu Jul 14 2016 10:38:57 GMT-0400 (EDT): Running command
[ERROR] Thu Jul 14 2016 10:38:57 GMT-0400 (EDT): BaseError: This folder has the following setup 
bussinesGroup: Mulesoft
api: CocoaNoir
version: 1.0
    at /usr/local/lib/node_modules/api-sync/lib/strategies/validateNoSetupDoneStrategy.js:10:38
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromiseAtPostResolution (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:245:10)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Thu Jul 14 2016 10:39:06 GMT-0400 (EDT): Parsed input and found command: push
[DEBUG] Thu Jul 14 2016 10:39:06 GMT-0400 (EDT): Running command
[INFO] Thu Jul 14 2016 10:39:06 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[INFO] Thu Jul 14 2016 10:39:15 GMT-0400 (EDT): Pushing changed files...
[INFO] Thu Jul 14 2016 10:39:15 GMT-0400 (EDT): Uploading: README.md
[INFO] Thu Jul 14 2016 10:39:15 GMT-0400 (EDT): * README.md updated
[DEBUG] Thu Jul 14 2016 10:39:15 GMT-0400 (EDT): Command completed successfully
[DEBUG] Thu Jul 14 2016 10:46:40 GMT-0400 (EDT): Parsed input and found command: cleanup
[DEBUG] Thu Jul 14 2016 10:46:40 GMT-0400 (EDT): Running command
[INFO] Thu Jul 14 2016 10:46:40 GMT-0400 (EDT): Cleanup successful
[DEBUG] Thu Jul 14 2016 10:46:40 GMT-0400 (EDT): Command completed successfully
[DEBUG] Thu Jul 14 2016 10:47:15 GMT-0400 (EDT): Parsed input and found command: status
[DEBUG] Thu Jul 14 2016 10:47:15 GMT-0400 (EDT): Running command
[ERROR] Thu Jul 14 2016 10:47:15 GMT-0400 (EDT): BaseError: Please run setup before running other commands.
    at /usr/local/lib/node_modules/api-sync/lib/strategies/validateSetupDoneStrategy.js:8:34
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromiseAtPostResolution (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:245:10)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[ERROR] Thu Jul 14 2016 10:47:29 GMT-0400 (EDT): BaseError: Usage:
  first choose an API: 
    api-sync setup    for an interactive wizard
  or if you know your API details
    api-sync setup --bizGroup=(Business group id) --api=(API id) --apiVersion=(API version id) -p (Run pull after setup)

  or if you want to create a new API and upload files
    api-sync create    for an interactive wizard
  or
    api-sync create --bizGroup=(Business group id) (--apiName=(API name)|--apiId=(API id)) --apiVersion=(API version name) --rootRaml=(rootRaml path, must be in the root folder)

  then
    api-sync pull     download the files from Anypoint Platform
    api-sync push     upload your files to Anypoint Platform
    api-sync cleanup  deletes all metadata for current folder. This include login information and setup configuration.
    api-sync status   show the files status
  for a detailed description of a command, use it with --help

    at Object.get (/usr/local/lib/node_modules/api-sync/lib/factories/commandFactory.js:14:30)
    at Object.run (/usr/local/lib/node_modules/api-sync/lib/application.js:9:29)
    at module.exports (/usr/local/lib/node_modules/api-sync/lib/api-sync.js:8:6)
    at Object.<anonymous> (/usr/local/lib/node_modules/api-sync/bin/index.js:8:1)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.runMain (module.js:575:10)
    at run (bootstrap_node.js:352:7)
    at startup (bootstrap_node.js:144:9)
    at bootstrap_node.js:467:3
[DEBUG] Thu Jul 14 2016 10:47:52 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Thu Jul 14 2016 10:47:52 GMT-0400 (EDT): Running command
[INFO] Thu Jul 14 2016 10:47:52 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[DEBUG] Thu Jul 14 2016 11:24:33 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Thu Jul 14 2016 11:24:34 GMT-0400 (EDT): Running command
[ERROR] Thu Jul 14 2016 11:24:34 GMT-0400 (EDT): BaseError: Usage: api-sync create [--bizGroup=(Business group id) (--apiName=(API name)|--apiId=(API id)) --apiVersion=(API version name) --rootRaml=(API root RAML path)]
    at Object.validateInput (/usr/local/lib/node_modules/api-sync/lib/commands/createCommand.js:41:28)
    at Object.run (/usr/local/lib/node_modules/api-sync/lib/utils/commandRunner.js:12:23)
    at /usr/local/lib/node_modules/api-sync/lib/application.js:15:34
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromiseAtPostResolution (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:245:10)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Thu Jul 14 2016 11:26:32 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Thu Jul 14 2016 11:26:32 GMT-0400 (EDT): Running command
[ERROR] Thu Jul 14 2016 11:26:32 GMT-0400 (EDT): BaseError: Usage: api-sync create [--bizGroup=(Business group id) (--apiName=(API name)|--apiId=(API id)) --apiVersion=(API version name) --rootRaml=(API root RAML path)]
    at Object.validateInput (/usr/local/lib/node_modules/api-sync/lib/commands/createCommand.js:41:28)
    at Object.run (/usr/local/lib/node_modules/api-sync/lib/utils/commandRunner.js:12:23)
    at /usr/local/lib/node_modules/api-sync/lib/application.js:15:34
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromiseAtPostResolution (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:245:10)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Thu Jul 14 2016 11:28:03 GMT-0400 (EDT): Parsed input and found command: status
[DEBUG] Thu Jul 14 2016 11:28:03 GMT-0400 (EDT): Running command
[ERROR] Thu Jul 14 2016 11:28:03 GMT-0400 (EDT): BaseError: Please run setup before running other commands.
    at /usr/local/lib/node_modules/api-sync/lib/strategies/validateSetupDoneStrategy.js:8:34
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromiseAtPostResolution (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:245:10)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Thu Jul 14 2016 11:28:32 GMT-0400 (EDT): Parsed input and found command: setup
[DEBUG] Thu Jul 14 2016 11:28:32 GMT-0400 (EDT): Running command
[ERROR] Thu Jul 14 2016 11:28:32 GMT-0400 (EDT): BaseError: Usage: api-sync setup [--bizGroup=(Business group id) --api=(API id) --apiVersion=(API version id) -p (Run pull after setup (optional))]
    at Object.validateInput (/usr/local/lib/node_modules/api-sync/lib/commands/setupCommand.js:36:28)
    at Object.run (/usr/local/lib/node_modules/api-sync/lib/utils/commandRunner.js:12:23)
    at /usr/local/lib/node_modules/api-sync/lib/application.js:15:34
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromiseAtPostResolution (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:245:10)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Thu Jul 14 2016 11:30:12 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Thu Jul 14 2016 11:30:12 GMT-0400 (EDT): Running command
[ERROR] Thu Jul 14 2016 11:30:12 GMT-0400 (EDT): BaseError: Usage: api-sync create [--bizGroup=(Business group id) (--apiName=(API name)|--apiId=(API id)) --apiVersion=(API version name) --rootRaml=(API root RAML path)]
    at Object.validateInput (/usr/local/lib/node_modules/api-sync/lib/commands/createCommand.js:41:28)
    at Object.run (/usr/local/lib/node_modules/api-sync/lib/utils/commandRunner.js:12:23)
    at /usr/local/lib/node_modules/api-sync/lib/application.js:15:34
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromiseAtPostResolution (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:245:10)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Thu Jul 14 2016 11:30:26 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Thu Jul 14 2016 11:30:26 GMT-0400 (EDT): Running command
[ERROR] Thu Jul 14 2016 11:30:26 GMT-0400 (EDT): BaseError: Usage: api-sync create [--bizGroup=(Business group id) (--apiName=(API name)|--apiId=(API id)) --apiVersion=(API version name) --rootRaml=(API root RAML path)]
    at Object.validateInput (/usr/local/lib/node_modules/api-sync/lib/commands/createCommand.js:41:28)
    at Object.run (/usr/local/lib/node_modules/api-sync/lib/utils/commandRunner.js:12:23)
    at /usr/local/lib/node_modules/api-sync/lib/application.js:15:34
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromiseAtPostResolution (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:245:10)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Thu Jul 14 2016 12:03:25 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Thu Jul 14 2016 12:03:26 GMT-0400 (EDT): Running command
[ERROR] Thu Jul 14 2016 12:03:26 GMT-0400 (EDT): BaseError: Usage: api-sync create [--bizGroup=(Business group id) (--apiName=(API name)|--apiId=(API id)) --apiVersion=(API version name) --rootRaml=(API root RAML path)]
    at Object.validateInput (/usr/local/lib/node_modules/api-sync/lib/commands/createCommand.js:41:28)
    at Object.run (/usr/local/lib/node_modules/api-sync/lib/utils/commandRunner.js:12:23)
    at /usr/local/lib/node_modules/api-sync/lib/application.js:15:34
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromiseAtPostResolution (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:245:10)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Thu Jul 14 2016 12:04:13 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Thu Jul 14 2016 12:04:13 GMT-0400 (EDT): Running command
[ERROR] Thu Jul 14 2016 12:04:13 GMT-0400 (EDT): BaseError: Usage: api-sync create [--bizGroup=(Business group id) (--apiName=(API name)|--apiId=(API id)) --apiVersion=(API version name) --rootRaml=(API root RAML path)]
    at Object.validateInput (/usr/local/lib/node_modules/api-sync/lib/commands/createCommand.js:41:28)
    at Object.run (/usr/local/lib/node_modules/api-sync/lib/utils/commandRunner.js:12:23)
    at /usr/local/lib/node_modules/api-sync/lib/application.js:15:34
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromiseAtPostResolution (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:245:10)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Thu Jul 14 2016 12:05:32 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Thu Jul 14 2016 12:05:33 GMT-0400 (EDT): Running command
[ERROR] Thu Jul 14 2016 12:05:33 GMT-0400 (EDT): BaseError: Usage: api-sync create [--bizGroup=(Business group id) (--apiName=(API name)|--apiId=(API id)) --apiVersion=(API version name) --rootRaml=(API root RAML path)]
    at Object.validateInput (/usr/local/lib/node_modules/api-sync/lib/commands/createCommand.js:41:28)
    at Object.run (/usr/local/lib/node_modules/api-sync/lib/utils/commandRunner.js:12:23)
    at /usr/local/lib/node_modules/api-sync/lib/application.js:15:34
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromiseAtPostResolution (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:245:10)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Thu Jul 14 2016 12:05:42 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Thu Jul 14 2016 12:05:42 GMT-0400 (EDT): Running command
[ERROR] Thu Jul 14 2016 12:05:42 GMT-0400 (EDT): BaseError: Usage: api-sync create [--bizGroup=(Business group id) (--apiName=(API name)|--apiId=(API id)) --apiVersion=(API version name) --rootRaml=(API root RAML path)]
    at Object.validateInput (/usr/local/lib/node_modules/api-sync/lib/commands/createCommand.js:41:28)
    at Object.run (/usr/local/lib/node_modules/api-sync/lib/utils/commandRunner.js:12:23)
    at /usr/local/lib/node_modules/api-sync/lib/application.js:15:34
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromiseAtPostResolution (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:245:10)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Thu Jul 14 2016 12:06:05 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Thu Jul 14 2016 12:06:05 GMT-0400 (EDT): Running command
[ERROR] Thu Jul 14 2016 12:06:05 GMT-0400 (EDT): BaseError: Usage: api-sync create [--bizGroup=(Business group id) (--apiName=(API name)|--apiId=(API id)) --apiVersion=(API version name) --rootRaml=(API root RAML path)]
    at Object.validateInput (/usr/local/lib/node_modules/api-sync/lib/commands/createCommand.js:41:28)
    at Object.run (/usr/local/lib/node_modules/api-sync/lib/utils/commandRunner.js:12:23)
    at /usr/local/lib/node_modules/api-sync/lib/application.js:15:34
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromiseAtPostResolution (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:245:10)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Thu Jul 14 2016 12:07:32 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Thu Jul 14 2016 12:07:33 GMT-0400 (EDT): Running command
[INFO] Thu Jul 14 2016 12:07:33 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[ERROR] Thu Jul 14 2016 12:08:02 GMT-0400 (EDT): BaseError: API root RAML path was not found.
    at getRootRamlPath (/usr/local/lib/node_modules/api-sync/lib/factories/createStrategyFactory.js:117:27)
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromises (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:697:14)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:123:16)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Thu Jul 14 2016 12:08:56 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Thu Jul 14 2016 12:08:56 GMT-0400 (EDT): Running command
[INFO] Thu Jul 14 2016 12:08:56 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[ERROR] Thu Jul 14 2016 12:09:07 GMT-0400 (EDT): BaseError: API root RAML path was not found.
    at getRootRamlPath (/usr/local/lib/node_modules/api-sync/lib/factories/createStrategyFactory.js:117:27)
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromises (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:697:14)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:123:16)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Thu Jul 14 2016 12:10:06 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Thu Jul 14 2016 12:10:06 GMT-0400 (EDT): Running command
[INFO] Thu Jul 14 2016 12:10:06 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[ERROR] Thu Jul 14 2016 12:10:18 GMT-0400 (EDT): BaseError: API root RAML path was not found.
    at getRootRamlPath (/usr/local/lib/node_modules/api-sync/lib/factories/createStrategyFactory.js:117:27)
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromises (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:697:14)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:123:16)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Thu Jul 14 2016 12:11:28 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Thu Jul 14 2016 12:11:28 GMT-0400 (EDT): Running command
[INFO] Thu Jul 14 2016 12:11:28 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[ERROR] Thu Jul 14 2016 12:11:36 GMT-0400 (EDT): BaseError: API root RAML path was not found.
    at getRootRamlPath (/usr/local/lib/node_modules/api-sync/lib/factories/createStrategyFactory.js:117:27)
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromises (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:697:14)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:123:16)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Thu Jul 14 2016 12:15:29 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Thu Jul 14 2016 12:15:29 GMT-0400 (EDT): Running command
[INFO] Thu Jul 14 2016 12:15:29 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[ERROR] Thu Jul 14 2016 12:16:02 GMT-0400 (EDT): BaseError: API root RAML path was not found.
    at getRootRamlPath (/usr/local/lib/node_modules/api-sync/lib/factories/createStrategyFactory.js:117:27)
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromises (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:697:14)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:123:16)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Thu Jul 14 2016 12:16:17 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Thu Jul 14 2016 12:16:17 GMT-0400 (EDT): Running command
[INFO] Thu Jul 14 2016 12:16:17 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[ERROR] Thu Jul 14 2016 12:16:26 GMT-0400 (EDT): BaseError: API root RAML path was not found.
    at getRootRamlPath (/usr/local/lib/node_modules/api-sync/lib/factories/createStrategyFactory.js:117:27)
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromises (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:697:14)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:123:16)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Thu Jul 14 2016 12:16:42 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Thu Jul 14 2016 12:16:42 GMT-0400 (EDT): Running command
[INFO] Thu Jul 14 2016 12:16:42 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[ERROR] Thu Jul 14 2016 12:16:53 GMT-0400 (EDT): BaseError: API root RAML path was not found.
    at getRootRamlPath (/usr/local/lib/node_modules/api-sync/lib/factories/createStrategyFactory.js:117:27)
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromises (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:697:14)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:123:16)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Thu Jul 14 2016 12:17:12 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Thu Jul 14 2016 12:17:13 GMT-0400 (EDT): Running command
[INFO] Thu Jul 14 2016 12:17:13 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[INFO] Thu Jul 14 2016 12:17:25 GMT-0400 (EDT): Creating API
[INFO] Thu Jul 14 2016 12:17:25 GMT-0400 (EDT): API created
[INFO] Thu Jul 14 2016 12:17:25 GMT-0400 (EDT): Uploading the root RAML
[INFO] Thu Jul 14 2016 12:17:26 GMT-0400 (EDT): Root raml: jukebox-api.raml uploaded
[INFO] Thu Jul 14 2016 12:17:26 GMT-0400 (EDT): Setting the environment
[INFO] Thu Jul 14 2016 12:17:27 GMT-0400 (EDT): Current setup:
- Business group: Independent
- API: Jukebox 1
[INFO] Thu Jul 14 2016 12:17:28 GMT-0400 (EDT): Pushing new files...
[INFO] Thu Jul 14 2016 12:17:28 GMT-0400 (EDT): Uploading: README.md
[INFO] Thu Jul 14 2016 12:17:29 GMT-0400 (EDT): Uploading: heybulldog.mp3
[INFO] Thu Jul 14 2016 12:17:32 GMT-0400 (EDT): Uploading: jukebox-include-album-new.sample
[INFO] Thu Jul 14 2016 12:17:33 GMT-0400 (EDT): Uploading: jukebox-include-album-retrieve.sample
[INFO] Thu Jul 14 2016 12:17:34 GMT-0400 (EDT): Uploading: jukebox-include-album-songs.sample
[INFO] Thu Jul 14 2016 12:17:34 GMT-0400 (EDT): Uploading: jukebox-include-album.schema
[INFO] Thu Jul 14 2016 12:17:35 GMT-0400 (EDT): Uploading: jukebox-include-albums.sample
[INFO] Thu Jul 14 2016 12:17:36 GMT-0400 (EDT): Uploading: jukebox-include-artist-albums.sample
[INFO] Thu Jul 14 2016 12:17:36 GMT-0400 (EDT): Uploading: jukebox-include-artist-new.sample
[INFO] Thu Jul 14 2016 12:17:37 GMT-0400 (EDT): Uploading: jukebox-include-artist-retrieve.sample
[INFO] Thu Jul 14 2016 12:17:37 GMT-0400 (EDT): Uploading: jukebox-include-artist.schema
[INFO] Thu Jul 14 2016 12:17:38 GMT-0400 (EDT): Uploading: jukebox-include-artists.sample
[INFO] Thu Jul 14 2016 12:17:39 GMT-0400 (EDT): Uploading: jukebox-include-song-new.sample
[INFO] Thu Jul 14 2016 12:17:39 GMT-0400 (EDT): Uploading: jukebox-include-song-retrieve.sample
[INFO] Thu Jul 14 2016 12:17:40 GMT-0400 (EDT): Uploading: jukebox-include-song.schema
[INFO] Thu Jul 14 2016 12:17:41 GMT-0400 (EDT): Uploading: jukebox-include-songs.sample
[INFO] Thu Jul 14 2016 12:17:41 GMT-0400 (EDT): + README.md new file
+ heybulldog.mp3 new file
+ jukebox-include-album-new.sample new file
+ jukebox-include-album-retrieve.sample new file
+ jukebox-include-album-songs.sample new file
+ jukebox-include-album.schema new file
+ jukebox-include-albums.sample new file
+ jukebox-include-artist-albums.sample new file
+ jukebox-include-artist-new.sample new file
+ jukebox-include-artist-retrieve.sample new file
+ jukebox-include-artist.schema new file
+ jukebox-include-artists.sample new file
+ jukebox-include-song-new.sample new file
+ jukebox-include-song-retrieve.sample new file
+ jukebox-include-song.schema new file
+ jukebox-include-songs.sample new file
[DEBUG] Thu Jul 14 2016 12:17:41 GMT-0400 (EDT): Command completed successfully
[DEBUG] Thu Jul 14 2016 12:20:49 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Thu Jul 14 2016 12:20:49 GMT-0400 (EDT): Running command
[ERROR] Thu Jul 14 2016 12:20:49 GMT-0400 (EDT): BaseError: This folder has the following setup 
bussinesGroup: Independent
api: Jukebox
version: 1
    at /usr/local/lib/node_modules/api-sync/lib/strategies/validateNoSetupDoneStrategy.js:10:38
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromiseAtPostResolution (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:245:10)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Thu Jul 14 2016 12:21:53 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Thu Jul 14 2016 12:21:53 GMT-0400 (EDT): Running command
[ERROR] Thu Jul 14 2016 12:21:53 GMT-0400 (EDT): BaseError: This folder has the following setup 
bussinesGroup: Independent
api: Jukebox
version: 1
    at /usr/local/lib/node_modules/api-sync/lib/strategies/validateNoSetupDoneStrategy.js:10:38
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromiseAtPostResolution (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:245:10)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Thu Jul 14 2016 12:22:16 GMT-0400 (EDT): Parsed input and found command: cleanup
[DEBUG] Thu Jul 14 2016 12:22:16 GMT-0400 (EDT): Running command
[INFO] Thu Jul 14 2016 12:22:16 GMT-0400 (EDT): Cleanup successful
[DEBUG] Thu Jul 14 2016 12:22:16 GMT-0400 (EDT): Command completed successfully
[DEBUG] Thu Jul 14 2016 12:22:33 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Thu Jul 14 2016 12:22:33 GMT-0400 (EDT): Running command
[INFO] Thu Jul 14 2016 12:22:33 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[INFO] Thu Jul 14 2016 12:22:44 GMT-0400 (EDT): Creating API
[INFO] Thu Jul 14 2016 12:22:44 GMT-0400 (EDT): API created
[INFO] Thu Jul 14 2016 12:22:44 GMT-0400 (EDT): Uploading the root RAML
[INFO] Thu Jul 14 2016 12:22:45 GMT-0400 (EDT): Root raml: jukebox-api.raml uploaded
[INFO] Thu Jul 14 2016 12:22:45 GMT-0400 (EDT): Setting the environment
[INFO] Thu Jul 14 2016 12:22:46 GMT-0400 (EDT): Current setup:
- Business group: Independent
- API: Jukebox 1
[INFO] Thu Jul 14 2016 12:22:47 GMT-0400 (EDT): Pushing new files...
[INFO] Thu Jul 14 2016 12:22:47 GMT-0400 (EDT): Uploading: README.md
[INFO] Thu Jul 14 2016 12:22:47 GMT-0400 (EDT): Uploading: heybulldog.mp3
[INFO] Thu Jul 14 2016 12:22:51 GMT-0400 (EDT): Uploading: jukebox-include-album-new.sample
[INFO] Thu Jul 14 2016 12:22:52 GMT-0400 (EDT): Uploading: jukebox-include-album-retrieve.sample
[INFO] Thu Jul 14 2016 12:22:52 GMT-0400 (EDT): Uploading: jukebox-include-album-songs.sample
[INFO] Thu Jul 14 2016 12:22:53 GMT-0400 (EDT): Uploading: jukebox-include-album.schema
[INFO] Thu Jul 14 2016 12:22:54 GMT-0400 (EDT): Uploading: jukebox-include-albums.sample
[INFO] Thu Jul 14 2016 12:22:54 GMT-0400 (EDT): Uploading: jukebox-include-artist-albums.sample
[INFO] Thu Jul 14 2016 12:22:55 GMT-0400 (EDT): Uploading: jukebox-include-artist-new.sample
[INFO] Thu Jul 14 2016 12:22:55 GMT-0400 (EDT): Uploading: jukebox-include-artist-retrieve.sample
[INFO] Thu Jul 14 2016 12:22:56 GMT-0400 (EDT): Uploading: jukebox-include-artist.schema
[INFO] Thu Jul 14 2016 12:22:57 GMT-0400 (EDT): Uploading: jukebox-include-artists.sample
[INFO] Thu Jul 14 2016 12:22:57 GMT-0400 (EDT): Uploading: jukebox-include-song-new.sample
[INFO] Thu Jul 14 2016 12:22:58 GMT-0400 (EDT): Uploading: jukebox-include-song-retrieve.sample
[INFO] Thu Jul 14 2016 12:22:59 GMT-0400 (EDT): Uploading: jukebox-include-song.schema
[INFO] Thu Jul 14 2016 12:22:59 GMT-0400 (EDT): Uploading: jukebox-include-songs.sample
[INFO] Thu Jul 14 2016 12:23:00 GMT-0400 (EDT): + README.md new file
+ heybulldog.mp3 new file
+ jukebox-include-album-new.sample new file
+ jukebox-include-album-retrieve.sample new file
+ jukebox-include-album-songs.sample new file
+ jukebox-include-album.schema new file
+ jukebox-include-albums.sample new file
+ jukebox-include-artist-albums.sample new file
+ jukebox-include-artist-new.sample new file
+ jukebox-include-artist-retrieve.sample new file
+ jukebox-include-artist.schema new file
+ jukebox-include-artists.sample new file
+ jukebox-include-song-new.sample new file
+ jukebox-include-song-retrieve.sample new file
+ jukebox-include-song.schema new file
+ jukebox-include-songs.sample new file
[DEBUG] Thu Jul 14 2016 12:23:00 GMT-0400 (EDT): Command completed successfully
[DEBUG] Thu Jul 14 2016 12:23:33 GMT-0400 (EDT): Parsed input and found command: cleanup
[DEBUG] Thu Jul 14 2016 12:23:33 GMT-0400 (EDT): Running command
[INFO] Thu Jul 14 2016 12:23:33 GMT-0400 (EDT): Cleanup successful
[DEBUG] Thu Jul 14 2016 12:23:33 GMT-0400 (EDT): Command completed successfully
[DEBUG] Thu Jul 14 2016 12:26:07 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Thu Jul 14 2016 12:26:07 GMT-0400 (EDT): Running command
[INFO] Thu Jul 14 2016 12:26:07 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[INFO] Thu Jul 14 2016 12:26:23 GMT-0400 (EDT): Creating API version
[INFO] Thu Jul 14 2016 12:26:23 GMT-0400 (EDT): API version created
[INFO] Thu Jul 14 2016 12:26:23 GMT-0400 (EDT): Uploading the root RAML
[INFO] Thu Jul 14 2016 12:26:24 GMT-0400 (EDT): Root raml: jukebox-api.raml uploaded
[INFO] Thu Jul 14 2016 12:26:24 GMT-0400 (EDT): Setting the environment
[INFO] Thu Jul 14 2016 12:26:25 GMT-0400 (EDT): Current setup:
- Business group: Independent
- API: Jukebox 1.1
[INFO] Thu Jul 14 2016 12:26:26 GMT-0400 (EDT): Pushing new files...
[INFO] Thu Jul 14 2016 12:26:26 GMT-0400 (EDT): Uploading: README.md
[INFO] Thu Jul 14 2016 12:26:26 GMT-0400 (EDT): Uploading: heybulldog.mp3
[INFO] Thu Jul 14 2016 12:26:30 GMT-0400 (EDT): Uploading: jukebox-include-album-new.sample
[INFO] Thu Jul 14 2016 12:26:30 GMT-0400 (EDT): Uploading: jukebox-include-album-retrieve.sample
[INFO] Thu Jul 14 2016 12:26:31 GMT-0400 (EDT): Uploading: jukebox-include-album-songs.sample
[INFO] Thu Jul 14 2016 12:26:32 GMT-0400 (EDT): Uploading: jukebox-include-album.schema
[INFO] Thu Jul 14 2016 12:26:33 GMT-0400 (EDT): Uploading: jukebox-include-albums.sample
[INFO] Thu Jul 14 2016 12:26:33 GMT-0400 (EDT): Uploading: jukebox-include-artist-albums.sample
[INFO] Thu Jul 14 2016 12:26:34 GMT-0400 (EDT): Uploading: jukebox-include-artist-new.sample
[INFO] Thu Jul 14 2016 12:26:35 GMT-0400 (EDT): Uploading: jukebox-include-artist-retrieve.sample
[INFO] Thu Jul 14 2016 12:26:35 GMT-0400 (EDT): Uploading: jukebox-include-artist.schema
[INFO] Thu Jul 14 2016 12:26:36 GMT-0400 (EDT): Uploading: jukebox-include-artists.sample
[INFO] Thu Jul 14 2016 12:26:36 GMT-0400 (EDT): Uploading: jukebox-include-song-new.sample
[INFO] Thu Jul 14 2016 12:26:37 GMT-0400 (EDT): Uploading: jukebox-include-song-retrieve.sample
[INFO] Thu Jul 14 2016 12:26:37 GMT-0400 (EDT): Uploading: jukebox-include-song.schema
[INFO] Thu Jul 14 2016 12:26:38 GMT-0400 (EDT): Uploading: jukebox-include-songs.sample
[INFO] Thu Jul 14 2016 12:26:39 GMT-0400 (EDT): + README.md new file
+ heybulldog.mp3 new file
+ jukebox-include-album-new.sample new file
+ jukebox-include-album-retrieve.sample new file
+ jukebox-include-album-songs.sample new file
+ jukebox-include-album.schema new file
+ jukebox-include-albums.sample new file
+ jukebox-include-artist-albums.sample new file
+ jukebox-include-artist-new.sample new file
+ jukebox-include-artist-retrieve.sample new file
+ jukebox-include-artist.schema new file
+ jukebox-include-artists.sample new file
+ jukebox-include-song-new.sample new file
+ jukebox-include-song-retrieve.sample new file
+ jukebox-include-song.schema new file
+ jukebox-include-songs.sample new file
[DEBUG] Thu Jul 14 2016 12:26:39 GMT-0400 (EDT): Command completed successfully
[DEBUG] Thu Jul 14 2016 12:27:02 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Thu Jul 14 2016 12:27:03 GMT-0400 (EDT): Running command
[ERROR] Thu Jul 14 2016 12:27:03 GMT-0400 (EDT): BaseError: This folder has the following setup 
bussinesGroup: Independent
api: Jukebox
version: 1.1
    at /usr/local/lib/node_modules/api-sync/lib/strategies/validateNoSetupDoneStrategy.js:10:38
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromiseAtPostResolution (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:245:10)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Thu Jul 14 2016 12:27:13 GMT-0400 (EDT): Parsed input and found command: cleanup
[DEBUG] Thu Jul 14 2016 12:27:13 GMT-0400 (EDT): Running command
[INFO] Thu Jul 14 2016 12:27:13 GMT-0400 (EDT): Cleanup successful
[DEBUG] Thu Jul 14 2016 12:27:13 GMT-0400 (EDT): Command completed successfully
[DEBUG] Thu Jul 14 2016 12:27:38 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Thu Jul 14 2016 12:27:38 GMT-0400 (EDT): Running command
[INFO] Thu Jul 14 2016 12:27:38 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[ERROR] Thu Jul 14 2016 12:27:50 GMT-0400 (EDT): BaseError: Can't create API version. 
There is a version named 1.1, id: 83009
    at checkAPIVersionNameIsNotUsed (/usr/local/lib/node_modules/api-sync/lib/factories/createStrategyFactory.js:148:32)
    at Object.getAPIVersionName (/usr/local/lib/node_modules/api-sync/lib/factories/createStrategyFactory.js:109:16)
    at /usr/local/lib/node_modules/api-sync/lib/controllers/createController.js:41:35
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Thu Jul 14 2016 12:28:02 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Thu Jul 14 2016 12:28:02 GMT-0400 (EDT): Running command
[INFO] Thu Jul 14 2016 12:28:02 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[INFO] Thu Jul 14 2016 12:28:16 GMT-0400 (EDT): Creating API version
[INFO] Thu Jul 14 2016 12:28:17 GMT-0400 (EDT): API version created
[INFO] Thu Jul 14 2016 12:28:17 GMT-0400 (EDT): Uploading the root RAML
[INFO] Thu Jul 14 2016 12:28:18 GMT-0400 (EDT): Root raml: jukebox-api.raml uploaded
[INFO] Thu Jul 14 2016 12:28:18 GMT-0400 (EDT): Setting the environment
[INFO] Thu Jul 14 2016 12:28:18 GMT-0400 (EDT): Current setup:
- Business group: Independent
- API: Jukebox 1.2
[INFO] Thu Jul 14 2016 12:28:19 GMT-0400 (EDT): Pushing new files...
[INFO] Thu Jul 14 2016 12:28:19 GMT-0400 (EDT): Uploading: README.md
[INFO] Thu Jul 14 2016 12:28:20 GMT-0400 (EDT): Uploading: heybulldog.mp3
[INFO] Thu Jul 14 2016 12:28:23 GMT-0400 (EDT): Uploading: jukebox-include-album-new.sample
[INFO] Thu Jul 14 2016 12:28:25 GMT-0400 (EDT): Uploading: jukebox-include-album-retrieve.sample
[INFO] Thu Jul 14 2016 12:28:26 GMT-0400 (EDT): Uploading: jukebox-include-album-songs.sample
[INFO] Thu Jul 14 2016 12:28:27 GMT-0400 (EDT): Uploading: jukebox-include-album.schema
[INFO] Thu Jul 14 2016 12:28:28 GMT-0400 (EDT): Uploading: jukebox-include-albums.sample
[INFO] Thu Jul 14 2016 12:28:28 GMT-0400 (EDT): Uploading: jukebox-include-artist-albums.sample
[INFO] Thu Jul 14 2016 12:28:29 GMT-0400 (EDT): Uploading: jukebox-include-artist-new.sample
[INFO] Thu Jul 14 2016 12:28:30 GMT-0400 (EDT): Uploading: jukebox-include-artist-retrieve.sample
[INFO] Thu Jul 14 2016 12:28:31 GMT-0400 (EDT): Uploading: jukebox-include-artist.schema
[INFO] Thu Jul 14 2016 12:28:32 GMT-0400 (EDT): Uploading: jukebox-include-artists.sample
[INFO] Thu Jul 14 2016 12:28:32 GMT-0400 (EDT): Uploading: jukebox-include-song-new.sample
[INFO] Thu Jul 14 2016 12:28:33 GMT-0400 (EDT): Uploading: jukebox-include-song-retrieve.sample
[INFO] Thu Jul 14 2016 12:28:34 GMT-0400 (EDT): Uploading: jukebox-include-song.schema
[INFO] Thu Jul 14 2016 12:28:34 GMT-0400 (EDT): Uploading: jukebox-include-songs.sample
[INFO] Thu Jul 14 2016 12:28:35 GMT-0400 (EDT): + README.md new file
+ heybulldog.mp3 new file
+ jukebox-include-album-new.sample new file
+ jukebox-include-album-retrieve.sample new file
+ jukebox-include-album-songs.sample new file
+ jukebox-include-album.schema new file
+ jukebox-include-albums.sample new file
+ jukebox-include-artist-albums.sample new file
+ jukebox-include-artist-new.sample new file
+ jukebox-include-artist-retrieve.sample new file
+ jukebox-include-artist.schema new file
+ jukebox-include-artists.sample new file
+ jukebox-include-song-new.sample new file
+ jukebox-include-song-retrieve.sample new file
+ jukebox-include-song.schema new file
+ jukebox-include-songs.sample new file
[DEBUG] Thu Jul 14 2016 12:28:35 GMT-0400 (EDT): Command completed successfully
[ERROR] Fri Jul 15 2016 11:03:44 GMT-0400 (EDT): BaseError: Usage:
  first choose an API: 
    api-sync setup    for an interactive wizard
  or if you know your API details
    api-sync setup --bizGroup=(Business group id) --api=(API id) --apiVersion=(API version id) -p (Run pull after setup)

  or if you want to create a new API and upload files
    api-sync create    for an interactive wizard
  or
    api-sync create --bizGroup=(Business group id) (--apiName=(API name)|--apiId=(API id)) --apiVersion=(API version name) --rootRaml=(rootRaml path, must be in the root folder)

  then
    api-sync pull     download the files from Anypoint Platform
    api-sync push     upload your files to Anypoint Platform
    api-sync cleanup  deletes all metadata for current folder. This include login information and setup configuration.
    api-sync status   show the files status
  for a detailed description of a command, use it with --help

    at Object.get (/usr/local/lib/node_modules/api-sync/lib/factories/commandFactory.js:14:30)
    at Object.run (/usr/local/lib/node_modules/api-sync/lib/application.js:9:29)
    at module.exports (/usr/local/lib/node_modules/api-sync/lib/api-sync.js:8:6)
    at Object.<anonymous> (/usr/local/lib/node_modules/api-sync/bin/index.js:8:1)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.runMain (module.js:575:10)
    at run (bootstrap_node.js:352:7)
    at startup (bootstrap_node.js:144:9)
    at bootstrap_node.js:467:3
[ERROR] Fri Jul 15 2016 11:13:12 GMT-0400 (EDT): BaseError: Usage:
  first choose an API: 
    api-sync setup    for an interactive wizard
  or if you know your API details
    api-sync setup --bizGroup=(Business group id) --api=(API id) --apiVersion=(API version id) -p (Run pull after setup)

  or if you want to create a new API and upload files
    api-sync create    for an interactive wizard
  or
    api-sync create --bizGroup=(Business group id) (--apiName=(API name)|--apiId=(API id)) --apiVersion=(API version name) --rootRaml=(rootRaml path, must be in the root folder)

  then
    api-sync pull     download the files from Anypoint Platform
    api-sync push     upload your files to Anypoint Platform
    api-sync cleanup  deletes all metadata for current folder. This include login information and setup configuration.
    api-sync status   show the files status
  for a detailed description of a command, use it with --help

    at Object.get (/usr/local/lib/node_modules/api-sync/lib/factories/commandFactory.js:14:30)
    at Object.run (/usr/local/lib/node_modules/api-sync/lib/application.js:9:29)
    at module.exports (/usr/local/lib/node_modules/api-sync/lib/api-sync.js:8:6)
    at Object.<anonymous> (/usr/local/lib/node_modules/api-sync/bin/index.js:8:1)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.runMain (module.js:575:10)
    at run (bootstrap_node.js:352:7)
    at startup (bootstrap_node.js:144:9)
    at bootstrap_node.js:467:3
[DEBUG] Fri Jul 15 2016 11:13:37 GMT-0400 (EDT): Parsed input and found command: cleanup
[DEBUG] Fri Jul 15 2016 11:13:37 GMT-0400 (EDT): Running command
[INFO] Fri Jul 15 2016 11:13:37 GMT-0400 (EDT): Cleanup successful
[DEBUG] Fri Jul 15 2016 11:13:37 GMT-0400 (EDT): Command completed successfully
[DEBUG] Fri Jul 15 2016 15:41:11 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Fri Jul 15 2016 15:41:11 GMT-0400 (EDT): Running command
[INFO] Fri Jul 15 2016 15:41:11 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[INFO] Fri Jul 15 2016 15:42:50 GMT-0400 (EDT): Creating API
[ERROR] Fri Jul 15 2016 15:42:51 GMT-0400 (EDT): Unexpected error.
For more information check the log file: .api-sync.log located in you home folder
[DEBUG] Fri Jul 15 2016 15:42:51 GMT-0400 (EDT): Error: Forbidden
    at Request.callback (/usr/local/lib/node_modules/api-sync/node_modules/superagent/lib/node/index.js:698:17)
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/api-sync/node_modules/superagent/lib/node/index.js:922:12)
    at emitNone (events.js:91:20)
    at IncomingMessage.emit (events.js:185:7)
    at endReadableNT (_stream_readable.js:973:12)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)
[DEBUG] Fri Jul 15 2016 15:44:08 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Fri Jul 15 2016 15:44:08 GMT-0400 (EDT): Running command
[ERROR] Fri Jul 15 2016 15:44:08 GMT-0400 (EDT): BaseError: Usage: api-sync create [--bizGroup=(Business group id) (--apiName=(API name)|--apiId=(API id)) --apiVersion=(API version name) --rootRaml=(API root RAML path)]
    at Object.validateInput (/usr/local/lib/node_modules/api-sync/lib/commands/createCommand.js:41:28)
    at Object.run (/usr/local/lib/node_modules/api-sync/lib/utils/commandRunner.js:12:23)
    at /usr/local/lib/node_modules/api-sync/lib/application.js:15:34
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromiseAtPostResolution (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:245:10)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Fri Jul 15 2016 15:46:27 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Fri Jul 15 2016 15:46:27 GMT-0400 (EDT): Running command
[ERROR] Fri Jul 15 2016 15:46:27 GMT-0400 (EDT): BaseError: Usage: api-sync create [--bizGroup=(Business group id) (--apiName=(API name)|--apiId=(API id)) --apiVersion=(API version name) --rootRaml=(API root RAML path)]
    at Object.validateInput (/usr/local/lib/node_modules/api-sync/lib/commands/createCommand.js:41:28)
    at Object.run (/usr/local/lib/node_modules/api-sync/lib/utils/commandRunner.js:12:23)
    at /usr/local/lib/node_modules/api-sync/lib/application.js:15:34
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromiseAtPostResolution (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:245:10)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Fri Jul 15 2016 15:46:54 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Fri Jul 15 2016 15:46:54 GMT-0400 (EDT): Running command
[ERROR] Fri Jul 15 2016 15:46:54 GMT-0400 (EDT): BaseError: Usage: api-sync create [--bizGroup=(Business group id) (--apiName=(API name)|--apiId=(API id)) --apiVersion=(API version name) --rootRaml=(API root RAML path)]
    at Object.validateInput (/usr/local/lib/node_modules/api-sync/lib/commands/createCommand.js:41:28)
    at Object.run (/usr/local/lib/node_modules/api-sync/lib/utils/commandRunner.js:12:23)
    at /usr/local/lib/node_modules/api-sync/lib/application.js:15:34
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromiseAtPostResolution (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:245:10)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Fri Jul 15 2016 15:47:41 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Fri Jul 15 2016 15:47:41 GMT-0400 (EDT): Running command
[ERROR] Fri Jul 15 2016 15:47:41 GMT-0400 (EDT): BaseError: Usage: api-sync create [--bizGroup=(Business group id) (--apiName=(API name)|--apiId=(API id)) --apiVersion=(API version name) --rootRaml=(API root RAML path)]
    at Object.validateInput (/usr/local/lib/node_modules/api-sync/lib/commands/createCommand.js:41:28)
    at Object.run (/usr/local/lib/node_modules/api-sync/lib/utils/commandRunner.js:12:23)
    at /usr/local/lib/node_modules/api-sync/lib/application.js:15:34
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromiseAtPostResolution (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:245:10)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Fri Jul 15 2016 15:49:00 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Fri Jul 15 2016 15:49:01 GMT-0400 (EDT): Running command
[INFO] Fri Jul 15 2016 15:49:01 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[INFO] Fri Jul 15 2016 15:49:15 GMT-0400 (EDT): Creating API
[ERROR] Fri Jul 15 2016 15:49:15 GMT-0400 (EDT): Unexpected error.
For more information check the log file: .api-sync.log located in you home folder
[DEBUG] Fri Jul 15 2016 15:49:15 GMT-0400 (EDT): Error: Forbidden
    at Request.callback (/usr/local/lib/node_modules/api-sync/node_modules/superagent/lib/node/index.js:698:17)
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/api-sync/node_modules/superagent/lib/node/index.js:922:12)
    at emitNone (events.js:91:20)
    at IncomingMessage.emit (events.js:185:7)
    at endReadableNT (_stream_readable.js:973:12)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)
[DEBUG] Fri Jul 15 2016 15:52:04 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Fri Jul 15 2016 15:52:05 GMT-0400 (EDT): Running command
[INFO] Fri Jul 15 2016 15:52:05 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[INFO] Fri Jul 15 2016 15:52:22 GMT-0400 (EDT): Creating API
[INFO] Fri Jul 15 2016 15:52:23 GMT-0400 (EDT): API created
[INFO] Fri Jul 15 2016 15:52:23 GMT-0400 (EDT): Uploading the root RAML
[INFO] Fri Jul 15 2016 15:52:23 GMT-0400 (EDT): Root raml: api.raml uploaded
[INFO] Fri Jul 15 2016 15:52:23 GMT-0400 (EDT): Setting the environment
[INFO] Fri Jul 15 2016 15:52:24 GMT-0400 (EDT): Current setup:
- Business group: Mulesoft
- API: Cocoa 1
[INFO] Fri Jul 15 2016 15:52:25 GMT-0400 (EDT): New folders will be created empty. Files will be added next
[INFO] Fri Jul 15 2016 15:52:25 GMT-0400 (EDT): Creating folder: images
[INFO] Fri Jul 15 2016 15:52:25 GMT-0400 (EDT): Pushing new files...
[INFO] Fri Jul 15 2016 15:52:25 GMT-0400 (EDT): Uploading: README.md
[INFO] Fri Jul 15 2016 15:52:26 GMT-0400 (EDT): Uploading: images/testImage.jpg
[INFO] Fri Jul 15 2016 15:52:27 GMT-0400 (EDT): + images new folder
+ README.md new file
+ images/testImage.jpg new file
[DEBUG] Fri Jul 15 2016 15:52:27 GMT-0400 (EDT): Command completed successfully
[DEBUG] Fri Jul 15 2016 15:53:24 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Fri Jul 15 2016 15:53:24 GMT-0400 (EDT): Running command
[ERROR] Fri Jul 15 2016 15:53:24 GMT-0400 (EDT): BaseError: This folder has the following setup 
bussinesGroup: Mulesoft
api: Cocoa
version: 1
    at /usr/local/lib/node_modules/api-sync/lib/strategies/validateNoSetupDoneStrategy.js:10:38
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromiseAtPostResolution (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:245:10)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Fri Jul 15 2016 15:53:58 GMT-0400 (EDT): Parsed input and found command: cleanup
[DEBUG] Fri Jul 15 2016 15:53:58 GMT-0400 (EDT): Running command
[INFO] Fri Jul 15 2016 15:53:58 GMT-0400 (EDT): Cleanup successful
[DEBUG] Fri Jul 15 2016 15:53:58 GMT-0400 (EDT): Command completed successfully
[DEBUG] Fri Jul 15 2016 15:54:03 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Fri Jul 15 2016 15:54:03 GMT-0400 (EDT): Running command
[INFO] Fri Jul 15 2016 15:54:03 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[INFO] Fri Jul 15 2016 15:54:15 GMT-0400 (EDT): Creating API
[INFO] Fri Jul 15 2016 15:54:16 GMT-0400 (EDT): API created
[INFO] Fri Jul 15 2016 15:54:16 GMT-0400 (EDT): Uploading the root RAML
[INFO] Fri Jul 15 2016 15:54:17 GMT-0400 (EDT): Root raml: api.raml uploaded
[INFO] Fri Jul 15 2016 15:54:17 GMT-0400 (EDT): Setting the environment
[INFO] Fri Jul 15 2016 15:54:17 GMT-0400 (EDT): Current setup:
- Business group: Mulesoft
- API: Cocoa Noir 1
[INFO] Fri Jul 15 2016 15:54:19 GMT-0400 (EDT): New folders will be created empty. Files will be added next
[INFO] Fri Jul 15 2016 15:54:19 GMT-0400 (EDT): Creating folder: images
[INFO] Fri Jul 15 2016 15:54:19 GMT-0400 (EDT): Pushing new files...
[INFO] Fri Jul 15 2016 15:54:19 GMT-0400 (EDT): Uploading: README.md
[INFO] Fri Jul 15 2016 15:54:20 GMT-0400 (EDT): Uploading: images/testImage.jpg
[INFO] Fri Jul 15 2016 15:54:21 GMT-0400 (EDT): + images new folder
+ README.md new file
+ images/testImage.jpg new file
[DEBUG] Fri Jul 15 2016 15:54:21 GMT-0400 (EDT): Command completed successfully
[DEBUG] Fri Jul 15 2016 15:55:04 GMT-0400 (EDT): Parsed input and found command: cleanup
[DEBUG] Fri Jul 15 2016 15:55:04 GMT-0400 (EDT): Running command
[INFO] Fri Jul 15 2016 15:55:04 GMT-0400 (EDT): Cleanup successful
[DEBUG] Fri Jul 15 2016 15:55:04 GMT-0400 (EDT): Command completed successfully
[DEBUG] Fri Jul 15 2016 15:55:22 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Fri Jul 15 2016 15:55:22 GMT-0400 (EDT): Running command
[INFO] Fri Jul 15 2016 15:55:22 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[INFO] Fri Jul 15 2016 15:55:38 GMT-0400 (EDT): Creating API
[INFO] Fri Jul 15 2016 15:55:38 GMT-0400 (EDT): API created
[INFO] Fri Jul 15 2016 15:55:38 GMT-0400 (EDT): Uploading the root RAML
[INFO] Fri Jul 15 2016 15:55:39 GMT-0400 (EDT): Root raml: api.raml uploaded
[INFO] Fri Jul 15 2016 15:55:39 GMT-0400 (EDT): Setting the environment
[INFO] Fri Jul 15 2016 15:55:39 GMT-0400 (EDT): Current setup:
- Business group: Mulesoft
- API: Cocoa Noir 1
[INFO] Fri Jul 15 2016 15:55:40 GMT-0400 (EDT): New folders will be created empty. Files will be added next
[INFO] Fri Jul 15 2016 15:55:40 GMT-0400 (EDT): Creating folder: images
[INFO] Fri Jul 15 2016 15:55:40 GMT-0400 (EDT): Pushing new files...
[INFO] Fri Jul 15 2016 15:55:40 GMT-0400 (EDT): Uploading: README.md
[INFO] Fri Jul 15 2016 15:55:41 GMT-0400 (EDT): Uploading: images/testImage.jpg
[INFO] Fri Jul 15 2016 15:55:42 GMT-0400 (EDT): + images new folder
+ README.md new file
+ images/testImage.jpg new file
[DEBUG] Fri Jul 15 2016 15:55:42 GMT-0400 (EDT): Command completed successfully
[DEBUG] Fri Jul 15 2016 15:57:48 GMT-0400 (EDT): Parsed input and found command: push
[DEBUG] Fri Jul 15 2016 15:57:48 GMT-0400 (EDT): Running command
[INFO] Fri Jul 15 2016 15:57:48 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[INFO] Fri Jul 15 2016 15:58:00 GMT-0400 (EDT): Nothing to push
[DEBUG] Fri Jul 15 2016 15:58:00 GMT-0400 (EDT): Command completed successfully
[DEBUG] Fri Jul 15 2016 15:59:38 GMT-0400 (EDT): Parsed input and found command: push
[DEBUG] Fri Jul 15 2016 15:59:38 GMT-0400 (EDT): Running command
[INFO] Fri Jul 15 2016 15:59:38 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[INFO] Fri Jul 15 2016 15:59:52 GMT-0400 (EDT): Pushing changed files...
[INFO] Fri Jul 15 2016 15:59:52 GMT-0400 (EDT): Uploading: README.md
[INFO] Fri Jul 15 2016 15:59:53 GMT-0400 (EDT): * README.md updated
[DEBUG] Fri Jul 15 2016 15:59:53 GMT-0400 (EDT): Command completed successfully
[DEBUG] Fri Jul 15 2016 16:01:19 GMT-0400 (EDT): Parsed input and found command: pull
[DEBUG] Fri Jul 15 2016 16:01:19 GMT-0400 (EDT): Running command
[INFO] Fri Jul 15 2016 16:01:19 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[INFO] Fri Jul 15 2016 16:01:30 GMT-0400 (EDT): Downloading the API definition files...
[INFO] Fri Jul 15 2016 16:01:32 GMT-0400 (EDT): API definition files download finished
[INFO] Fri Jul 15 2016 16:01:32 GMT-0400 (EDT): + images new folder
+ README.md new file
+ api.raml new file
+ images/testImage.jpg new file
[DEBUG] Fri Jul 15 2016 16:01:32 GMT-0400 (EDT): Command completed successfully
[DEBUG] Fri Jul 15 2016 16:04:24 GMT-0400 (EDT): Parsed input and found command: cleanup
[DEBUG] Fri Jul 15 2016 16:04:24 GMT-0400 (EDT): Running command
[INFO] Fri Jul 15 2016 16:04:24 GMT-0400 (EDT): Cleanup successful
[DEBUG] Fri Jul 15 2016 16:04:24 GMT-0400 (EDT): Command completed successfully
[DEBUG] Fri Jul 15 2016 16:04:31 GMT-0400 (EDT): Parsed input and found command: setup
[DEBUG] Fri Jul 15 2016 16:04:31 GMT-0400 (EDT): Running command
[INFO] Fri Jul 15 2016 16:04:31 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[INFO] Fri Jul 15 2016 16:04:54 GMT-0400 (EDT): Current setup:
- Business group: Mulesoft
- API: David's API 1.0
[DEBUG] Fri Jul 15 2016 16:04:54 GMT-0400 (EDT): Command completed successfully
[DEBUG] Fri Jul 15 2016 16:05:20 GMT-0400 (EDT): Parsed input and found command: pull
[DEBUG] Fri Jul 15 2016 16:05:20 GMT-0400 (EDT): Running command
[ERROR] Fri Jul 15 2016 16:05:20 GMT-0400 (EDT): BaseError: Please run setup before running other commands.
    at /usr/local/lib/node_modules/api-sync/lib/strategies/validateSetupDoneStrategy.js:8:34
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromiseAtPostResolution (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:245:10)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Fri Jul 15 2016 16:05:38 GMT-0400 (EDT): Parsed input and found command: cleanup
[DEBUG] Fri Jul 15 2016 16:05:38 GMT-0400 (EDT): Running command
[INFO] Fri Jul 15 2016 16:05:38 GMT-0400 (EDT): Cleanup successful
[DEBUG] Fri Jul 15 2016 16:05:38 GMT-0400 (EDT): Command completed successfully
[DEBUG] Fri Jul 15 2016 16:05:46 GMT-0400 (EDT): Parsed input and found command: setup
[DEBUG] Fri Jul 15 2016 16:05:46 GMT-0400 (EDT): Running command
[INFO] Fri Jul 15 2016 16:05:46 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[INFO] Fri Jul 15 2016 16:06:05 GMT-0400 (EDT): Current setup:
- Business group: Mulesoft
- API: David's API 1.0
[DEBUG] Fri Jul 15 2016 16:06:05 GMT-0400 (EDT): Command completed successfully
[DEBUG] Fri Jul 15 2016 16:06:16 GMT-0400 (EDT): Parsed input and found command: pull
[DEBUG] Fri Jul 15 2016 16:06:17 GMT-0400 (EDT): Running command
[INFO] Fri Jul 15 2016 16:06:17 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[INFO] Fri Jul 15 2016 16:06:29 GMT-0400 (EDT): Downloading the API definition files...
[INFO] Fri Jul 15 2016 16:06:30 GMT-0400 (EDT): API definition files download finished
[INFO] Fri Jul 15 2016 16:06:30 GMT-0400 (EDT): + README.md new file
+ api.raml new file
[DEBUG] Fri Jul 15 2016 16:06:30 GMT-0400 (EDT): Command completed successfully
[DEBUG] Mon Jul 25 2016 15:11:33 GMT-0400 (EDT): Parsed input and found command: cleanup
[DEBUG] Mon Jul 25 2016 15:11:33 GMT-0400 (EDT): Running command
[INFO] Mon Jul 25 2016 15:11:33 GMT-0400 (EDT): Cleanup successful
[DEBUG] Mon Jul 25 2016 15:11:33 GMT-0400 (EDT): Command completed successfully
[ERROR] Mon Jul 25 2016 15:11:40 GMT-0400 (EDT): BaseError: Usage:
  first choose an API: 
    api-sync setup    for an interactive wizard
  or if you know your API details
    api-sync setup --bizGroup=(Business group id) --api=(API id) --apiVersion=(API version id) -p (Run pull after setup)

  or if you want to create a new API and upload files
    api-sync create    for an interactive wizard
  or
    api-sync create --bizGroup=(Business group id) (--apiName=(API name)|--apiId=(API id)) --apiVersion=(API version name) --rootRaml=(rootRaml path, must be in the root folder)

  then
    api-sync pull     download the files from Anypoint Platform
    api-sync push     upload your files to Anypoint Platform
    api-sync cleanup  deletes all metadata for current folder. This include login information and setup configuration.
    api-sync status   show the files status
  for a detailed description of a command, use it with --help

    at Object.get (/usr/local/lib/node_modules/api-sync/lib/factories/commandFactory.js:14:30)
    at Object.run (/usr/local/lib/node_modules/api-sync/lib/application.js:9:29)
    at module.exports (/usr/local/lib/node_modules/api-sync/lib/api-sync.js:8:6)
    at Object.<anonymous> (/usr/local/lib/node_modules/api-sync/bin/index.js:8:1)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.runMain (module.js:575:10)
    at run (bootstrap_node.js:352:7)
    at startup (bootstrap_node.js:144:9)
    at bootstrap_node.js:467:3
[DEBUG] Mon Jul 25 2016 15:14:50 GMT-0400 (EDT): Parsed input and found command: setup
[DEBUG] Mon Jul 25 2016 15:14:50 GMT-0400 (EDT): Running command
[ERROR] Mon Jul 25 2016 15:14:50 GMT-0400 (EDT): BaseError: Usage: api-sync setup [--bizGroup=(Business group id) --api=(API id) --apiVersion=(API version id) -p (Run pull after setup (optional))]
    at Object.validateInput (/usr/local/lib/node_modules/api-sync/lib/commands/setupCommand.js:36:28)
    at Object.run (/usr/local/lib/node_modules/api-sync/lib/utils/commandRunner.js:12:23)
    at /usr/local/lib/node_modules/api-sync/lib/application.js:15:34
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromiseAtPostResolution (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:245:10)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Mon Jul 25 2016 15:15:20 GMT-0400 (EDT): Parsed input and found command: setup
[DEBUG] Mon Jul 25 2016 15:15:21 GMT-0400 (EDT): Running command
[ERROR] Mon Jul 25 2016 15:15:21 GMT-0400 (EDT): BaseError: Usage: api-sync setup [--bizGroup=(Business group id) --api=(API id) --apiVersion=(API version id) -p (Run pull after setup (optional))]
    at Object.validateInput (/usr/local/lib/node_modules/api-sync/lib/commands/setupCommand.js:36:28)
    at Object.run (/usr/local/lib/node_modules/api-sync/lib/utils/commandRunner.js:12:23)
    at /usr/local/lib/node_modules/api-sync/lib/application.js:15:34
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromiseAtPostResolution (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:245:10)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Mon Jul 25 2016 15:15:50 GMT-0400 (EDT): Parsed input and found command: setup
[DEBUG] Mon Jul 25 2016 15:15:50 GMT-0400 (EDT): Running command
[ERROR] Mon Jul 25 2016 15:15:50 GMT-0400 (EDT): BaseError: Usage: api-sync setup [--bizGroup=(Business group id) --api=(API id) --apiVersion=(API version id) -p (Run pull after setup (optional))]
    at Object.validateInput (/usr/local/lib/node_modules/api-sync/lib/commands/setupCommand.js:36:28)
    at Object.run (/usr/local/lib/node_modules/api-sync/lib/utils/commandRunner.js:12:23)
    at /usr/local/lib/node_modules/api-sync/lib/application.js:15:34
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromiseAtPostResolution (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:245:10)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Mon Jul 25 2016 15:16:24 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Mon Jul 25 2016 15:16:24 GMT-0400 (EDT): Running command
[INFO] Mon Jul 25 2016 15:16:24 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[INFO] Mon Jul 25 2016 15:16:38 GMT-0400 (EDT): Creating API version
[INFO] Mon Jul 25 2016 15:16:39 GMT-0400 (EDT): API version created
[INFO] Mon Jul 25 2016 15:16:39 GMT-0400 (EDT): Uploading the root RAML
[INFO] Mon Jul 25 2016 15:16:40 GMT-0400 (EDT): Root raml: api.raml uploaded
[INFO] Mon Jul 25 2016 15:16:40 GMT-0400 (EDT): Setting the environment
[INFO] Mon Jul 25 2016 15:16:40 GMT-0400 (EDT): Current setup:
- Business group: Mulesoft
- API: David's API 2
[INFO] Mon Jul 25 2016 15:16:41 GMT-0400 (EDT): New folders will be created empty. Files will be added next
[INFO] Mon Jul 25 2016 15:16:41 GMT-0400 (EDT): Creating folder: documentation
[INFO] Mon Jul 25 2016 15:16:42 GMT-0400 (EDT): Creating folder: examples
[INFO] Mon Jul 25 2016 15:16:42 GMT-0400 (EDT): Creating folder: notebooks
[INFO] Mon Jul 25 2016 15:16:42 GMT-0400 (EDT): Creating folder: resourceTypes
[INFO] Mon Jul 25 2016 15:16:43 GMT-0400 (EDT): Creating folder: schemas
[INFO] Mon Jul 25 2016 15:16:43 GMT-0400 (EDT): Creating folder: scripts
[INFO] Mon Jul 25 2016 15:16:44 GMT-0400 (EDT): Creating folder: securitySchemes
[INFO] Mon Jul 25 2016 15:16:45 GMT-0400 (EDT): Creating folder: traits
[INFO] Mon Jul 25 2016 15:16:45 GMT-0400 (EDT): Pushing new files...
[INFO] Mon Jul 25 2016 15:16:45 GMT-0400 (EDT): Uploading: examples/friendList.json
[INFO] Mon Jul 25 2016 15:16:46 GMT-0400 (EDT): Uploading: schemas/friendsSchema.json
[INFO] Mon Jul 25 2016 15:16:49 GMT-0400 (EDT): Uploading: schemas/peopleSchema.json
[INFO] Mon Jul 25 2016 15:16:50 GMT-0400 (EDT): + documentation new folder
+ examples new folder
+ notebooks new folder
+ resourceTypes new folder
+ schemas new folder
+ scripts new folder
+ securitySchemes new folder
+ traits new folder
+ examples/friendList.json new file
+ schemas/friendsSchema.json new file
+ schemas/peopleSchema.json new file
[DEBUG] Mon Jul 25 2016 15:16:50 GMT-0400 (EDT): Command completed successfully
[DEBUG] Mon Jul 25 2016 15:20:20 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Mon Jul 25 2016 15:20:20 GMT-0400 (EDT): Running command
[ERROR] Mon Jul 25 2016 15:20:20 GMT-0400 (EDT): BaseError: This folder has the following setup 
bussinesGroup: Mulesoft
api: David's API
version: 2
    at /usr/local/lib/node_modules/api-sync/lib/strategies/validateNoSetupDoneStrategy.js:10:38
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromiseAtPostResolution (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:245:10)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Mon Jul 25 2016 15:20:35 GMT-0400 (EDT): Parsed input and found command: cleanup
[DEBUG] Mon Jul 25 2016 15:20:35 GMT-0400 (EDT): Running command
[INFO] Mon Jul 25 2016 15:20:35 GMT-0400 (EDT): Cleanup successful
[DEBUG] Mon Jul 25 2016 15:20:35 GMT-0400 (EDT): Command completed successfully
[DEBUG] Mon Jul 25 2016 15:20:41 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Mon Jul 25 2016 15:20:41 GMT-0400 (EDT): Running command
[INFO] Mon Jul 25 2016 15:20:41 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[ERROR] Mon Jul 25 2016 15:20:50 GMT-0400 (EDT): BaseError: API id was not found.
    at Object.getAPI (/usr/local/lib/node_modules/api-sync/lib/factories/createStrategyFactory.js:101:27)
    at Object.createAPIVersionStrategy.getAPIIdentifier (/usr/local/lib/node_modules/api-sync/lib/controllers/createController.js:112:35)
    at /usr/local/lib/node_modules/api-sync/lib/controllers/createController.js:37:33
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromises (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:697:14)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:123:16)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Mon Jul 25 2016 15:21:20 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Mon Jul 25 2016 15:21:20 GMT-0400 (EDT): Running command
[INFO] Mon Jul 25 2016 15:21:20 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[INFO] Mon Jul 25 2016 15:21:38 GMT-0400 (EDT): Creating API
[INFO] Mon Jul 25 2016 15:21:38 GMT-0400 (EDT): API created
[INFO] Mon Jul 25 2016 15:21:38 GMT-0400 (EDT): Uploading the root RAML
[INFO] Mon Jul 25 2016 15:21:39 GMT-0400 (EDT): Root raml: api.raml uploaded
[INFO] Mon Jul 25 2016 15:21:39 GMT-0400 (EDT): Setting the environment
[INFO] Mon Jul 25 2016 15:21:40 GMT-0400 (EDT): Current setup:
- Business group: Mulesoft
- API: David's API 1
[INFO] Mon Jul 25 2016 15:21:41 GMT-0400 (EDT): New folders will be created empty. Files will be added next
[INFO] Mon Jul 25 2016 15:21:41 GMT-0400 (EDT): Creating folder: documentation
[INFO] Mon Jul 25 2016 15:21:41 GMT-0400 (EDT): Creating folder: examples
[INFO] Mon Jul 25 2016 15:21:42 GMT-0400 (EDT): Creating folder: notebooks
[INFO] Mon Jul 25 2016 15:21:42 GMT-0400 (EDT): Creating folder: resourceTypes
[INFO] Mon Jul 25 2016 15:21:43 GMT-0400 (EDT): Creating folder: schemas
[INFO] Mon Jul 25 2016 15:21:43 GMT-0400 (EDT): Creating folder: scripts
[INFO] Mon Jul 25 2016 15:21:44 GMT-0400 (EDT): Creating folder: securitySchemes
[INFO] Mon Jul 25 2016 15:21:44 GMT-0400 (EDT): Creating folder: traits
[INFO] Mon Jul 25 2016 15:21:45 GMT-0400 (EDT): Pushing new files...
[INFO] Mon Jul 25 2016 15:21:45 GMT-0400 (EDT): Uploading: examples/friendList.json
[INFO] Mon Jul 25 2016 15:21:45 GMT-0400 (EDT): Uploading: schemas/friendsSchema.json
[INFO] Mon Jul 25 2016 15:21:46 GMT-0400 (EDT): Uploading: schemas/peopleSchema.json
[INFO] Mon Jul 25 2016 15:21:47 GMT-0400 (EDT): + documentation new folder
+ examples new folder
+ notebooks new folder
+ resourceTypes new folder
+ schemas new folder
+ scripts new folder
+ securitySchemes new folder
+ traits new folder
+ examples/friendList.json new file
+ schemas/friendsSchema.json new file
+ schemas/peopleSchema.json new file
[DEBUG] Mon Jul 25 2016 15:21:47 GMT-0400 (EDT): Command completed successfully
[DEBUG] Mon Jul 25 2016 15:23:40 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Mon Jul 25 2016 15:23:40 GMT-0400 (EDT): Running command
[ERROR] Mon Jul 25 2016 15:23:40 GMT-0400 (EDT): BaseError: This folder has the following setup 
bussinesGroup: Mulesoft
api: David's API
version: 1
    at /usr/local/lib/node_modules/api-sync/lib/strategies/validateNoSetupDoneStrategy.js:10:38
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromiseAtPostResolution (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:245:10)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Mon Jul 25 2016 15:23:52 GMT-0400 (EDT): Parsed input and found command: cleanup
[DEBUG] Mon Jul 25 2016 15:23:52 GMT-0400 (EDT): Running command
[INFO] Mon Jul 25 2016 15:23:52 GMT-0400 (EDT): Cleanup successful
[DEBUG] Mon Jul 25 2016 15:23:52 GMT-0400 (EDT): Command completed successfully
[DEBUG] Mon Jul 25 2016 15:24:06 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Mon Jul 25 2016 15:24:06 GMT-0400 (EDT): Running command
[INFO] Mon Jul 25 2016 15:24:06 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[INFO] Mon Jul 25 2016 15:24:16 GMT-0400 (EDT): Creating API
[INFO] Mon Jul 25 2016 15:24:16 GMT-0400 (EDT): API created
[INFO] Mon Jul 25 2016 15:24:16 GMT-0400 (EDT): Uploading the root RAML
[INFO] Mon Jul 25 2016 15:24:17 GMT-0400 (EDT): Root raml: api.raml uploaded
[INFO] Mon Jul 25 2016 15:24:17 GMT-0400 (EDT): Setting the environment
[INFO] Mon Jul 25 2016 15:24:18 GMT-0400 (EDT): Current setup:
- Business group: Mulesoft
- API: 90516 1
[INFO] Mon Jul 25 2016 15:24:18 GMT-0400 (EDT): New folders will be created empty. Files will be added next
[INFO] Mon Jul 25 2016 15:24:18 GMT-0400 (EDT): Creating folder: documentation
[INFO] Mon Jul 25 2016 15:24:19 GMT-0400 (EDT): Creating folder: examples
[INFO] Mon Jul 25 2016 15:24:19 GMT-0400 (EDT): Creating folder: notebooks
[INFO] Mon Jul 25 2016 15:24:20 GMT-0400 (EDT): Creating folder: resourceTypes
[INFO] Mon Jul 25 2016 15:24:20 GMT-0400 (EDT): Creating folder: schemas
[INFO] Mon Jul 25 2016 15:24:21 GMT-0400 (EDT): Creating folder: scripts
[INFO] Mon Jul 25 2016 15:24:21 GMT-0400 (EDT): Creating folder: securitySchemes
[INFO] Mon Jul 25 2016 15:24:22 GMT-0400 (EDT): Creating folder: traits
[INFO] Mon Jul 25 2016 15:24:22 GMT-0400 (EDT): Pushing new files...
[INFO] Mon Jul 25 2016 15:24:22 GMT-0400 (EDT): Uploading: examples/friendList.json
[INFO] Mon Jul 25 2016 15:24:23 GMT-0400 (EDT): Uploading: schemas/friendsSchema.json
[INFO] Mon Jul 25 2016 15:24:23 GMT-0400 (EDT): Uploading: schemas/peopleSchema.json
[INFO] Mon Jul 25 2016 15:24:24 GMT-0400 (EDT): + documentation new folder
+ examples new folder
+ notebooks new folder
+ resourceTypes new folder
+ schemas new folder
+ scripts new folder
+ securitySchemes new folder
+ traits new folder
+ examples/friendList.json new file
+ schemas/friendsSchema.json new file
+ schemas/peopleSchema.json new file
[DEBUG] Mon Jul 25 2016 15:24:24 GMT-0400 (EDT): Command completed successfully
[DEBUG] Mon Jul 25 2016 15:35:26 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Mon Jul 25 2016 15:35:26 GMT-0400 (EDT): Running command
[ERROR] Mon Jul 25 2016 15:35:26 GMT-0400 (EDT): BaseError: This folder has the following setup 
bussinesGroup: Mulesoft
api: 90516
version: 1
    at /usr/local/lib/node_modules/api-sync/lib/strategies/validateNoSetupDoneStrategy.js:10:38
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromiseAtPostResolution (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:245:10)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Mon Jul 25 2016 15:35:45 GMT-0400 (EDT): Parsed input and found command: cleanup
[DEBUG] Mon Jul 25 2016 15:35:45 GMT-0400 (EDT): Running command
[INFO] Mon Jul 25 2016 15:35:45 GMT-0400 (EDT): Cleanup successful
[DEBUG] Mon Jul 25 2016 15:35:45 GMT-0400 (EDT): Command completed successfully
[DEBUG] Mon Jul 25 2016 15:35:48 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Mon Jul 25 2016 15:35:48 GMT-0400 (EDT): Running command
[ERROR] Mon Jul 25 2016 15:35:48 GMT-0400 (EDT): BaseError: Usage: api-sync create [--bizGroup=(Business group id) (--apiName=(API name)|--apiId=(API id)) --apiVersion=(API version name) --rootRaml=(API root RAML path)]
    at Object.validateInput (/usr/local/lib/node_modules/api-sync/lib/commands/createCommand.js:41:28)
    at Object.run (/usr/local/lib/node_modules/api-sync/lib/utils/commandRunner.js:12:23)
    at /usr/local/lib/node_modules/api-sync/lib/application.js:15:34
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromiseAtPostResolution (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:245:10)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Mon Jul 25 2016 15:36:21 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Mon Jul 25 2016 15:36:22 GMT-0400 (EDT): Running command
[ERROR] Mon Jul 25 2016 15:36:22 GMT-0400 (EDT): BaseError: Usage: api-sync create [--bizGroup=(Business group id) (--apiName=(API name)|--apiId=(API id)) --apiVersion=(API version name) --rootRaml=(API root RAML path)]
    at Object.validateInput (/usr/local/lib/node_modules/api-sync/lib/commands/createCommand.js:41:28)
    at Object.run (/usr/local/lib/node_modules/api-sync/lib/utils/commandRunner.js:12:23)
    at /usr/local/lib/node_modules/api-sync/lib/application.js:15:34
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromiseAtPostResolution (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:245:10)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Mon Jul 25 2016 15:38:49 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Mon Jul 25 2016 15:38:49 GMT-0400 (EDT): Running command
[ERROR] Mon Jul 25 2016 15:38:49 GMT-0400 (EDT): BaseError: Usage: api-sync create [--bizGroup=(Business group id) (--apiName=(API name)|--apiId=(API id)) --apiVersion=(API version name) --rootRaml=(API root RAML path)]
    at Object.validateInput (/usr/local/lib/node_modules/api-sync/lib/commands/createCommand.js:41:28)
    at Object.run (/usr/local/lib/node_modules/api-sync/lib/utils/commandRunner.js:12:23)
    at /usr/local/lib/node_modules/api-sync/lib/application.js:15:34
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromiseAtPostResolution (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:245:10)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Mon Jul 25 2016 15:40:09 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Mon Jul 25 2016 15:40:09 GMT-0400 (EDT): Running command
[ERROR] Mon Jul 25 2016 15:40:09 GMT-0400 (EDT): BaseError: Usage: api-sync create [--bizGroup=(Business group id) (--apiName=(API name)|--apiId=(API id)) --apiVersion=(API version name) --rootRaml=(API root RAML path)]
    at Object.validateInput (/usr/local/lib/node_modules/api-sync/lib/commands/createCommand.js:41:28)
    at Object.run (/usr/local/lib/node_modules/api-sync/lib/utils/commandRunner.js:12:23)
    at /usr/local/lib/node_modules/api-sync/lib/application.js:15:34
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromiseAtPostResolution (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:245:10)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Mon Jul 25 2016 15:40:26 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Mon Jul 25 2016 15:40:26 GMT-0400 (EDT): Running command
[INFO] Mon Jul 25 2016 15:40:26 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[ERROR] Mon Jul 25 2016 15:40:38 GMT-0400 (EDT): BaseError: Can't create API version. 
There is a version named 1, id: 85169
    at checkAPIVersionNameIsNotUsed (/usr/local/lib/node_modules/api-sync/lib/factories/createStrategyFactory.js:148:32)
    at Object.getAPIVersionName (/usr/local/lib/node_modules/api-sync/lib/factories/createStrategyFactory.js:109:16)
    at /usr/local/lib/node_modules/api-sync/lib/controllers/createController.js:41:35
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Mon Jul 25 2016 15:41:01 GMT-0400 (EDT): Parsed input and found command: setup
[DEBUG] Mon Jul 25 2016 15:41:01 GMT-0400 (EDT): Running command
[INFO] Mon Jul 25 2016 15:41:01 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[INFO] Mon Jul 25 2016 15:41:28 GMT-0400 (EDT): Current setup:
- Business group: Mulesoft
- API: David's API 1
[DEBUG] Mon Jul 25 2016 15:41:28 GMT-0400 (EDT): Command completed successfully
[DEBUG] Mon Jul 25 2016 15:41:37 GMT-0400 (EDT): Parsed input and found command: push
[DEBUG] Mon Jul 25 2016 15:41:37 GMT-0400 (EDT): Running command
[INFO] Mon Jul 25 2016 15:41:37 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[ERROR] Mon Jul 25 2016 15:41:47 GMT-0400 (EDT): ConflictsFoundError: Conflicts found, since your last pull these changes were found:

  api.raml was created within Anypoint Platform
  examples/friendList.json was created within Anypoint Platform
  schemas/friendsSchema.json was created within Anypoint Platform
  schemas/peopleSchema.json was created within Anypoint Platform

To resolve run:
- api-sync pull (overwrites local changes)
- api-sync push -f (deletes remote API definition files and replaces them with the local ones)
    at checkConflicts (/usr/local/lib/node_modules/api-sync/lib/controllers/pushController.js:76:32)
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromises (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:697:14)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:123:16)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Mon Jul 25 2016 15:42:05 GMT-0400 (EDT): Parsed input and found command: push
[DEBUG] Mon Jul 25 2016 15:42:06 GMT-0400 (EDT): Running command
[INFO] Mon Jul 25 2016 15:42:06 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[INFO] Mon Jul 25 2016 15:42:17 GMT-0400 (EDT): Deleting all files in Anypoint Platform
[INFO] Mon Jul 25 2016 15:42:17 GMT-0400 (EDT): Deleting: examples/friendList.json
[INFO] Mon Jul 25 2016 15:42:17 GMT-0400 (EDT): Deleting: schemas/friendsSchema.json
[INFO] Mon Jul 25 2016 15:42:19 GMT-0400 (EDT): Deleting: schemas/peopleSchema.json
[INFO] Mon Jul 25 2016 15:42:19 GMT-0400 (EDT): Deleting all folders in Anypoint Platform
[INFO] Mon Jul 25 2016 15:42:19 GMT-0400 (EDT): Deleting: traits
[INFO] Mon Jul 25 2016 15:42:20 GMT-0400 (EDT): Deleting: securitySchemes
[INFO] Mon Jul 25 2016 15:42:20 GMT-0400 (EDT): Deleting: scripts
[INFO] Mon Jul 25 2016 15:42:21 GMT-0400 (EDT): Deleting: schemas
[INFO] Mon Jul 25 2016 15:42:21 GMT-0400 (EDT): Deleting: resourceTypes
[INFO] Mon Jul 25 2016 15:42:22 GMT-0400 (EDT): Deleting: notebooks
[INFO] Mon Jul 25 2016 15:42:22 GMT-0400 (EDT): Deleting: examples
[INFO] Mon Jul 25 2016 15:42:22 GMT-0400 (EDT): Deleting: documentation
[INFO] Mon Jul 25 2016 15:42:23 GMT-0400 (EDT): Uploading the root RAML
[INFO] Mon Jul 25 2016 15:42:23 GMT-0400 (EDT): Uploading: api.raml
[ERROR] Mon Jul 25 2016 15:42:24 GMT-0400 (EDT): Unexpected error.
For more information check the log file: .api-sync.log located in you home folder
[DEBUG] Mon Jul 25 2016 15:42:24 GMT-0400 (EDT): TypeError: Cannot read property 'audit' of undefined
    at /usr/local/lib/node_modules/api-sync/lib/strategies/updateFileStrategy.js:20:66
    at Object.tapHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/finally.js:64:23)
    at Object.tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Mon Jul 25 2016 15:52:31 GMT-0400 (EDT): Parsed input and found command: cleanup
[DEBUG] Mon Jul 25 2016 15:52:31 GMT-0400 (EDT): Running command
[INFO] Mon Jul 25 2016 15:52:31 GMT-0400 (EDT): Cleanup successful
[DEBUG] Mon Jul 25 2016 15:52:31 GMT-0400 (EDT): Command completed successfully
[ERROR] Mon Jul 25 2016 15:52:36 GMT-0400 (EDT): BaseError: Usage:
  first choose an API: 
    api-sync setup    for an interactive wizard
  or if you know your API details
    api-sync setup --bizGroup=(Business group id) --api=(API id) --apiVersion=(API version id) -p (Run pull after setup)

  or if you want to create a new API and upload files
    api-sync create    for an interactive wizard
  or
    api-sync create --bizGroup=(Business group id) (--apiName=(API name)|--apiId=(API id)) --apiVersion=(API version name) --rootRaml=(rootRaml path, must be in the root folder)

  then
    api-sync pull     download the files from Anypoint Platform
    api-sync push     upload your files to Anypoint Platform
    api-sync cleanup  deletes all metadata for current folder. This include login information and setup configuration.
    api-sync status   show the files status
  for a detailed description of a command, use it with --help

    at Object.get (/usr/local/lib/node_modules/api-sync/lib/factories/commandFactory.js:14:30)
    at Object.run (/usr/local/lib/node_modules/api-sync/lib/application.js:9:29)
    at module.exports (/usr/local/lib/node_modules/api-sync/lib/api-sync.js:8:6)
    at Object.<anonymous> (/usr/local/lib/node_modules/api-sync/bin/index.js:8:1)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.runMain (module.js:575:10)
    at run (bootstrap_node.js:352:7)
    at startup (bootstrap_node.js:144:9)
    at bootstrap_node.js:467:3
[DEBUG] Mon Jul 25 2016 15:52:40 GMT-0400 (EDT): Parsed input and found command: setup
[DEBUG] Mon Jul 25 2016 15:52:40 GMT-0400 (EDT): Running command
[INFO] Mon Jul 25 2016 15:52:40 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[INFO] Mon Jul 25 2016 15:52:59 GMT-0400 (EDT): Current setup:
- Business group: Mulesoft
- API: David's API 1
[DEBUG] Mon Jul 25 2016 15:52:59 GMT-0400 (EDT): Command completed successfully
[DEBUG] Mon Jul 25 2016 15:53:08 GMT-0400 (EDT): Parsed input and found command: push
[DEBUG] Mon Jul 25 2016 15:53:08 GMT-0400 (EDT): Running command
[INFO] Mon Jul 25 2016 15:53:08 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[ERROR] Mon Jul 25 2016 15:53:16 GMT-0400 (EDT): ConflictsFoundError: Conflicts found, since your last pull these changes were found:

  api.raml was created within Anypoint Platform

To resolve run:
- api-sync pull (overwrites local changes)
- api-sync push -f (deletes remote API definition files and replaces them with the local ones)
    at checkConflicts (/usr/local/lib/node_modules/api-sync/lib/controllers/pushController.js:76:32)
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromises (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:697:14)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:123:16)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Mon Jul 25 2016 15:54:41 GMT-0400 (EDT): Parsed input and found command: cleanup
[DEBUG] Mon Jul 25 2016 15:54:41 GMT-0400 (EDT): Running command
[INFO] Mon Jul 25 2016 15:54:41 GMT-0400 (EDT): Cleanup successful
[DEBUG] Mon Jul 25 2016 15:54:41 GMT-0400 (EDT): Command completed successfully
[DEBUG] Mon Jul 25 2016 15:55:12 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Mon Jul 25 2016 15:55:12 GMT-0400 (EDT): Running command
[INFO] Mon Jul 25 2016 15:55:12 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[INFO] Mon Jul 25 2016 15:55:21 GMT-0400 (EDT): Creating API
[INFO] Mon Jul 25 2016 15:55:22 GMT-0400 (EDT): API created
[INFO] Mon Jul 25 2016 15:55:22 GMT-0400 (EDT): Uploading the root RAML
[INFO] Mon Jul 25 2016 15:55:23 GMT-0400 (EDT): Root raml: api.raml uploaded
[INFO] Mon Jul 25 2016 15:55:23 GMT-0400 (EDT): Setting the environment
[INFO] Mon Jul 25 2016 15:55:24 GMT-0400 (EDT): Current setup:
- Business group: Mulesoft
- API: David's API 1
[INFO] Mon Jul 25 2016 15:55:25 GMT-0400 (EDT): New folders will be created empty. Files will be added next
[INFO] Mon Jul 25 2016 15:55:25 GMT-0400 (EDT): Creating folder: documentation
[INFO] Mon Jul 25 2016 15:55:25 GMT-0400 (EDT): Creating folder: examples
[INFO] Mon Jul 25 2016 15:55:26 GMT-0400 (EDT): Creating folder: notebooks
[INFO] Mon Jul 25 2016 15:55:26 GMT-0400 (EDT): Creating folder: resourceTypes
[INFO] Mon Jul 25 2016 15:55:27 GMT-0400 (EDT): Creating folder: schemas
[INFO] Mon Jul 25 2016 15:55:27 GMT-0400 (EDT): Creating folder: scripts
[INFO] Mon Jul 25 2016 15:55:28 GMT-0400 (EDT): Creating folder: securitySchemes
[INFO] Mon Jul 25 2016 15:55:28 GMT-0400 (EDT): Creating folder: traits
[INFO] Mon Jul 25 2016 15:55:29 GMT-0400 (EDT): Pushing new files...
[INFO] Mon Jul 25 2016 15:55:29 GMT-0400 (EDT): Uploading: examples/friendList.json
[INFO] Mon Jul 25 2016 15:55:29 GMT-0400 (EDT): Uploading: schemas/friendsSchema.json
[INFO] Mon Jul 25 2016 15:55:30 GMT-0400 (EDT): Uploading: schemas/peopleSchema.json
[INFO] Mon Jul 25 2016 15:55:31 GMT-0400 (EDT): + documentation new folder
+ examples new folder
+ notebooks new folder
+ resourceTypes new folder
+ schemas new folder
+ scripts new folder
+ securitySchemes new folder
+ traits new folder
+ examples/friendList.json new file
+ schemas/friendsSchema.json new file
+ schemas/peopleSchema.json new file
[DEBUG] Mon Jul 25 2016 15:55:31 GMT-0400 (EDT): Command completed successfully
[DEBUG] Mon Jul 25 2016 16:00:04 GMT-0400 (EDT): Parsed input and found command: cleanup
[DEBUG] Mon Jul 25 2016 16:00:04 GMT-0400 (EDT): Running command
[INFO] Mon Jul 25 2016 16:00:04 GMT-0400 (EDT): Cleanup successful
[DEBUG] Mon Jul 25 2016 16:00:04 GMT-0400 (EDT): Command completed successfully
[DEBUG] Mon Jul 25 2016 16:00:11 GMT-0400 (EDT): Parsed input and found command: setup
[DEBUG] Mon Jul 25 2016 16:00:11 GMT-0400 (EDT): Running command
[INFO] Mon Jul 25 2016 16:00:11 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[INFO] Mon Jul 25 2016 16:00:26 GMT-0400 (EDT): Current setup:
- Business group: Mulesoft
- API: David's API 1
[DEBUG] Mon Jul 25 2016 16:00:26 GMT-0400 (EDT): Command completed successfully
[DEBUG] Mon Jul 25 2016 16:00:33 GMT-0400 (EDT): Parsed input and found command: push
[DEBUG] Mon Jul 25 2016 16:00:34 GMT-0400 (EDT): Running command
[INFO] Mon Jul 25 2016 16:00:34 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[ERROR] Mon Jul 25 2016 16:00:43 GMT-0400 (EDT): ConflictsFoundError: Conflicts found, since your last pull these changes were found:

  api.raml was created within Anypoint Platform
  examples/friendList.json was created within Anypoint Platform
  schemas/friendsSchema.json was created within Anypoint Platform
  schemas/peopleSchema.json was created within Anypoint Platform

To resolve run:
- api-sync pull (overwrites local changes)
- api-sync push -f (deletes remote API definition files and replaces them with the local ones)
    at checkConflicts (/usr/local/lib/node_modules/api-sync/lib/controllers/pushController.js:76:32)
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromises (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:697:14)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:123:16)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Mon Jul 25 2016 16:02:34 GMT-0400 (EDT): Parsed input and found command: push
[DEBUG] Mon Jul 25 2016 16:02:35 GMT-0400 (EDT): Running command
[INFO] Mon Jul 25 2016 16:02:35 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[ERROR] Mon Jul 25 2016 16:02:42 GMT-0400 (EDT): ConflictsFoundError: Conflicts found, since your last pull these changes were found:

  api.raml was created within Anypoint Platform
  examples/friendList.json was created within Anypoint Platform
  schemas/friendsSchema.json was created within Anypoint Platform
  schemas/peopleSchema.json was created within Anypoint Platform

To resolve run:
- api-sync pull (overwrites local changes)
- api-sync push -f (deletes remote API definition files and replaces them with the local ones)
    at checkConflicts (/usr/local/lib/node_modules/api-sync/lib/controllers/pushController.js:76:32)
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromises (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:697:14)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:123:16)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Mon Jul 25 2016 16:03:02 GMT-0400 (EDT): Parsed input and found command: push
[DEBUG] Mon Jul 25 2016 16:03:02 GMT-0400 (EDT): Running command
[INFO] Mon Jul 25 2016 16:03:02 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[INFO] Mon Jul 25 2016 16:03:11 GMT-0400 (EDT): Deleting all files in Anypoint Platform
[INFO] Mon Jul 25 2016 16:03:11 GMT-0400 (EDT): Deleting: examples/friendList.json
[INFO] Mon Jul 25 2016 16:03:12 GMT-0400 (EDT): Deleting: schemas/friendsSchema.json
[INFO] Mon Jul 25 2016 16:03:13 GMT-0400 (EDT): Deleting: schemas/peopleSchema.json
[INFO] Mon Jul 25 2016 16:03:14 GMT-0400 (EDT): Deleting all folders in Anypoint Platform
[INFO] Mon Jul 25 2016 16:03:14 GMT-0400 (EDT): Deleting: traits
[INFO] Mon Jul 25 2016 16:03:15 GMT-0400 (EDT): Deleting: securitySchemes
[INFO] Mon Jul 25 2016 16:03:15 GMT-0400 (EDT): Deleting: scripts
[INFO] Mon Jul 25 2016 16:03:16 GMT-0400 (EDT): Deleting: schemas
[ERROR] Mon Jul 25 2016 16:03:16 GMT-0400 (EDT): Unexpected error.
For more information check the log file: .api-sync.log located in you home folder
[DEBUG] Mon Jul 25 2016 16:03:16 GMT-0400 (EDT): Error: Bad Request
    at Request.callback (/usr/local/lib/node_modules/api-sync/node_modules/superagent/lib/node/index.js:698:17)
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/api-sync/node_modules/superagent/lib/node/index.js:922:12)
    at emitNone (events.js:91:20)
    at IncomingMessage.emit (events.js:185:7)
    at endReadableNT (_stream_readable.js:973:12)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)
[DEBUG] Mon Jul 25 2016 16:03:39 GMT-0400 (EDT): Parsed input and found command: cleanup
[DEBUG] Mon Jul 25 2016 16:03:39 GMT-0400 (EDT): Running command
[INFO] Mon Jul 25 2016 16:03:39 GMT-0400 (EDT): Cleanup successful
[DEBUG] Mon Jul 25 2016 16:03:39 GMT-0400 (EDT): Command completed successfully
[DEBUG] Mon Jul 25 2016 16:03:50 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Mon Jul 25 2016 16:03:51 GMT-0400 (EDT): Running command
[INFO] Mon Jul 25 2016 16:03:51 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[INFO] Mon Jul 25 2016 16:03:59 GMT-0400 (EDT): Creating API
[INFO] Mon Jul 25 2016 16:04:00 GMT-0400 (EDT): API created
[INFO] Mon Jul 25 2016 16:04:00 GMT-0400 (EDT): Uploading the root RAML
[INFO] Mon Jul 25 2016 16:04:01 GMT-0400 (EDT): Root raml: api.raml uploaded
[INFO] Mon Jul 25 2016 16:04:01 GMT-0400 (EDT): Setting the environment
[INFO] Mon Jul 25 2016 16:04:02 GMT-0400 (EDT): Current setup:
- Business group: Mulesoft
- API: David's API 1
[INFO] Mon Jul 25 2016 16:04:03 GMT-0400 (EDT): New folders will be created empty. Files will be added next
[INFO] Mon Jul 25 2016 16:04:03 GMT-0400 (EDT): Creating folder: documentation
[INFO] Mon Jul 25 2016 16:04:03 GMT-0400 (EDT): Creating folder: examples
[INFO] Mon Jul 25 2016 16:04:04 GMT-0400 (EDT): Creating folder: notebooks
[INFO] Mon Jul 25 2016 16:04:04 GMT-0400 (EDT): Creating folder: resourceTypes
[INFO] Mon Jul 25 2016 16:04:05 GMT-0400 (EDT): Creating folder: schemas
[INFO] Mon Jul 25 2016 16:04:06 GMT-0400 (EDT): Creating folder: scripts
[INFO] Mon Jul 25 2016 16:04:06 GMT-0400 (EDT): Creating folder: securitySchemes
[INFO] Mon Jul 25 2016 16:04:07 GMT-0400 (EDT): Creating folder: traits
[INFO] Mon Jul 25 2016 16:04:07 GMT-0400 (EDT): Pushing new files...
[INFO] Mon Jul 25 2016 16:04:07 GMT-0400 (EDT): Uploading: examples/friendList.json
[INFO] Mon Jul 25 2016 16:04:08 GMT-0400 (EDT): Uploading: fragments
[INFO] Mon Jul 25 2016 16:04:08 GMT-0400 (EDT): Uploading: schemas/friendsSchema.json
[INFO] Mon Jul 25 2016 16:04:09 GMT-0400 (EDT): Uploading: schemas/peopleSchema.json
[INFO] Mon Jul 25 2016 16:04:10 GMT-0400 (EDT): + documentation new folder
+ examples new folder
+ notebooks new folder
+ resourceTypes new folder
+ schemas new folder
+ scripts new folder
+ securitySchemes new folder
+ traits new folder
+ examples/friendList.json new file
+ fragments new file
+ schemas/friendsSchema.json new file
+ schemas/peopleSchema.json new file
[DEBUG] Mon Jul 25 2016 16:04:10 GMT-0400 (EDT): Command completed successfully
[DEBUG] Mon Jul 25 2016 16:09:10 GMT-0400 (EDT): Parsed input and found command: cleanup
[DEBUG] Mon Jul 25 2016 16:09:10 GMT-0400 (EDT): Running command
[INFO] Mon Jul 25 2016 16:09:10 GMT-0400 (EDT): Cleanup successful
[DEBUG] Mon Jul 25 2016 16:09:10 GMT-0400 (EDT): Command completed successfully
[DEBUG] Mon Jul 25 2016 16:09:16 GMT-0400 (EDT): Parsed input and found command: setup
[DEBUG] Mon Jul 25 2016 16:09:16 GMT-0400 (EDT): Running command
[INFO] Mon Jul 25 2016 16:09:16 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[INFO] Mon Jul 25 2016 16:09:30 GMT-0400 (EDT): Current setup:
- Business group: Mulesoft
- API: David's API 1
[DEBUG] Mon Jul 25 2016 16:09:30 GMT-0400 (EDT): Command completed successfully
[DEBUG] Mon Jul 25 2016 16:09:37 GMT-0400 (EDT): Parsed input and found command: push
[DEBUG] Mon Jul 25 2016 16:09:38 GMT-0400 (EDT): Running command
[INFO] Mon Jul 25 2016 16:09:38 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[ERROR] Mon Jul 25 2016 16:09:47 GMT-0400 (EDT): ConflictsFoundError: Conflicts found, since your last pull these changes were found:

  api.raml was created within Anypoint Platform
  examples/friendList.json was created within Anypoint Platform
  fragments was created within Anypoint Platform
  schemas/friendsSchema.json was created within Anypoint Platform
  schemas/peopleSchema.json was created within Anypoint Platform

To resolve run:
- api-sync pull (overwrites local changes)
- api-sync push -f (deletes remote API definition files and replaces them with the local ones)
    at checkConflicts (/usr/local/lib/node_modules/api-sync/lib/controllers/pushController.js:76:32)
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromises (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:697:14)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:123:16)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Mon Jul 25 2016 16:17:25 GMT-0400 (EDT): Parsed input and found command: cleanup
[DEBUG] Mon Jul 25 2016 16:17:25 GMT-0400 (EDT): Running command
[INFO] Mon Jul 25 2016 16:17:25 GMT-0400 (EDT): Cleanup successful
[DEBUG] Mon Jul 25 2016 16:17:25 GMT-0400 (EDT): Command completed successfully
[DEBUG] Mon Jul 25 2016 16:18:15 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Mon Jul 25 2016 16:18:15 GMT-0400 (EDT): Running command
[INFO] Mon Jul 25 2016 16:18:15 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[INFO] Mon Jul 25 2016 16:18:30 GMT-0400 (EDT): Creating API version
[INFO] Mon Jul 25 2016 16:18:30 GMT-0400 (EDT): API version created
[INFO] Mon Jul 25 2016 16:18:30 GMT-0400 (EDT): Uploading the root RAML
[INFO] Mon Jul 25 2016 16:18:31 GMT-0400 (EDT): Root raml: api.raml uploaded
[INFO] Mon Jul 25 2016 16:18:31 GMT-0400 (EDT): Setting the environment
[INFO] Mon Jul 25 2016 16:18:32 GMT-0400 (EDT): Current setup:
- Business group: Mulesoft
- API: David's API 2
[INFO] Mon Jul 25 2016 16:18:33 GMT-0400 (EDT): New folders will be created empty. Files will be added next
[INFO] Mon Jul 25 2016 16:18:33 GMT-0400 (EDT): Creating folder: documentation
[INFO] Mon Jul 25 2016 16:18:34 GMT-0400 (EDT): Creating folder: examples
[INFO] Mon Jul 25 2016 16:18:34 GMT-0400 (EDT): Creating folder: notebooks
[INFO] Mon Jul 25 2016 16:18:34 GMT-0400 (EDT): Creating folder: resourceTypes
[INFO] Mon Jul 25 2016 16:18:35 GMT-0400 (EDT): Creating folder: schemas
[INFO] Mon Jul 25 2016 16:18:35 GMT-0400 (EDT): Creating folder: scripts
[INFO] Mon Jul 25 2016 16:18:36 GMT-0400 (EDT): Creating folder: securitySchemes
[INFO] Mon Jul 25 2016 16:18:36 GMT-0400 (EDT): Creating folder: traits
[INFO] Mon Jul 25 2016 16:18:37 GMT-0400 (EDT): Pushing new files...
[INFO] Mon Jul 25 2016 16:18:37 GMT-0400 (EDT): Uploading: examples/friendList.json
[INFO] Mon Jul 25 2016 16:18:37 GMT-0400 (EDT): Uploading: fragments
[INFO] Mon Jul 25 2016 16:18:38 GMT-0400 (EDT): Uploading: schemas/friendsSchema.json
[INFO] Mon Jul 25 2016 16:18:39 GMT-0400 (EDT): Uploading: schemas/peopleSchema.json
[INFO] Mon Jul 25 2016 16:18:40 GMT-0400 (EDT): + documentation new folder
+ examples new folder
+ notebooks new folder
+ resourceTypes new folder
+ schemas new folder
+ scripts new folder
+ securitySchemes new folder
+ traits new folder
+ examples/friendList.json new file
+ fragments new file
+ schemas/friendsSchema.json new file
+ schemas/peopleSchema.json new file
[DEBUG] Mon Jul 25 2016 16:18:40 GMT-0400 (EDT): Command completed successfully
[DEBUG] Mon Jul 25 2016 16:32:24 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Mon Jul 25 2016 16:32:24 GMT-0400 (EDT): Running command
[ERROR] Mon Jul 25 2016 16:32:24 GMT-0400 (EDT): BaseError: This folder has the following setup 
bussinesGroup: Mulesoft
api: David's API
version: 2
    at /usr/local/lib/node_modules/api-sync/lib/strategies/validateNoSetupDoneStrategy.js:10:38
    at tryCatcher (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromiseAtPostResolution (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/promise.js:245:10)
    at Async._drainQueue (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/api-sync/node_modules/bluebird/js/main/async.js:15:14)
    at runCallback (timers.js:566:20)
    at tryOnImmediate (timers.js:546:5)
    at processImmediate [as _immediateCallback] (timers.js:525:5)
[DEBUG] Mon Jul 25 2016 16:32:34 GMT-0400 (EDT): Parsed input and found command: cleanup
[DEBUG] Mon Jul 25 2016 16:32:34 GMT-0400 (EDT): Running command
[INFO] Mon Jul 25 2016 16:32:34 GMT-0400 (EDT): Cleanup successful
[DEBUG] Mon Jul 25 2016 16:32:34 GMT-0400 (EDT): Command completed successfully
[DEBUG] Mon Jul 25 2016 16:32:38 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Mon Jul 25 2016 16:32:38 GMT-0400 (EDT): Running command
[INFO] Mon Jul 25 2016 16:32:38 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[INFO] Mon Jul 25 2016 16:32:48 GMT-0400 (EDT): Creating API version
[INFO] Mon Jul 25 2016 16:32:48 GMT-0400 (EDT): API version created
[INFO] Mon Jul 25 2016 16:32:48 GMT-0400 (EDT): Uploading the root RAML
[INFO] Mon Jul 25 2016 16:32:49 GMT-0400 (EDT): Root raml: api.raml uploaded
[INFO] Mon Jul 25 2016 16:32:49 GMT-0400 (EDT): Setting the environment
[INFO] Mon Jul 25 2016 16:32:49 GMT-0400 (EDT): Current setup:
- Business group: Mulesoft
- API: David's API 3
[INFO] Mon Jul 25 2016 16:32:50 GMT-0400 (EDT): New folders will be created empty. Files will be added next
[INFO] Mon Jul 25 2016 16:32:50 GMT-0400 (EDT): Creating folder: documentation
[INFO] Mon Jul 25 2016 16:32:51 GMT-0400 (EDT): Creating folder: examples
[INFO] Mon Jul 25 2016 16:32:51 GMT-0400 (EDT): Creating folder: notebooks
[INFO] Mon Jul 25 2016 16:32:52 GMT-0400 (EDT): Creating folder: resourceTypes
[INFO] Mon Jul 25 2016 16:32:52 GMT-0400 (EDT): Creating folder: schemas
[INFO] Mon Jul 25 2016 16:32:52 GMT-0400 (EDT): Creating folder: scripts
[INFO] Mon Jul 25 2016 16:32:53 GMT-0400 (EDT): Creating folder: securitySchemes
[INFO] Mon Jul 25 2016 16:32:53 GMT-0400 (EDT): Creating folder: traits
[INFO] Mon Jul 25 2016 16:32:54 GMT-0400 (EDT): Pushing new files...
[INFO] Mon Jul 25 2016 16:32:54 GMT-0400 (EDT): Uploading: examples/friendList.json
[INFO] Mon Jul 25 2016 16:32:54 GMT-0400 (EDT): Uploading: fragments
[INFO] Mon Jul 25 2016 16:32:55 GMT-0400 (EDT): Uploading: schemas/friendsSchema.json
[INFO] Mon Jul 25 2016 16:32:56 GMT-0400 (EDT): Uploading: schemas/peopleSchema.json
[INFO] Mon Jul 25 2016 16:32:56 GMT-0400 (EDT): + documentation new folder
+ examples new folder
+ notebooks new folder
+ resourceTypes new folder
+ schemas new folder
+ scripts new folder
+ securitySchemes new folder
+ traits new folder
+ examples/friendList.json new file
+ fragments new file
+ schemas/friendsSchema.json new file
+ schemas/peopleSchema.json new file
[DEBUG] Mon Jul 25 2016 16:32:56 GMT-0400 (EDT): Command completed successfully
[DEBUG] Mon Jul 25 2016 16:41:50 GMT-0400 (EDT): Parsed input and found command: cleanup
[DEBUG] Mon Jul 25 2016 16:41:50 GMT-0400 (EDT): Running command
[INFO] Mon Jul 25 2016 16:41:50 GMT-0400 (EDT): Cleanup successful
[DEBUG] Mon Jul 25 2016 16:41:50 GMT-0400 (EDT): Command completed successfully
[DEBUG] Mon Jul 25 2016 16:42:03 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Mon Jul 25 2016 16:42:03 GMT-0400 (EDT): Running command
[INFO] Mon Jul 25 2016 16:42:03 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[INFO] Mon Jul 25 2016 16:42:12 GMT-0400 (EDT): Creating API version
[INFO] Mon Jul 25 2016 16:42:13 GMT-0400 (EDT): API version created
[INFO] Mon Jul 25 2016 16:42:13 GMT-0400 (EDT): Uploading the root RAML
[INFO] Mon Jul 25 2016 16:42:13 GMT-0400 (EDT): Root raml: api.raml uploaded
[INFO] Mon Jul 25 2016 16:42:13 GMT-0400 (EDT): Setting the environment
[INFO] Mon Jul 25 2016 16:42:14 GMT-0400 (EDT): Current setup:
- Business group: Mulesoft
- API: David's API 1
[INFO] Mon Jul 25 2016 16:42:15 GMT-0400 (EDT): New folders will be created empty. Files will be added next
[INFO] Mon Jul 25 2016 16:42:15 GMT-0400 (EDT): Creating folder: documentation
[INFO] Mon Jul 25 2016 16:42:16 GMT-0400 (EDT): Creating folder: examples
[INFO] Mon Jul 25 2016 16:42:16 GMT-0400 (EDT): Creating folder: notebooks
[INFO] Mon Jul 25 2016 16:42:17 GMT-0400 (EDT): Creating folder: resourceTypes
[INFO] Mon Jul 25 2016 16:42:17 GMT-0400 (EDT): Creating folder: schemas
[INFO] Mon Jul 25 2016 16:42:18 GMT-0400 (EDT): Creating folder: scripts
[INFO] Mon Jul 25 2016 16:42:18 GMT-0400 (EDT): Creating folder: securitySchemes
[INFO] Mon Jul 25 2016 16:42:19 GMT-0400 (EDT): Creating folder: traits
[INFO] Mon Jul 25 2016 16:42:19 GMT-0400 (EDT): Pushing new files...
[INFO] Mon Jul 25 2016 16:42:19 GMT-0400 (EDT): Uploading: examples/friendList.json
[INFO] Mon Jul 25 2016 16:42:21 GMT-0400 (EDT): Uploading: fragments
[INFO] Mon Jul 25 2016 16:42:21 GMT-0400 (EDT): Uploading: schemas/friendsSchema.json
[INFO] Mon Jul 25 2016 16:42:22 GMT-0400 (EDT): Uploading: schemas/peopleSchema.json
[INFO] Mon Jul 25 2016 16:42:23 GMT-0400 (EDT): + documentation new folder
+ examples new folder
+ notebooks new folder
+ resourceTypes new folder
+ schemas new folder
+ scripts new folder
+ securitySchemes new folder
+ traits new folder
+ examples/friendList.json new file
+ fragments new file
+ schemas/friendsSchema.json new file
+ schemas/peopleSchema.json new file
[DEBUG] Mon Jul 25 2016 16:42:23 GMT-0400 (EDT): Command completed successfully
[DEBUG] Mon Jul 25 2016 16:53:12 GMT-0400 (EDT): Parsed input and found command: cleanup
[DEBUG] Mon Jul 25 2016 16:53:12 GMT-0400 (EDT): Running command
[INFO] Mon Jul 25 2016 16:53:12 GMT-0400 (EDT): Cleanup successful
[DEBUG] Mon Jul 25 2016 16:53:12 GMT-0400 (EDT): Command completed successfully
[DEBUG] Mon Jul 25 2016 16:53:23 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Mon Jul 25 2016 16:53:23 GMT-0400 (EDT): Running command
[INFO] Mon Jul 25 2016 16:53:23 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[INFO] Mon Jul 25 2016 16:53:32 GMT-0400 (EDT): Creating API version
[INFO] Mon Jul 25 2016 16:53:33 GMT-0400 (EDT): API version created
[INFO] Mon Jul 25 2016 16:53:33 GMT-0400 (EDT): Uploading the root RAML
[INFO] Mon Jul 25 2016 16:53:33 GMT-0400 (EDT): Root raml: api.raml uploaded
[INFO] Mon Jul 25 2016 16:53:33 GMT-0400 (EDT): Setting the environment
[INFO] Mon Jul 25 2016 16:53:34 GMT-0400 (EDT): Current setup:
- Business group: Mulesoft
- API: David's API 2
[INFO] Mon Jul 25 2016 16:53:35 GMT-0400 (EDT): New folders will be created empty. Files will be added next
[INFO] Mon Jul 25 2016 16:53:35 GMT-0400 (EDT): Creating folder: documentation
[INFO] Mon Jul 25 2016 16:53:35 GMT-0400 (EDT): Creating folder: examples
[INFO] Mon Jul 25 2016 16:53:36 GMT-0400 (EDT): Creating folder: notebooks
[INFO] Mon Jul 25 2016 16:53:37 GMT-0400 (EDT): Creating folder: resourceTypes
[INFO] Mon Jul 25 2016 16:53:37 GMT-0400 (EDT): Creating folder: schemas
[INFO] Mon Jul 25 2016 16:53:38 GMT-0400 (EDT): Creating folder: scripts
[INFO] Mon Jul 25 2016 16:53:38 GMT-0400 (EDT): Creating folder: securitySchemes
[INFO] Mon Jul 25 2016 16:53:39 GMT-0400 (EDT): Creating folder: traits
[INFO] Mon Jul 25 2016 16:53:39 GMT-0400 (EDT): Pushing new files...
[INFO] Mon Jul 25 2016 16:53:39 GMT-0400 (EDT): Uploading: examples/friendList.json
[INFO] Mon Jul 25 2016 16:53:41 GMT-0400 (EDT): Uploading: fragments
[INFO] Mon Jul 25 2016 16:53:42 GMT-0400 (EDT): Uploading: schemas/friendsSchema.json
[INFO] Mon Jul 25 2016 16:53:42 GMT-0400 (EDT): Uploading: schemas/newPeopleSchema.json
[INFO] Mon Jul 25 2016 16:53:43 GMT-0400 (EDT): Uploading: schemas/peopleSchema.json
[INFO] Mon Jul 25 2016 16:53:43 GMT-0400 (EDT): + documentation new folder
+ examples new folder
+ notebooks new folder
+ resourceTypes new folder
+ schemas new folder
+ scripts new folder
+ securitySchemes new folder
+ traits new folder
+ examples/friendList.json new file
+ fragments new file
+ schemas/friendsSchema.json new file
+ schemas/newPeopleSchema.json new file
+ schemas/peopleSchema.json new file
[DEBUG] Mon Jul 25 2016 16:53:43 GMT-0400 (EDT): Command completed successfully
[ERROR] Mon Jul 25 2016 17:43:18 GMT-0400 (EDT): BaseError: Unknown command: clear
Usage:
  first choose an API: 
    api-sync setup    for an interactive wizard
  or if you know your API details
    api-sync setup --bizGroup=(Business group id) --api=(API id) --apiVersion=(API version id) -p (Run pull after setup)

  or if you want to create a new API and upload files
    api-sync create    for an interactive wizard
  or
    api-sync create --bizGroup=(Business group id) (--apiName=(API name)|--apiId=(API id)) --apiVersion=(API version name) --rootRaml=(rootRaml path, must be in the root folder)

  then
    api-sync pull     download the files from Anypoint Platform
    api-sync push     upload your files to Anypoint Platform
    api-sync cleanup  deletes all metadata for current folder. This include login information and setup configuration.
    api-sync status   show the files status
  for a detailed description of a command, use it with --help

    at Object.get (/usr/local/lib/node_modules/api-sync/lib/factories/commandFactory.js:18:30)
    at Object.run (/usr/local/lib/node_modules/api-sync/lib/application.js:9:29)
    at module.exports (/usr/local/lib/node_modules/api-sync/lib/api-sync.js:8:6)
    at Object.<anonymous> (/usr/local/lib/node_modules/api-sync/bin/index.js:8:1)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.runMain (module.js:575:10)
    at run (bootstrap_node.js:352:7)
    at startup (bootstrap_node.js:144:9)
    at bootstrap_node.js:467:3
[DEBUG] Mon Jul 25 2016 17:43:34 GMT-0400 (EDT): Parsed input and found command: cleanup
[DEBUG] Mon Jul 25 2016 17:43:34 GMT-0400 (EDT): Running command
[INFO] Mon Jul 25 2016 17:43:34 GMT-0400 (EDT): Cleanup successful
[DEBUG] Mon Jul 25 2016 17:43:34 GMT-0400 (EDT): Command completed successfully
[DEBUG] Mon Jul 25 2016 17:45:09 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Mon Jul 25 2016 17:45:09 GMT-0400 (EDT): Running command
[INFO] Mon Jul 25 2016 17:45:09 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[INFO] Mon Jul 25 2016 17:45:20 GMT-0400 (EDT): Creating API version
[INFO] Mon Jul 25 2016 17:45:20 GMT-0400 (EDT): API version created
[INFO] Mon Jul 25 2016 17:45:20 GMT-0400 (EDT): Uploading the root RAML
[INFO] Mon Jul 25 2016 17:45:21 GMT-0400 (EDT): Root raml: api.raml uploaded
[INFO] Mon Jul 25 2016 17:45:21 GMT-0400 (EDT): Setting the environment
[INFO] Mon Jul 25 2016 17:45:22 GMT-0400 (EDT): Current setup:
- Business group: Mulesoft
- API: David's API 3
[INFO] Mon Jul 25 2016 17:45:23 GMT-0400 (EDT): New folders will be created empty. Files will be added next
[INFO] Mon Jul 25 2016 17:45:23 GMT-0400 (EDT): Creating folder: documentation
[INFO] Mon Jul 25 2016 17:45:24 GMT-0400 (EDT): Creating folder: examples
[INFO] Mon Jul 25 2016 17:45:24 GMT-0400 (EDT): Creating folder: notebooks
[INFO] Mon Jul 25 2016 17:45:25 GMT-0400 (EDT): Creating folder: resourceTypes
[INFO] Mon Jul 25 2016 17:45:25 GMT-0400 (EDT): Creating folder: schemas
[INFO] Mon Jul 25 2016 17:45:26 GMT-0400 (EDT): Creating folder: scripts
[INFO] Mon Jul 25 2016 17:45:26 GMT-0400 (EDT): Creating folder: securitySchemes
[INFO] Mon Jul 25 2016 17:45:27 GMT-0400 (EDT): Creating folder: traits
[INFO] Mon Jul 25 2016 17:45:27 GMT-0400 (EDT): Pushing new files...
[INFO] Mon Jul 25 2016 17:45:27 GMT-0400 (EDT): Uploading: examples/friendList.json
[INFO] Mon Jul 25 2016 17:45:32 GMT-0400 (EDT): Uploading: fragments
[INFO] Mon Jul 25 2016 17:45:34 GMT-0400 (EDT): Uploading: schemas/friendsSchema.json
[INFO] Mon Jul 25 2016 17:45:34 GMT-0400 (EDT): Uploading: schemas/newPeopleSchema.json
[INFO] Mon Jul 25 2016 17:45:35 GMT-0400 (EDT): Uploading: schemas/peopleSchema.json
[INFO] Mon Jul 25 2016 17:45:35 GMT-0400 (EDT): + documentation new folder
+ examples new folder
+ notebooks new folder
+ resourceTypes new folder
+ schemas new folder
+ scripts new folder
+ securitySchemes new folder
+ traits new folder
+ examples/friendList.json new file
+ fragments new file
+ schemas/friendsSchema.json new file
+ schemas/newPeopleSchema.json new file
+ schemas/peopleSchema.json new file
[DEBUG] Mon Jul 25 2016 17:45:35 GMT-0400 (EDT): Command completed successfully
[DEBUG] Mon Jul 25 2016 18:21:55 GMT-0400 (EDT): Parsed input and found command: cleanup
[DEBUG] Mon Jul 25 2016 18:21:55 GMT-0400 (EDT): Running command
[INFO] Mon Jul 25 2016 18:21:55 GMT-0400 (EDT): Cleanup successful
[DEBUG] Mon Jul 25 2016 18:21:55 GMT-0400 (EDT): Command completed successfully
[DEBUG] Mon Jul 25 2016 18:22:05 GMT-0400 (EDT): Parsed input and found command: create
[DEBUG] Mon Jul 25 2016 18:22:05 GMT-0400 (EDT): Running command
[INFO] Mon Jul 25 2016 18:22:05 GMT-0400 (EDT): Enter your Anypoint Platform username and password
[INFO] Mon Jul 25 2016 18:22:15 GMT-0400 (EDT): Creating API version
[INFO] Mon Jul 25 2016 18:22:16 GMT-0400 (EDT): API version created
[INFO] Mon Jul 25 2016 18:22:16 GMT-0400 (EDT): Uploading the root RAML
[INFO] Mon Jul 25 2016 18:22:16 GMT-0400 (EDT): Root raml: api.raml uploaded
[INFO] Mon Jul 25 2016 18:22:16 GMT-0400 (EDT): Setting the environment
[INFO] Mon Jul 25 2016 18:22:17 GMT-0400 (EDT): Current setup:
- Business group: Mulesoft
- API: David's API 4
[INFO] Mon Jul 25 2016 18:22:18 GMT-0400 (EDT): New folders will be created empty. Files will be added next
[INFO] Mon Jul 25 2016 18:22:18 GMT-0400 (EDT): Creating folder: documentation
[INFO] Mon Jul 25 2016 18:22:18 GMT-0400 (EDT): Creating folder: examples
[INFO] Mon Jul 25 2016 18:22:19 GMT-0400 (EDT): Creating folder: notebooks
[INFO] Mon Jul 25 2016 18:22:19 GMT-0400 (EDT): Creating folder: resourceTypes
[INFO] Mon Jul 25 2016 18:22:20 GMT-0400 (EDT): Creating folder: schemas
[INFO] Mon Jul 25 2016 18:22:20 GMT-0400 (EDT): Creating folder: scripts
[INFO] Mon Jul 25 2016 18:22:20 GMT-0400 (EDT): Creating folder: securitySchemes
[INFO] Mon Jul 25 2016 18:22:21 GMT-0400 (EDT): Creating folder: traits
[INFO] Mon Jul 25 2016 18:22:21 GMT-0400 (EDT): Pushing new files...
[INFO] Mon Jul 25 2016 18:22:21 GMT-0400 (EDT): Uploading: examples/friendList.json
[INFO] Mon Jul 25 2016 18:22:22 GMT-0400 (EDT): Uploading: fragments
[INFO] Mon Jul 25 2016 18:22:22 GMT-0400 (EDT): Uploading: schemas/friendsSchema.json
[INFO] Mon Jul 25 2016 18:22:23 GMT-0400 (EDT): Uploading: schemas/newPeopleSchema.json
[INFO] Mon Jul 25 2016 18:22:24 GMT-0400 (EDT): Uploading: schemas/peopleSchema.json
[INFO] Mon Jul 25 2016 18:22:24 GMT-0400 (EDT): + documentation new folder
+ examples new folder
+ notebooks new folder
+ resourceTypes new folder
+ schemas new folder
+ scripts new folder
+ securitySchemes new folder
+ traits new folder
+ examples/friendList.json new file
+ fragments new file
+ schemas/friendsSchema.json new file
+ schemas/newPeopleSchema.json new file
+ schemas/peopleSchema.json new file
[DEBUG] Mon Jul 25 2016 18:22:24 GMT-0400 (EDT): Command completed successfully