CLI for Importing and Exporting APIs and Applications

For WSO2 API Manager 2.6.0

Command Line tool for importing and exporting APIs and Applications between different API Environments

Getting Started


Usage

     apictl [command]

Global Flags

      --verbose
           Enable verbose logs (Provides more information on execution)
      --insecure, -k
          Allow connections to SSL sites without certs
      --help, -h
          Display information and example usage of a command

Commands

        Flags:
            Required:
                --file, -f
                --environment, -e
            Optional:
                --username, -u 
                --password, -p 
                NOTE: user will be prompted to enter credentials if they are not provided with these flags
        Examples:
            apictl import-api -f dev/TestAPI_1.0.0.zip -e dev
            apictl import-api -f qa/TestAPI_2.0.0.zip -e dev -u admin -p 123456
            apictl import-api -f staging/TestAPI_1.1.zip -e dev -u admin
            apictl import-api -f production/TestAPI_3.0.1.zip -e dev -p 123456
            apictl import-api -f TestAPI -e dev
        Flags:
            Required
                  --file, -f
                  --environment, -e
            Optional
                  --skipSubscriptions, -s
                  --owner, -o
                  --preserveOwner, -r
                  --file, -f
                  --environment, -e
        Examples:
            apictl import-app -f qa/apps/sampleApp.zip -e dev
            apictl Import App -f staging/apps/sampleApp.zip -e prod -o testUser -u admin -p admin
            apictl import-app -f qa/apps/sampleApp.zip --preserveOwner --skipSubscriptions -e staging
        Flags:
            Required:
                --environment, -e (Name of the environment)
            Examples:
                apictl remove-env -e dev
        Flags
            --environment, -e
        Examples:
            apictl reset-user -e dev