flootup
v1.0.6
Published
CLI for flootup
Downloads
33
Readme
🚀 Flootup CLI
The official Command Line Interface to manage and deploy your bots to Flootup directly from your terminal.
📦 Installation
Install the Flootup CLI globally via npm to access the tool from any directory:
npm install -g flootupNow you can use the flootup command anywhere.
🛠 Commands
🔑 Authentication
flootup loginLogs you into your Flootup account.
flootup logoutClears your local session data and logs you out of the CLI.
🏗 Lifecycle
flootup initThe easiest way to start:
- Select an existing project or create a new one.
- Select an existing bot or create a new one.
- Optional: Zip and upload your current directory code immediately.
- Generates a
flootup.jsonconfiguration file in your current folder.
flootup linkA streamlined version of init. Use this when you just want to link the current directory to an existing project and bot without any creation prompts.
📁 Project Management
flootup projects listLists all your projects with their IDs and current plans.
flootup projects usage <projectId>Shows detailed resource usage (RAM, CPU, Bots) for a specific project.
🚀 Deployment
flootup deployTriggers the Industrial Deployment Protocol:
- Architecture Scan: Detects if your project uses a
Dockerfile(Industrial Mode) or standard runtimes (Hybrid Mode). - Build Preparation: If no Dockerfile is found, it offers to execute
npm run buildlocally. - Transmission: Zips and uploads your code to our secure R2 storage.
- Trigger: Initiates the remote build & orchestration sequence on the container grid.
flootup deletePermanently decommission the bot linked to the current directory. This action is irreversible and purges all related image artifacts and local configurations.
📋 Logs
flootup logsView the latest runtime logs of your bot.
🔐 Environment Variables
Manage your bot's secrets and configurations:
- List variables:
flootup env list - Set a variable:
flootup env set KEY VALUE - Remove a variable:
flootup env unset KEY
📄 Configuration (flootup.json)
The init command creates a flootup.json file. It maps your local folder to a specific bot on the platform:
{
"projectId": "your-project-id",
"botId": "your-bot-id",
"botName": "my-cool-bot"
}❤️ Happy Coding!
