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-cliFirst, 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 loginTo logout from the GameHub platform, run the following command:
gamehub logoutTo check the current user, run the following command:
gamehub whoamiTo 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 initTo get the information about the current game, run the following command:
gamehub infoTo upload game assets to the GameHub platform, run the following command:
gamehub buildTo delete a pending version of the game, run the following command:
gamehub delete-pending-versionTo delete an old version of the game, run the following command:
gamehub delete-old-version