1.0.1 • Published 9 months ago

@digital-will/wortal-cli v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Wortal CLI

CLI utility used to manage Wortal projects. Can be integrated into your CI/CD pipeline to streamline the deployment process. A Wortal API token is required to use this tool.

Installation

Install the package as a dev dependency in your project:

npm install --save-dev @digital-will/wortal-cli

Game Config

All game configuration is stored in the .wortal.json file in the root of your project. This file is generated when you run wortal install and should be committed to your repository.

Commands

wortal install

Installs the Wortal CLI into your project. This command will create a .wortal.json file in the root of your project. If you are using the CLI in a CI/CD workflow you can skip this step.


wortal upload

Uploads the game to Wortal. This command will create a new revision of the game and upload the specified game bundle. This needs to be a .zip archive with index.html at the root of the archive.

Arguments

ArgumentDescriptionRequired
--bundlePath to the game bundleYes
--notesRelease notesNo
--tokenAPI tokenNo
--gameIDGame IDNo

Example

// Dev environment
wortal upload --bundle ./build.zip --notes "Initial release"

// CI/CD workflow
wortal upload --bundle ./build.zip --notes "$RELEASE_NOTES" --token "$WORTAL_API_TOKEN" --gameID "$WORTAL_GAME_ID"

wortal config

Gets/sets the configuration for the Wortal CLI.

Arguments

ArgumentDescription
tokenWortal API token

Example

wortal config get token

wortal game

Gets/sets the configuration for the game.

Arguments

ArgumentDescription
gameIDGame ID

Example

wortal game set gameID 99999
1.0.1

9 months ago

1.0.0

9 months ago