The GameHub CLI is a command-line tool for game developers to upload and manage their game assets on the GameHub platform. This CLI offers functionalities for logging in, initializing configurations, building and uploading game assets, and more.
First, ensure you have Node.js installed on your system. Then, install the CLI via npm or yarn:
npm install -g gamehub-cli
# or
yarn global add gamehub-cli
First, you have to have an account on the GS Dashboard and have access to the GameHub platform.
To login to the GameHub platform, run the following command:
gamehub login
To logout from the GameHub platform, run the following command:
gamehub logout
To check the current user, run the following command:
gamehub whoami
To initialize the configuration for the current directory with the organization, game, and platform use this command. This command must be run in the root directory of the game project.
gamehub init
To get the information about the current game, run the following command:
gamehub info
To upload game assets to the GameHub platform, run the following command:
gamehub build
To delete a pending version of the game, run the following command:
gamehub delete-pending-version
To delete an old version of the game, run the following command:
gamehub delete-old-version