@fiberplane/cli
v0.2.1
Published
CLI tool for Fiberplane services
Readme
Fiberplane CLI
A TypeScript-based CLI tool for Fiberplane services.
Commands
Deploy
Deploy your application to Fiberplane:
fiberplane-cli deploy [directory]The deploy command automatically:
- Project Management: Checks for an existing project ID in
.fiberplanefile, or creates a new project if none exists - File Scanning: Scans the target directory for deployment files
- Upload: Uploads files to Fiberplane services for deployment
Authentication
fiberplane-cli auth login # Login to Fiberplane
fiberplane-cli auth logout # Logout from Fiberplane
fiberplane-cli auth status # Check authentication statusProject Management
The CLI automatically manages project associations through a .fiberplane file in your project directory. This file contains:
{
"projectId": "project-nanoid-here",
"createdAt": "2024-01-01T00:00:00.000Z"
}Important: Add .fiberplane to your .gitignore if you don't want to commit project IDs to version control.
Installation
pnpm install
pnpm buildDevelopment
# Watch mode for development
pnpm dev
# Build for production
pnpm build
# Run the CLI locally
pnpm start
# Or run directly with node
bin/cliProject Structure
internal/cli/
├── bin/
│ └── cli # Executable entry point
├── src/
│ └── index.ts # Main CLI logic
├── dist/ # Compiled output (generated)
├── package.json # Package configuration
├── tsconfig.json # TypeScript configuration
└── README.md # This file