needle-cloud
v2.4.2
Published
The official command-line interface for [Needle Cloud](https://cloud.needle.tools) — deploy websites, optimize 3D assets, and manage your projects from the terminal.
Readme
Needle Cloud CLI
The official command-line interface for Needle Cloud — deploy websites, optimize 3D assets, and manage your projects from the terminal.
Getting Started
No installation needed — use npx to run commands directly:
npx needle-cloud deploy ./dist --name my-projectOr install globally:
npm install -g needle-cloudRequirements: Node.js 18 or later.
Commands
npx needle-cloud help # List all commands
npx needle-cloud help <command> # Help for a specific commandCore commands:
deploy— Deploy a website to Needle Cloudoptimize— Optimize 3D files (glTF, GLB, VRM, FBX, USD) with Draco, KTX2, and Progressive Loadinglogin/logout— Authenticate with Needle Cloudstart— Start the local license server (for editor integrations and CI/CD)
CI/CD
For automated deployments, use an access token:
- Create a token on your team page with
read/writepermissions - Pass it via
--tokenor theNEEDLE_CLOUD_TOKENenvironment variable
npx needle-cloud deploy ./dist --name my-project --token "$NEEDLE_CLOUD_TOKEN"Or use the official GitHub Action:
- uses: needle-tools/deploy-to-needle-cloud-action@v1
with:
token: ${{ secrets.NEEDLE_CLOUD_TOKEN }}
dir: ./dist
name: my-project