CLI
Managing Projects
Projects on Tensor One help you connect your local environment and the project environment on a Cluster.
Create a project
A Tensor One project is a folder with everything you need to run a development session on a Cluster.
To create a new project, run the following command.
tensoronecli project create
Select a starter project. Starter projects include preliminary settings for different kinds of project environments, such as LLM or image diffusion development.
(Optional) If you need dependencies that are not included or added by your starter project, add them to the generated
requirements.txt
file.Save your changes.
You've customized your project, and now you're ready to run a development session.
Run a development session
A development session is the active connection between your local environment and the project environment on your Cluster. During a development session, local changes to your project propagate to the project environment in real time.
To start a development session, run the following command.
tensoronecli project dev
When you're done developing, press
ctrl
+c
to end the session. Your Cluster will terminate automatically when the session ends.
Tip You can resume developing at any time by running tensoronecli project dev
again.
Now that you've developed your project, you can deploy an endpoint directly to Tensor One or build a Dockerfile to create a portable image.
Deploy a project
When you deploy a project, Tensor One creates a serverless endpoint with access to saved project data on your network volume.
To deploy a project, run the following command.
tensoronecli project deploy
Your project is now deployed to a Serverless Endpoint. You can interact with this Endpoint like you would any other Serverless Endpoint. For more information.
Build a project
You have the option to build your project instead of deploying it as an endpoint. When you build a project, Tensor One emits a Dockerfile.
To build a project, run the following command.
tensoronecli project build
You can use the generated Dockerfile to build an image, then deploy the image to any API server.