diff --git a/import-export-cli/docs/apictl.md b/import-export-cli/docs/apictl.md index 4652b51e8..92c0e2535 100644 --- a/import-export-cli/docs/apictl.md +++ b/import-export-cli/docs/apictl.md @@ -31,6 +31,7 @@ apictl [flags] * [apictl k8s](apictl_k8s.md) - Kubernetes mode based commands * [apictl login](apictl_login.md) - Login to an API Manager * [apictl logout](apictl_logout.md) - Logout to from an API Manager +* [apictl mg](apictl_mg.md) - Handle Microgateway related operations * [apictl mi](apictl_mi.md) - Micro Integrator related commands * [apictl remove](apictl_remove.md) - Remove an environment * [apictl set](apictl_set.md) - Set configuration parameters diff --git a/import-export-cli/docs/apictl_mg.md b/import-export-cli/docs/apictl_mg.md new file mode 100644 index 000000000..20f5d049c --- /dev/null +++ b/import-export-cli/docs/apictl_mg.md @@ -0,0 +1,30 @@ +## apictl mg + +Handle Microgateway related operations + +### Synopsis + +Initialize, Add, Update an apictl project to the microgateway + +``` +apictl mg [flags] +``` + +### Options + +``` + -h, --help help for mg +``` + +### Options inherited from parent commands + +``` + -k, --insecure Allow connections to SSL endpoints without certs + --verbose Enable verbose mode +``` + +### SEE ALSO + +* [apictl](apictl.md) - CLI for Importing and Exporting APIs and Applications and Managing WSO2 Micro Integrator +* [apictl mg deploy](apictl_mg_deploy.md) - Deploy apictl project. + diff --git a/import-export-cli/docs/apictl_mg_deploy.md b/import-export-cli/docs/apictl_mg_deploy.md new file mode 100644 index 000000000..e05cc8ca3 --- /dev/null +++ b/import-export-cli/docs/apictl_mg_deploy.md @@ -0,0 +1,41 @@ +## apictl mg deploy + +Deploy apictl project. + +### Synopsis + +Deploy the apictl project in Microgateway + +``` +apictl mg deploy --host [control plane url] --file [file name] --username [username] --password [password] [flags] +``` + +### Examples + +``` +apictl mg deploy -h https://localhost:9095 -f qa/TwitterAPI.zip -u admin -p admin +cat ~/.mypassword | apictlmg deploy -h https://localhost:9095 -f qa/TwitterAPI.zip -u admin +``` + +### Options + +``` + -f, --file string Provide the filepath of the apictl project to be imported + -h, --help help for deploy + -c, --host string Provide the host url for the control plane with port + -p, --password string Provide the password + --skipCleanup Leave all temporary files created during import process + -u, --username string Provide the username +``` + +### Options inherited from parent commands + +``` + -k, --insecure Allow connections to SSL endpoints without certs + --verbose Enable verbose mode +``` + +### SEE ALSO + +* [apictl mg](apictl_mg.md) - Handle Microgateway related operations + diff --git a/import-export-cli/shell-completions/apictl_bash_completions.sh b/import-export-cli/shell-completions/apictl_bash_completions.sh index 0d3b157b4..30e0c319b 100644 --- a/import-export-cli/shell-completions/apictl_bash_completions.sh +++ b/import-export-cli/shell-completions/apictl_bash_completions.sh @@ -2483,6 +2483,118 @@ _apictl_logout() noun_aliases=() } +_apictl_mg_deploy() +{ + last_command="apictl_mg_deploy" + + command_aliases=() + + commands=() + + flags=() + two_word_flags=() + local_nonpersistent_flags=() + flags_with_completion=() + flags_completion=() + + flags+=("--file=") + two_word_flags+=("--file") + two_word_flags+=("-f") + local_nonpersistent_flags+=("--file") + local_nonpersistent_flags+=("--file=") + local_nonpersistent_flags+=("-f") + flags+=("--help") + flags+=("-h") + local_nonpersistent_flags+=("--help") + local_nonpersistent_flags+=("-h") + flags+=("--host=") + two_word_flags+=("--host") + two_word_flags+=("-c") + local_nonpersistent_flags+=("--host") + local_nonpersistent_flags+=("--host=") + local_nonpersistent_flags+=("-c") + flags+=("--password=") + two_word_flags+=("--password") + two_word_flags+=("-p") + local_nonpersistent_flags+=("--password") + local_nonpersistent_flags+=("--password=") + local_nonpersistent_flags+=("-p") + flags+=("--skipCleanup") + local_nonpersistent_flags+=("--skipCleanup") + flags+=("--username=") + two_word_flags+=("--username") + two_word_flags+=("-u") + local_nonpersistent_flags+=("--username") + local_nonpersistent_flags+=("--username=") + local_nonpersistent_flags+=("-u") + flags+=("--insecure") + flags+=("-k") + flags+=("--verbose") + + must_have_one_flag=() + must_have_one_flag+=("--file=") + must_have_one_flag+=("-f") + must_have_one_flag+=("--host=") + must_have_one_flag+=("-c") + must_have_one_flag+=("--username=") + must_have_one_flag+=("-u") + must_have_one_noun=() + noun_aliases=() +} + +_apictl_mg_help() +{ + last_command="apictl_mg_help" + + command_aliases=() + + commands=() + + flags=() + two_word_flags=() + local_nonpersistent_flags=() + flags_with_completion=() + flags_completion=() + + flags+=("--insecure") + flags+=("-k") + flags+=("--verbose") + + must_have_one_flag=() + must_have_one_noun=() + has_completion_function=1 + noun_aliases=() +} + +_apictl_mg() +{ + last_command="apictl_mg" + + command_aliases=() + + commands=() + commands+=("deploy") + commands+=("help") + + flags=() + two_word_flags=() + local_nonpersistent_flags=() + flags_with_completion=() + flags_completion=() + + flags+=("--help") + flags+=("-h") + local_nonpersistent_flags+=("--help") + local_nonpersistent_flags+=("-h") + flags+=("--insecure") + flags+=("-k") + flags+=("--verbose") + + must_have_one_flag=() + must_have_one_noun=() + noun_aliases=() +} + _apictl_mi_help() { last_command="apictl_mi_help" @@ -2929,6 +3041,7 @@ _apictl_root_command() commands+=("k8s") commands+=("login") commands+=("logout") + commands+=("mg") commands+=("mi") commands+=("remove") commands+=("set")