Recipes

Copy a project into a box

Note
This page is generated from a mock CLI, and its numbers are placeholders.

Verified against vakna 0.0.0-mock on

Pipe a tar of the directory into vakna shell <box> -- tar x: the box reads it from stdin, the way any command does.

How do I copy my working directory into a box?

sh
tar c . | vakna shell api -- tar x -C /src
prints ran tar x -C /src · exit 0 0.40s

How do I use a new box for it?

sh
box=$(vakna create) && tar c . | vakna shell "$box" -- tar x -C /src
prints created box-1 · started in 0.41s · cold boot ran tar x -C /src · exit 0 0.40s

vakna create prints only the box's name on stdout, so $(vakna create) captures it.

View as Markdown