Files
kernels/docs/source/cli.md
Sayak Paul d6b51eefb7 [feat] add an uploading utility (#138)
* add an uploading utility.

* format

* remove stale files.

* black format

* sorted imports.

* up

* up

* add a test

* propagate.

* remove duplicate imports.

* Apply suggestions from code review

Co-authored-by: Daniël de Kok <me@danieldk.eu>

* up

* up

* up

* command to format all files at once would be nice.

* up

* up

* up

* Use token for upload test

* assign env better.

* docs

* polish

* up

* xfail the test for now.

---------

Co-authored-by: Daniël de Kok <me@danieldk.eu>
2025-09-16 08:56:54 +02:00

554 B

Kernels CLI Reference

Main Functions

kernels upload

Use kernels upload <dir_containing_build> --repo_id="hub-username/kernel" to upload your kernel builds to the Hub.

Notes:

  • This will take care of creating a repository on the Hub with the repo_id provided.
  • If a repo with the repo_id already exists and if it contains a build with the build variant being uploaded, it will attempt to delete the files existing under it.
  • Make sure to be authenticated (run hf auth login if not) to be able to perform uploads to the Hub.