For example:
const auth = require('solid-auth-cli')
const file = 'https://jeffz.solid.community/public/likes.ttl.meta'
async function run(){
await auth.login()
await auth.fetch(file,{
method:"PUT",
body:"<> a <#test>.",
contentType:"text/turtle"
}).catch(e=>{console.log("Error : "+e)})
let response = await auth.fetch(file).catch(e=>{console.log("Error : "+e)})
console.log(response.status +" "+ response.statusText)
console.log(await response.text())
}
run()
/* output :
404 Not Found
Trying to access metadata file as regular file
*/