To deploy a cookbook using Knife, run:
knife artifactory share <cookbook-name> [CATEGORY]
Where:
<cookbook-name>: This is a placeholder for the name of your cookbook.[CATEGORY]: This is an optional argument specifying the category your cookbook belongs to. It helps organize cookbooks in Artifactory (for example, “Web Servers”, “Databases”, or “Monitoring”).
Example
knife artifactory share nginx "Web Servers"