@@ -120,7 +120,6 @@ func init() {
120120 Hidden : true ,
121121 }
122122 boxCmd .Flags ().StringVar (& config .Provider , "provider" , "" , "Provider to use" )
123- boxCmd .Flags ().StringVar (& config .NodeTypeID , "type" , "" , "Node type to use, eg. `gpu_1x_a100`" )
124123 boxCmd .Flags ().StringVar (& config .NodeRegion , "region" , "" , "Region to use, eg. `us_west_2`" )
125124
126125 rootCmd .AddCommand (boxCmd )
@@ -135,9 +134,14 @@ func init() {
135134 codeCmd .Flags ().BoolVar (& config .CreateExec , "new" , false , "Create a new" )
136135 codeCmd .Flags ().StringVarP (& config .BuildID , "image" , "i" , "" , "Build ID of the container image to use" )
137136 codeCmd .Flags ().StringVar (& config .Provider , "provider" , "" , "Provider to use" )
138- codeCmd .Flags ().StringVar (& config .NodeTypeID , "type" , "" , "Node type to use, eg. `gpu_1x_a100`" )
139137 codeCmd .Flags ().StringVar (& config .NodeRegion , "region" , "" , "Region to use, eg. `us_west_2`" )
140138 codeCmd .Flags ().StringVar (& config .SSHPrivateKeyPath , "prv" , "" , "Absolute Path to the private key to use" )
139+ codeCmd .Flags ().IntVar (& config .GPUs , "gpus" , 0 , "Number of GPUs to allocate for a gpuType, e.g., 2" )
140+ codeCmd .Flags ().IntVar (& config .GPUMemory , "gpu-mem" , 0 , "Memory of GPU if applicable for a gpuType, e.g., 12" )
141+ codeCmd .Flags ().StringVar (& config .GPUType , "gpu-type" , "" , "Type of GPU to use, e.g., rtx_5000" )
142+ codeCmd .Flags ().IntVar (& config .CPUs , "cpus" , 0 , "Number of VCPUs to allocate, e.g., 4" )
143+ codeCmd .Flags ().IntVar (& config .Memory , "mem" , 0 , "Amount of RAM to allocate in GB, e.g., 16" )
144+ codeCmd .Flags ().IntVar (& config .HDD , "hdd" , 0 , "Amount of hard-disk space to allocate in GB" )
141145 rootCmd .AddCommand (codeCmd )
142146
143147 rootCmd .AddCommand (& cobra.Command {
@@ -218,8 +222,13 @@ func init() {
218222 }
219223 newCmd .Flags ().StringVarP (& config .BuildID , "image" , "i" , "" , "Build ID of the container image to use" )
220224 newCmd .Flags ().StringVar (& config .Provider , "provider" , "" , "Provider to use" )
221- newCmd .Flags ().StringVar (& config .NodeTypeID , "type" , "" , "Node type to use, eg. `gpu_1x_a100`" )
222225 newCmd .Flags ().StringVar (& config .NodeRegion , "region" , "" , "Region to use, eg. `us_west_2`" )
226+ newCmd .Flags ().IntVar (& config .GPUs , "gpus" , 0 , "Number of GPUs to allocate for a gpuType, e.g., 2" )
227+ newCmd .Flags ().IntVar (& config .GPUMemory , "gpu-mem" , 0 , "Memory of GPU if applicable for a gpuType, e.g., 12" )
228+ newCmd .Flags ().StringVar (& config .GPUType , "gpu-type" , "" , "Type of GPU to use, e.g., rtx_5000" )
229+ newCmd .Flags ().IntVar (& config .CPUs , "cpus" , 0 , "Number of VCPUs to allocate, e.g., 4" )
230+ newCmd .Flags ().IntVar (& config .Memory , "mem" , 0 , "Amount of RAM to allocate in GB, e.g., 16" )
231+ newCmd .Flags ().IntVar (& config .HDD , "hdd" , 0 , "Amount of hard-disk space to allocate in GB" )
223232 rootCmd .AddCommand (newCmd )
224233
225234 lsCmd := & cobra.Command {
@@ -257,9 +266,14 @@ func init() {
257266 sshCmd .Flags ().BoolVar (& config .NoCopySource , "no-copy" , false , "Do not copy source code to the session" )
258267 sshCmd .Flags ().StringVarP (& config .BuildID , "image" , "i" , "" , "Build ID of the container image to use" )
259268 sshCmd .Flags ().StringVar (& config .Provider , "provider" , "" , "Provider to use" )
260- sshCmd .Flags ().StringVar (& config .NodeTypeID , "type" , "" , "Node type to use, eg. `gpu_1x_a100`" )
261269 sshCmd .Flags ().StringVar (& config .NodeRegion , "region" , "" , "Region to use, eg. `us_west_2`" )
262270 sshCmd .Flags ().StringVar (& config .SSHPrivateKeyPath , "prv" , "" , "Absolute Path to the private key to use" )
271+ sshCmd .Flags ().IntVar (& config .GPUs , "gpus" , 0 , "Number of GPUs to allocate for a gpuType, e.g., 2" )
272+ sshCmd .Flags ().IntVar (& config .GPUMemory , "gpu-mem" , 0 , "Memory of GPU if applicable for a gpuType, e.g., 12" )
273+ sshCmd .Flags ().StringVar (& config .GPUType , "gpu-type" , "" , "Type of GPU to use, e.g., rtx_5000" )
274+ sshCmd .Flags ().IntVar (& config .CPUs , "cpus" , 0 , "Number of VCPUs to allocate, e.g., 4" )
275+ sshCmd .Flags ().IntVar (& config .Memory , "mem" , 0 , "Amount of RAM to allocate in GB, e.g., 16" )
276+ sshCmd .Flags ().IntVar (& config .HDD , "hdd" , 0 , "Amount of hard-disk space to allocate in GB" )
263277 rootCmd .AddCommand (sshCmd )
264278
265279 // SSH Key commands
0 commit comments