tensorone logo

CLI

Managing a Projects

Tensor One Projects enable seamless synchronization between your local development environment and Clusters on the Tensor One platform.


Create a project

A Tensor One Project encapsulates everything required to run a development session directly on a Cluster.

To create a new project, execute:

tensoronecli project create

Choose a starter template suited to your project type (e.g., LLM or image diffusion). If additional dependencies are needed, include them in the automatically generated requirements.txt.

Save your changes. Your project is now set up and ready for development.

Running a Development Session

A Development Session establishes a real-time synchronization between your local code and the Tensor One Cluster environment.

Launch a session with:

tensoronecli project dev

To end the session, press Ctrl+C. The Cluster will terminate automatically afterward.

Tip: Resume your session anytime by running the command again.

Deploying Your Project

Deploying a project creates a Serverless Endpoint that leverages your project's data stored on a network volume.

Deploy with the following command:

tensoronecli project deploy

Your project is now available as a Serverless Endpoint, accessible like any other endpoint.

Building Your Project

Optionally, you can generate a Dockerfile to build a portable Docker image from your project.

Generate the Dockerfile by running:

tensoronecli project build

Use this Dockerfile to build an image and deploy it to any compatible API server or hosting environment.

Previous
Deploying a Project