Portex
  • Getting Started
    • Introduction
    • Workflow
    • ShowCase
    • FAQs
  • CLI
    • Overview
    • New Mini-app
    • Check Mini-app
    • Deploy Mini-app
    • Publish Mini-app
    • Bot Manager
      • Bind Telegram Bot
      • Get Bot Info
      • Bot Menu
        • Set Menu Button
      • Bot Message
        • List Messages
        • Save Message
        • Delete Message
  • SDK
    • Overview
    • Friend Referral
    • Payment
    • Webapp Adapter
Powered by GitBook
On this page
  • Portex CLI (beta)
  • Installation
  • Usage
  • Quick Start
  • Development vs Production
  • How to Visit Portex Mini-Game
  • Source
  • FAQ
  1. CLI

Overview

Portex CLI (beta)

Portex CLI is a command line tool for creating and managing mini-games on multiple platforms.

Installation

npm install -g @portex-app/cli

Usage

portex --help

Available Commands:

command
description

login

Login to Portex CLI

new

Create a new mini-game

ls

List all mini-games and get app-id

deploy

Deploy mini-game

publish

Publish mini-game

bot

Manage bots in the game

Quick Start

Note: This assumes you installed the CLI tool (npm install -g @portex-app/cli)

Login to Portex CLI

# Login to Portex CLI, you can get the login token from email
portex login

# Create a new mini-game
portex new

# Deploy mini-game
portex deploy <app-name> <build-path> [description]

# Publish mini-game, default is dev
portex publish <app-name> <version> [-e dev|test|prod]

Development vs Production

Portex CLI supports development and production environments. When you deploy a mini-game, you can specify the environment.

portex publish <app-name> <version> -e dev

or

portex publish <app-name> <version> -e prod

How to Visit Portex Mini-Game

When you publish a mini-game, you can visit it in the browser.

  • Production URL:

    https://<app-name>.portex.app/

  • Development URL:

    https://<app-name>.dev.portex.app/

  • Test URL:

    https://<app-name>.test.portex.app/

  • Enter URL in Portex delivery service: You must keep index.html in the root of your mini-app.

  • Demo: https://plane.portex.app/

Source

FAQ

  • How to get a Portex CLI access token?

Contact us on Telegram to get a Portex CLI access token.

PreviousFAQsNextNew Mini-app

Last updated 1 month ago

https://t.me/televerseadmin
https://github.com/portex-app/portex-cli