このページは、まだ日本語ではご利用いただけません。翻訳中です。
旧バージョンのドキュメントを参照しています。 最新のドキュメントはこちらをご参照ください。
Developer Portal CLI
The Kong Developer Portal CLI is used to manage your Developer Portals from the command line. It is built using clipanion.
This is the next generation TypeScript based Developer Portal CLI. The goal of this project is to make a higher quality CLI tool over the initial sync script.
Install
> npm install -g kong-portal-cli
Usage
The easiest way to start is by cloning the portal-templates repo master branch locally.
Next, edit workspaces/default/cli.conf.yaml to set workspace name and rbac_token
to match your setup.
Make sure Kong is running and portal is on.
Now, from the root folder of the templates repo, you can run:
portal [-h,--help] [--config PATH] <command> <workspace>
Where <command> is one of:
-
configOutput or change configuration of the portal on the givenworkspace, locally. -
deployDeploy changes made locally under the given workspace upstream. -
disableDisable the portal on the given workspace. -
enableEnable the portal on the given workspace. -
fetchFetches content and themes from the given workspace. -
wipeDeletes all content and themes from upstream workspace
Where
For deploy
- Add
-Wor--watchto make changes reactive. - Add
-Por--preserveto avoid deleting files upstream that you do not have locally. - Add
-Dor--disable-ssl-verificationto disable SSL verification and use self-signed certs. - Add
-Ior--ignore-specsto ignore the/specsdirectory.
For fetch
- Add
-Kor--keep-encodeto keep binary assets as base64-encoded strings locally. - Add
-Dor--disable-ssl-verificationto disable SSL verification and use self-signed certs. - Add
-Ior--ignore-specsto ignore the/specsdirectory.
For wipe
- Add
-Dor--disable-ssl-verificationto disable SSL verification and use self-signed certs. - Add
-Ior--ignore-specsto ignore the/specsdirectory.
For enable and disable
- Add
-Dor--disable-ssl-verificationto disable SSL verification and use self-signed certs.