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
- Asset management
- Authentication handling
- Queue management
- Cluster group operations
- 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:
go install github.com/brevdev/nvcf@latest
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 functions
nvcf function list
# Create a new function
nvcf function create --name my-function --inference-url https://example.com/function
# Invoke a function
nvcf invoke <function-id> --data '{"input": "Hello, World!"}'
# Get deployment details
nvcf deployment get <function-id> <version-id>
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