NVCF is a command-line interface (CLI) tool for managing and interacting with NVIDIA Cloud Functions. It provides a seamless way to create, deploy, invoke, and manage serverless functions on NVIDIA's cloud infrastructure.
- Function management (create, list, update, delete)
- Function deployment and invocation
- GPU and instance type management
- Authentication handling
- Preflight checks for NVCF compatibility
- Comprehensive error handling and logging
- Multiple output formats (JSON, table)
- Color-coded output for better readability
To install the NVCF CLI, you need to have Go installed on your system. Then, you can use the following command:
brew install brevdev/homebrew-nvcf/nvcf
After installation, you can use the nvcf
command to interact with NVIDIA Cloud Functions. Here are some common usage examples:
# Authenticate with NVIDIA Cloud
nvcf auth login
# List all active function
nvcf function list --status ACTIVE
# Create a new function using a file
nvcf function create -f deploy.yaml
# Run preflight check on image to check endpoints
nvcf preflight check tgi:latest
# Get available instance types
nvcf gpus list
For a full list of commands and options, use the --help
flag:
nvcf --help
Contributions to the NVCF CLI are welcome. Please follow these steps to contribute:
- Fork the repository
- Create a new branch for your feature or bug fix
- Make your changes and commit them with clear, descriptive messages
- Push your changes to your fork
- Submit a pull request to the main repository
Please ensure your code adheres to the existing style and includes appropriate tests and documentation.
This project is licensed under the MIT License.
For issues, feature requests, or questions, please open an issue on the GitHub repository.
For more information about NVIDIA Cloud Functions, visit the official documentation