import Runloop from '@runloop/api-client';
const client = new Runloop({
bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});
const devboxExecutionDetailView = await client.devboxes.writeFileContents('id', {
contents: 'contents',
file_path: 'file_path',
});
console.log(devboxExecutionDetailView.devbox_id);{
"devbox_id": "<string>",
"stdout": "<string>",
"stderr": "<string>",
"exit_status": 123,
"shell_name": "<string>"
}Write UTF-8 string contents to a file at path on the Devbox. Note for large files (larger than 100MB), the upload_file endpoint must be used.
import Runloop from '@runloop/api-client';
const client = new Runloop({
bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});
const devboxExecutionDetailView = await client.devboxes.writeFileContents('id', {
contents: 'contents',
file_path: 'file_path',
});
console.log(devboxExecutionDetailView.devbox_id);{
"devbox_id": "<string>",
"stdout": "<string>",
"stderr": "<string>",
"exit_status": 123,
"shell_name": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The Devbox ID.
Was this page helpful?