fotohub-cli
v1.0.0
Published
Official CLI and SDK for the FOTOhub platform, enabling programmatic access to AI image and video generation, photo management, and more.
Readme
FOTOhub CLI & SDK
Official CLI and SDK for the FOTOhub platform, enabling programmatic access to AI image and video generation, photo management, and more.
Installation
npm install
npm run build
npm linkUsage
Authentication
First, login to your FOTOhub account:
fotohub auth loginYou can also check your current session:
fotohub auth whoamiImage Generation
Generate an image from a text prompt:
fotohub image generate "A futuristic city with flying cars, cyberpunk style" --width 1024 --height 1024List available models:
fotohub image list-modelsList your generated images:
fotohub image listVideo Generation
Generate a video from a text prompt (requires paid subscription or credits):
fotohub video generate "A drone shot of a tropical beach at sunset" --preset aerial_drone --duration 4List available video presets:
fotohub video list-presetsSDK Usage
You can also use the SDK in your Node.js applications:
import { getSupabaseClient } from './lib/supabase';
const client = getSupabaseClient();
// Use the client to interact with Supabase...Configuration
The CLI stores configuration in ~/.fotohub/config.json.
Environment variables are loaded from the project root .env file if available, or fallback to defaults.
