@liara/cli
Advanced tools
Comparing version 2.13.2 to 2.14.0
@@ -75,3 +75,2 @@ "use strict"; | ||
async promptName() { | ||
var _a; | ||
const { name } = (await inquirer_1.prompt({ | ||
@@ -93,3 +92,3 @@ name: "name", | ||
const currentAccountsName = currentAccounts && Object.keys(currentAccounts); | ||
return ((_a = currentAccountsName) === null || _a === void 0 ? void 0 : _a.includes(name)) ? this.error("This name has already been used for another account. Please use a different name.") | ||
return (currentAccountsName === null || currentAccountsName === void 0 ? void 0 : currentAccountsName.includes(name)) ? this.error("This name has already been used for another account. Please use a different name.") | ||
: name; | ||
@@ -96,0 +95,0 @@ } |
@@ -8,6 +8,7 @@ import Command from "../../base"; | ||
filter: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>; | ||
csv: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>; | ||
extended: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>; | ||
'no-truncate': import("@oclif/parser/lib/flags").IBooleanFlag<boolean>; | ||
'no-header': import("@oclif/parser/lib/flags").IBooleanFlag<boolean>; | ||
csv: import("@oclif/command/lib/flags").IFlag<boolean>; | ||
output: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>; | ||
extended: import("@oclif/command/lib/flags").IFlag<boolean>; | ||
'no-truncate': import("@oclif/command/lib/flags").IFlag<boolean>; | ||
'no-header': import("@oclif/command/lib/flags").IFlag<boolean>; | ||
help: import("@oclif/parser/lib/flags").IBooleanFlag<void>; | ||
@@ -14,0 +15,0 @@ dev: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>; |
@@ -21,6 +21,2 @@ import ora from "ora"; | ||
promptPlatform(): Promise<string>; | ||
ramSpacing(value: number): string; | ||
cpuSpacing(value: number): string; | ||
diskSpacing(value: number): string; | ||
priceSpacing(value: number): string; | ||
} |
@@ -10,2 +10,3 @@ "use strict"; | ||
const output_1 = require("../../utils/output"); | ||
const spacing_1 = require("../../utils/spacing"); | ||
class AppCreate extends base_1.default { | ||
@@ -72,3 +73,3 @@ async run() { | ||
value: plan, | ||
name: `RAM: ${ram}${this.ramSpacing(ram)}GB, CPU: ${cpu}${this.cpuSpacing(cpu)}Core, Disk: ${disk}${this.diskSpacing(disk)}GB ${storageClass}, Price: ${price.toLocaleString()}${this.priceSpacing(price)}Tomans/Month`, | ||
name: `RAM: ${ram}${spacing_1.ramSpacing(ram)}GB, CPU: ${cpu}${spacing_1.cpuSpacing(cpu)}Core, Disk: ${disk}${spacing_1.diskSpacing(disk)}GB ${storageClass}, Price: ${price.toLocaleString()}${spacing_1.priceSpacing(price)}Tomans/Month`, | ||
}; | ||
@@ -115,40 +116,2 @@ }), | ||
} | ||
ramSpacing(value) { | ||
const inputLength = value.toString().length; | ||
return inputLength === 1 | ||
? " ".repeat(3) | ||
: inputLength === 2 | ||
? " ".repeat(2) | ||
: inputLength === 3 | ||
? " " | ||
: ""; | ||
} | ||
cpuSpacing(value) { | ||
const inputLength = value.toString().length; | ||
return inputLength === 1 | ||
? " ".repeat(4) | ||
: inputLength === 2 | ||
? " ".repeat(3) | ||
: inputLength === 3 | ||
? " ".repeat(2) | ||
: " "; | ||
} | ||
diskSpacing(value) { | ||
const inputLength = value.toString().length; | ||
return inputLength === 1 | ||
? " ".repeat(3) | ||
: inputLength === 2 | ||
? " ".repeat(2) | ||
: inputLength === 3 | ||
? " " | ||
: ""; | ||
} | ||
priceSpacing(value) { | ||
const inputLength = value.toString().length; | ||
return inputLength === 5 | ||
? " ".repeat(4) | ||
: inputLength === 6 | ||
? " ".repeat(3) | ||
: " "; | ||
} | ||
} | ||
@@ -155,0 +118,0 @@ exports.default = AppCreate; |
@@ -15,3 +15,3 @@ import ora from "ora"; | ||
app: flags.IOptionFlag<string | undefined>; | ||
command: flags.IOptionFlag<string | undefined>; | ||
command: flags.IOptionFlag<string>; | ||
help: import("@oclif/parser/lib/flags").IBooleanFlag<void>; | ||
@@ -18,0 +18,0 @@ dev: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>; |
@@ -70,3 +70,3 @@ import ora from 'ora'; | ||
image: flags.IOptionFlag<string | undefined>; | ||
'detach': import("@oclif/parser/lib/flags").IBooleanFlag<boolean>; | ||
detach: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>; | ||
args: flags.IOptionFlag<string[]>; | ||
@@ -73,0 +73,0 @@ 'build-arg': flags.IOptionFlag<string[]>; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.FALLBACK_REGION = exports.REGIONS_API_URL = exports.GLOBAL_CONF_PATH = exports.DEV_MODE = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -4,0 +5,0 @@ const os_1 = tslib_1.__importDefault(require("os")); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var command_1 = require("@oclif/command"); | ||
exports.run = command_1.run; | ||
Object.defineProperty(exports, "run", { enumerable: true, get: function () { return command_1.run; } }); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createDebugLogger = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -4,0 +5,0 @@ const chalk_1 = tslib_1.__importDefault(require("chalk")); |
@@ -1,1 +0,1 @@ | ||
{"version":"2.13.2","commands":{"deploy":{"id":"deploy","description":"deploy an app","pluginName":"@liara/cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"dev":{"name":"dev","type":"boolean","description":"run in dev mode","hidden":true,"allowNo":false},"debug":{"name":"debug","type":"boolean","description":"show debug logs","allowNo":false},"api-token":{"name":"api-token","type":"option","description":"your api token to use for authentication"},"region":{"name":"region","type":"option","description":"the region you want to deploy your app to","options":["iran","germany"]},"path":{"name":"path","type":"option","description":"app path in your computer"},"platform":{"name":"platform","type":"option","description":"the platform your app needs to run"},"app":{"name":"app","type":"option","char":"a","description":"app id"},"port":{"name":"port","type":"option","description":"the port that your app listens to"},"volume":{"name":"volume","type":"option","char":"v","description":"volume absolute path"},"image":{"name":"image","type":"option","char":"i","description":"docker image to deploy"},"detach":{"name":"detach","type":"boolean","description":"do not stream app logs after deployment","allowNo":false},"args":{"name":"args","type":"option","description":"docker image entrypoint args"},"build-arg":{"name":"build-arg","type":"option","description":"docker image build args"},"message":{"name":"message","type":"option","char":"m","description":"the release message"},"disks":{"name":"disks","type":"option","char":"d","description":"mount a disk"}},"args":[]},"login":{"id":"login","description":"login to your account","pluginName":"@liara/cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"dev":{"name":"dev","type":"boolean","description":"run in dev mode","hidden":true,"allowNo":false},"debug":{"name":"debug","type":"boolean","description":"show debug logs","allowNo":false},"api-token":{"name":"api-token","type":"option","description":"your api token to use for authentication"},"region":{"name":"region","type":"option","description":"the region you want to deploy your app to","options":["iran","germany"]},"email":{"name":"email","type":"option","char":"e","description":"your email"},"password":{"name":"password","type":"option","char":"p","description":"your password"}},"args":[]},"account:add":{"id":"account:add","description":"add an account","pluginName":"@liara/cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"dev":{"name":"dev","type":"boolean","description":"run in dev mode","hidden":true,"allowNo":false},"debug":{"name":"debug","type":"boolean","description":"show debug logs","allowNo":false},"api-token":{"name":"api-token","type":"option","description":"your api token to use for authentication"},"region":{"name":"region","type":"option","description":"the region you want to deploy your app to","options":["iran","germany"]},"account":{"name":"account","type":"option","char":"a","description":"account name"},"email":{"name":"email","type":"option","char":"e","description":"your email"},"password":{"name":"password","type":"option","char":"p","description":"your password"}},"args":[]},"account:list":{"id":"account:list","description":"list available accounts","pluginName":"@liara/cli","pluginType":"core","aliases":["account:ls"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"dev":{"name":"dev","type":"boolean","description":"run in dev mode","hidden":true,"allowNo":false},"debug":{"name":"debug","type":"boolean","description":"show debug logs","allowNo":false},"api-token":{"name":"api-token","type":"option","description":"your api token to use for authentication"},"region":{"name":"region","type":"option","description":"the region you want to deploy your app to","options":["iran","germany"]},"columns":{"name":"columns","type":"option","description":"only show provided columns (comma-separated)"},"sort":{"name":"sort","type":"option","description":"property to sort by (prepend '-' for descending)"},"filter":{"name":"filter","type":"option","description":"filter property by partial string matching, ex: name=foo"},"csv":{"name":"csv","type":"boolean","description":"output is csv format","allowNo":false},"extended":{"name":"extended","type":"boolean","char":"x","description":"show extra columns","allowNo":false},"no-truncate":{"name":"no-truncate","type":"boolean","description":"do not truncate output to fit screen","allowNo":false},"no-header":{"name":"no-header","type":"boolean","description":"hide table header from output","allowNo":false}},"args":[]},"account:remove":{"id":"account:remove","description":"remove an account","pluginName":"@liara/cli","pluginType":"core","aliases":["account:rm"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"dev":{"name":"dev","type":"boolean","description":"run in dev mode","hidden":true,"allowNo":false},"debug":{"name":"debug","type":"boolean","description":"show debug logs","allowNo":false},"api-token":{"name":"api-token","type":"option","description":"your api token to use for authentication"},"region":{"name":"region","type":"option","description":"the region you want to deploy your app to","options":["iran","germany"]},"account":{"name":"account","type":"option","char":"a","description":"account name"}},"args":[]},"account:use":{"id":"account:use","description":"select an account","pluginName":"@liara/cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"dev":{"name":"dev","type":"boolean","description":"run in dev mode","hidden":true,"allowNo":false},"debug":{"name":"debug","type":"boolean","description":"show debug logs","allowNo":false},"api-token":{"name":"api-token","type":"option","description":"your api token to use for authentication"},"region":{"name":"region","type":"option","description":"the region you want to deploy your app to","options":["iran","germany"]},"account":{"name":"account","type":"option","char":"a","description":"account name"}},"args":[]},"app:create":{"id":"app:create","description":"create an app","pluginName":"@liara/cli","pluginType":"core","aliases":["create"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"dev":{"name":"dev","type":"boolean","description":"run in dev mode","hidden":true,"allowNo":false},"debug":{"name":"debug","type":"boolean","description":"show debug logs","allowNo":false},"api-token":{"name":"api-token","type":"option","description":"your api token to use for authentication"},"region":{"name":"region","type":"option","description":"the region you want to deploy your app to","options":["iran","germany"]},"app":{"name":"app","type":"option","char":"a","description":"app id","required":true},"platform":{"name":"platform","type":"option","description":"platform"},"plan":{"name":"plan","type":"option","description":"plan"}},"args":[]},"app:delete":{"id":"app:delete","description":"delete an app","pluginName":"@liara/cli","pluginType":"core","aliases":["delete"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"dev":{"name":"dev","type":"boolean","description":"run in dev mode","hidden":true,"allowNo":false},"debug":{"name":"debug","type":"boolean","description":"show debug logs","allowNo":false},"api-token":{"name":"api-token","type":"option","description":"your api token to use for authentication"},"region":{"name":"region","type":"option","description":"the region you want to deploy your app to","options":["iran","germany"]},"app":{"name":"app","type":"option","char":"a","description":"app id","required":true}},"args":[]},"app:logs":{"id":"app:logs","description":"fetch the logs of an app","pluginName":"@liara/cli","pluginType":"core","aliases":["logs"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"dev":{"name":"dev","type":"boolean","description":"run in dev mode","hidden":true,"allowNo":false},"debug":{"name":"debug","type":"boolean","description":"show debug logs","allowNo":false},"api-token":{"name":"api-token","type":"option","description":"your api token to use for authentication"},"region":{"name":"region","type":"option","description":"the region you want to deploy your app to","options":["iran","germany"]},"app":{"name":"app","type":"option","char":"a","description":"app id","required":true},"since":{"name":"since","type":"option","char":"s","description":"show logs since timestamp"}},"args":[]},"app:restart":{"id":"app:restart","description":"restart an app","pluginName":"@liara/cli","pluginType":"core","aliases":["restart"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"dev":{"name":"dev","type":"boolean","description":"run in dev mode","hidden":true,"allowNo":false},"debug":{"name":"debug","type":"boolean","description":"show debug logs","allowNo":false},"api-token":{"name":"api-token","type":"option","description":"your api token to use for authentication"},"region":{"name":"region","type":"option","description":"the region you want to deploy your app to","options":["iran","germany"]},"app":{"name":"app","type":"option","char":"a","description":"app id","required":true}},"args":[]},"app:shell":{"id":"app:shell","description":"run a command in a running applet","pluginName":"@liara/cli","pluginType":"core","aliases":["shell"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"dev":{"name":"dev","type":"boolean","description":"run in dev mode","hidden":true,"allowNo":false},"debug":{"name":"debug","type":"boolean","description":"show debug logs","allowNo":false},"api-token":{"name":"api-token","type":"option","description":"your api token to use for authentication"},"region":{"name":"region","type":"option","description":"the region you want to deploy your app to","options":["iran","germany"]},"app":{"name":"app","type":"option","char":"a","description":"app id"},"command":{"name":"command","type":"option","char":"c","description":"the command to execute","default":"/bin/bash"}},"args":[]},"app:start":{"id":"app:start","description":"start an app","pluginName":"@liara/cli","pluginType":"core","aliases":["start"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"dev":{"name":"dev","type":"boolean","description":"run in dev mode","hidden":true,"allowNo":false},"debug":{"name":"debug","type":"boolean","description":"show debug logs","allowNo":false},"api-token":{"name":"api-token","type":"option","description":"your api token to use for authentication"},"region":{"name":"region","type":"option","description":"the region you want to deploy your app to","options":["iran","germany"]},"app":{"name":"app","type":"option","char":"a","description":"app id","required":true}},"args":[]},"app:stop":{"id":"app:stop","description":"stop an app","pluginName":"@liara/cli","pluginType":"core","aliases":["stop"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"dev":{"name":"dev","type":"boolean","description":"run in dev mode","hidden":true,"allowNo":false},"debug":{"name":"debug","type":"boolean","description":"show debug logs","allowNo":false},"api-token":{"name":"api-token","type":"option","description":"your api token to use for authentication"},"region":{"name":"region","type":"option","description":"the region you want to deploy your app to","options":["iran","germany"]},"app":{"name":"app","type":"option","char":"a","description":"app id","required":true}},"args":[]}}} | ||
{"version":"2.14.0","commands":{"deploy":{"id":"deploy","description":"deploy an app","pluginName":"@liara/cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"dev":{"name":"dev","type":"boolean","description":"run in dev mode","hidden":true,"allowNo":false},"debug":{"name":"debug","type":"boolean","description":"show debug logs","allowNo":false},"api-token":{"name":"api-token","type":"option","description":"your api token to use for authentication"},"region":{"name":"region","type":"option","description":"the region you want to deploy your app to","options":["iran","germany"]},"path":{"name":"path","type":"option","description":"app path in your computer"},"platform":{"name":"platform","type":"option","description":"the platform your app needs to run"},"app":{"name":"app","type":"option","char":"a","description":"app id"},"port":{"name":"port","type":"option","description":"the port that your app listens to"},"volume":{"name":"volume","type":"option","char":"v","description":"volume absolute path"},"image":{"name":"image","type":"option","char":"i","description":"docker image to deploy"},"detach":{"name":"detach","type":"boolean","description":"do not stream app logs after deployment","allowNo":false},"args":{"name":"args","type":"option","description":"docker image entrypoint args"},"build-arg":{"name":"build-arg","type":"option","description":"docker image build args"},"message":{"name":"message","type":"option","char":"m","description":"the release message"},"disks":{"name":"disks","type":"option","char":"d","description":"mount a disk"}},"args":[]},"login":{"id":"login","description":"login to your account","pluginName":"@liara/cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"dev":{"name":"dev","type":"boolean","description":"run in dev mode","hidden":true,"allowNo":false},"debug":{"name":"debug","type":"boolean","description":"show debug logs","allowNo":false},"api-token":{"name":"api-token","type":"option","description":"your api token to use for authentication"},"region":{"name":"region","type":"option","description":"the region you want to deploy your app to","options":["iran","germany"]},"email":{"name":"email","type":"option","char":"e","description":"your email"},"password":{"name":"password","type":"option","char":"p","description":"your password"}},"args":[]},"account:add":{"id":"account:add","description":"add an account","pluginName":"@liara/cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"dev":{"name":"dev","type":"boolean","description":"run in dev mode","hidden":true,"allowNo":false},"debug":{"name":"debug","type":"boolean","description":"show debug logs","allowNo":false},"api-token":{"name":"api-token","type":"option","description":"your api token to use for authentication"},"region":{"name":"region","type":"option","description":"the region you want to deploy your app to","options":["iran","germany"]},"account":{"name":"account","type":"option","char":"a","description":"account name"},"email":{"name":"email","type":"option","char":"e","description":"your email"},"password":{"name":"password","type":"option","char":"p","description":"your password"}},"args":[]},"account:list":{"id":"account:list","description":"list available accounts","pluginName":"@liara/cli","pluginType":"core","aliases":["account:ls"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"dev":{"name":"dev","type":"boolean","description":"run in dev mode","hidden":true,"allowNo":false},"debug":{"name":"debug","type":"boolean","description":"show debug logs","allowNo":false},"api-token":{"name":"api-token","type":"option","description":"your api token to use for authentication"},"region":{"name":"region","type":"option","description":"the region you want to deploy your app to","options":["iran","germany"]},"columns":{"name":"columns","type":"option","description":"only show provided columns (comma-separated)"},"sort":{"name":"sort","type":"option","description":"property to sort by (prepend '-' for descending)"},"filter":{"name":"filter","type":"option","description":"filter property by partial string matching, ex: name=foo"},"csv":{"name":"csv","type":"boolean","description":"output is csv format [alias: --output=csv]","allowNo":false},"output":{"name":"output","type":"option","description":"output in a more machine friendly format","options":["csv","json","yaml"]},"extended":{"name":"extended","type":"boolean","char":"x","description":"show extra columns","allowNo":false},"no-truncate":{"name":"no-truncate","type":"boolean","description":"do not truncate output to fit screen","allowNo":false},"no-header":{"name":"no-header","type":"boolean","description":"hide table header from output","allowNo":false}},"args":[]},"account:remove":{"id":"account:remove","description":"remove an account","pluginName":"@liara/cli","pluginType":"core","aliases":["account:rm"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"dev":{"name":"dev","type":"boolean","description":"run in dev mode","hidden":true,"allowNo":false},"debug":{"name":"debug","type":"boolean","description":"show debug logs","allowNo":false},"api-token":{"name":"api-token","type":"option","description":"your api token to use for authentication"},"region":{"name":"region","type":"option","description":"the region you want to deploy your app to","options":["iran","germany"]},"account":{"name":"account","type":"option","char":"a","description":"account name"}},"args":[]},"account:use":{"id":"account:use","description":"select an account","pluginName":"@liara/cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"dev":{"name":"dev","type":"boolean","description":"run in dev mode","hidden":true,"allowNo":false},"debug":{"name":"debug","type":"boolean","description":"show debug logs","allowNo":false},"api-token":{"name":"api-token","type":"option","description":"your api token to use for authentication"},"region":{"name":"region","type":"option","description":"the region you want to deploy your app to","options":["iran","germany"]},"account":{"name":"account","type":"option","char":"a","description":"account name"}},"args":[]},"app:create":{"id":"app:create","description":"create an app","pluginName":"@liara/cli","pluginType":"core","aliases":["create"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"dev":{"name":"dev","type":"boolean","description":"run in dev mode","hidden":true,"allowNo":false},"debug":{"name":"debug","type":"boolean","description":"show debug logs","allowNo":false},"api-token":{"name":"api-token","type":"option","description":"your api token to use for authentication"},"region":{"name":"region","type":"option","description":"the region you want to deploy your app to","options":["iran","germany"]},"app":{"name":"app","type":"option","char":"a","description":"app id","required":true},"platform":{"name":"platform","type":"option","description":"platform"},"plan":{"name":"plan","type":"option","description":"plan"}},"args":[]},"app:delete":{"id":"app:delete","description":"delete an app","pluginName":"@liara/cli","pluginType":"core","aliases":["delete"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"dev":{"name":"dev","type":"boolean","description":"run in dev mode","hidden":true,"allowNo":false},"debug":{"name":"debug","type":"boolean","description":"show debug logs","allowNo":false},"api-token":{"name":"api-token","type":"option","description":"your api token to use for authentication"},"region":{"name":"region","type":"option","description":"the region you want to deploy your app to","options":["iran","germany"]},"app":{"name":"app","type":"option","char":"a","description":"app id","required":true}},"args":[]},"app:logs":{"id":"app:logs","description":"fetch the logs of an app","pluginName":"@liara/cli","pluginType":"core","aliases":["logs"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"dev":{"name":"dev","type":"boolean","description":"run in dev mode","hidden":true,"allowNo":false},"debug":{"name":"debug","type":"boolean","description":"show debug logs","allowNo":false},"api-token":{"name":"api-token","type":"option","description":"your api token to use for authentication"},"region":{"name":"region","type":"option","description":"the region you want to deploy your app to","options":["iran","germany"]},"app":{"name":"app","type":"option","char":"a","description":"app id","required":true},"since":{"name":"since","type":"option","char":"s","description":"show logs since timestamp"}},"args":[]},"app:restart":{"id":"app:restart","description":"restart an app","pluginName":"@liara/cli","pluginType":"core","aliases":["restart"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"dev":{"name":"dev","type":"boolean","description":"run in dev mode","hidden":true,"allowNo":false},"debug":{"name":"debug","type":"boolean","description":"show debug logs","allowNo":false},"api-token":{"name":"api-token","type":"option","description":"your api token to use for authentication"},"region":{"name":"region","type":"option","description":"the region you want to deploy your app to","options":["iran","germany"]},"app":{"name":"app","type":"option","char":"a","description":"app id","required":true}},"args":[]},"app:shell":{"id":"app:shell","description":"run a command in a running applet","pluginName":"@liara/cli","pluginType":"core","aliases":["shell"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"dev":{"name":"dev","type":"boolean","description":"run in dev mode","hidden":true,"allowNo":false},"debug":{"name":"debug","type":"boolean","description":"show debug logs","allowNo":false},"api-token":{"name":"api-token","type":"option","description":"your api token to use for authentication"},"region":{"name":"region","type":"option","description":"the region you want to deploy your app to","options":["iran","germany"]},"app":{"name":"app","type":"option","char":"a","description":"app id"},"command":{"name":"command","type":"option","char":"c","description":"the command to execute","default":"/bin/bash"}},"args":[]},"app:start":{"id":"app:start","description":"start an app","pluginName":"@liara/cli","pluginType":"core","aliases":["start"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"dev":{"name":"dev","type":"boolean","description":"run in dev mode","hidden":true,"allowNo":false},"debug":{"name":"debug","type":"boolean","description":"show debug logs","allowNo":false},"api-token":{"name":"api-token","type":"option","description":"your api token to use for authentication"},"region":{"name":"region","type":"option","description":"the region you want to deploy your app to","options":["iran","germany"]},"app":{"name":"app","type":"option","char":"a","description":"app id","required":true}},"args":[]},"app:stop":{"id":"app:stop","description":"stop an app","pluginName":"@liara/cli","pluginType":"core","aliases":["stop"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"dev":{"name":"dev","type":"boolean","description":"run in dev mode","hidden":true,"allowNo":false},"debug":{"name":"debug","type":"boolean","description":"show debug logs","allowNo":false},"api-token":{"name":"api-token","type":"option","description":"your api token to use for authentication"},"region":{"name":"region","type":"option","description":"the region you want to deploy your app to","options":["iran","germany"]},"app":{"name":"app","type":"option","char":"a","description":"app id","required":true}},"args":[]},"plan:list":{"id":"plan:list","description":"list available plans","pluginName":"@liara/cli","pluginType":"core","aliases":["plan:ls"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"dev":{"name":"dev","type":"boolean","description":"run in dev mode","hidden":true,"allowNo":false},"debug":{"name":"debug","type":"boolean","description":"show debug logs","allowNo":false},"api-token":{"name":"api-token","type":"option","description":"your api token to use for authentication"},"region":{"name":"region","type":"option","description":"the region you want to deploy your app to","options":["iran","germany"]},"columns":{"name":"columns","type":"option","description":"only show provided columns (comma-separated)"},"sort":{"name":"sort","type":"option","description":"property to sort by (prepend '-' for descending)"},"filter":{"name":"filter","type":"option","description":"filter property by partial string matching, ex: name=foo"},"csv":{"name":"csv","type":"boolean","description":"output is csv format [alias: --output=csv]","allowNo":false},"output":{"name":"output","type":"option","description":"output in a more machine friendly format","options":["csv","json","yaml"]},"extended":{"name":"extended","type":"boolean","char":"x","description":"show extra columns","allowNo":false},"no-truncate":{"name":"no-truncate","type":"boolean","description":"do not truncate output to fit screen","allowNo":false},"no-header":{"name":"no-header","type":"boolean","description":"hide table header from output","allowNo":false}},"args":[]}}} |
{ | ||
"name": "@liara/cli", | ||
"description": "The command line interface for Liara", | ||
"version": "2.13.2", | ||
"version": "2.14.0", | ||
"author": "Mhe <mhemrg120@gmail.com> (http://liara.ir/) @mhemrg", | ||
@@ -6,0 +6,0 @@ "bin": { |
112
README.md
@@ -22,3 +22,3 @@ @liara/cli | ||
$ liara (-v|--version|version) | ||
@liara/cli/2.13.2 darwin-x64 node-v14.17.3 | ||
@liara/cli/2.14.0 darwin-x64 node-v14.17.3 | ||
$ liara --help [COMMAND] | ||
@@ -46,2 +46,3 @@ USAGE | ||
* [`liara login`](#liara-login) | ||
* [`liara plan:list`](#liara-planlist) | ||
@@ -53,2 +54,4 @@ ## `liara account:add` | ||
``` | ||
add an account | ||
USAGE | ||
@@ -67,3 +70,3 @@ $ liara account:add | ||
_See code: [src/commands/account/add.ts](https://github.com/liara-ir/liara-cli/blob/v2.13.2/src/commands/account/add.ts)_ | ||
_See code: [src/commands/account/add.ts](https://github.com/liara-ir/liara-cli/blob/v2.14.0/src/commands/account/add.ts)_ | ||
@@ -75,2 +78,4 @@ ## `liara account:list` | ||
``` | ||
list available accounts | ||
USAGE | ||
@@ -80,13 +85,14 @@ $ liara account:list | ||
OPTIONS | ||
-h, --help show CLI help | ||
-x, --extended show extra columns | ||
--api-token=api-token your api token to use for authentication | ||
--columns=columns only show provided columns (comma-separated) | ||
--csv output is csv format | ||
--debug show debug logs | ||
--filter=filter filter property by partial string matching, ex: name=foo | ||
--no-header hide table header from output | ||
--no-truncate do not truncate output to fit screen | ||
--region=iran|germany the region you want to deploy your app to | ||
--sort=sort property to sort by (prepend '-' for descending) | ||
-h, --help show CLI help | ||
-x, --extended show extra columns | ||
--api-token=api-token your api token to use for authentication | ||
--columns=columns only show provided columns (comma-separated) | ||
--csv output is csv format [alias: --output=csv] | ||
--debug show debug logs | ||
--filter=filter filter property by partial string matching, ex: name=foo | ||
--no-header hide table header from output | ||
--no-truncate do not truncate output to fit screen | ||
--output=csv|json|yaml output in a more machine friendly format | ||
--region=iran|germany the region you want to deploy your app to | ||
--sort=sort property to sort by (prepend '-' for descending) | ||
@@ -97,3 +103,3 @@ ALIASES | ||
_See code: [src/commands/account/list.ts](https://github.com/liara-ir/liara-cli/blob/v2.13.2/src/commands/account/list.ts)_ | ||
_See code: [src/commands/account/list.ts](https://github.com/liara-ir/liara-cli/blob/v2.14.0/src/commands/account/list.ts)_ | ||
@@ -105,2 +111,4 @@ ## `liara account:remove` | ||
``` | ||
remove an account | ||
USAGE | ||
@@ -120,3 +128,3 @@ $ liara account:remove | ||
_See code: [src/commands/account/remove.ts](https://github.com/liara-ir/liara-cli/blob/v2.13.2/src/commands/account/remove.ts)_ | ||
_See code: [src/commands/account/remove.ts](https://github.com/liara-ir/liara-cli/blob/v2.14.0/src/commands/account/remove.ts)_ | ||
@@ -128,2 +136,4 @@ ## `liara account:use` | ||
``` | ||
select an account | ||
USAGE | ||
@@ -140,3 +150,3 @@ $ liara account:use | ||
_See code: [src/commands/account/use.ts](https://github.com/liara-ir/liara-cli/blob/v2.13.2/src/commands/account/use.ts)_ | ||
_See code: [src/commands/account/use.ts](https://github.com/liara-ir/liara-cli/blob/v2.14.0/src/commands/account/use.ts)_ | ||
@@ -148,2 +158,4 @@ ## `liara app:create` | ||
``` | ||
create an app | ||
USAGE | ||
@@ -165,3 +177,3 @@ $ liara app:create | ||
_See code: [src/commands/app/create.ts](https://github.com/liara-ir/liara-cli/blob/v2.13.2/src/commands/app/create.ts)_ | ||
_See code: [src/commands/app/create.ts](https://github.com/liara-ir/liara-cli/blob/v2.14.0/src/commands/app/create.ts)_ | ||
@@ -173,2 +185,4 @@ ## `liara app:delete` | ||
``` | ||
delete an app | ||
USAGE | ||
@@ -188,3 +202,3 @@ $ liara app:delete | ||
_See code: [src/commands/app/delete.ts](https://github.com/liara-ir/liara-cli/blob/v2.13.2/src/commands/app/delete.ts)_ | ||
_See code: [src/commands/app/delete.ts](https://github.com/liara-ir/liara-cli/blob/v2.14.0/src/commands/app/delete.ts)_ | ||
@@ -196,2 +210,4 @@ ## `liara app:logs` | ||
``` | ||
fetch the logs of an app | ||
USAGE | ||
@@ -212,3 +228,3 @@ $ liara app:logs | ||
_See code: [src/commands/app/logs.ts](https://github.com/liara-ir/liara-cli/blob/v2.13.2/src/commands/app/logs.ts)_ | ||
_See code: [src/commands/app/logs.ts](https://github.com/liara-ir/liara-cli/blob/v2.14.0/src/commands/app/logs.ts)_ | ||
@@ -220,2 +236,4 @@ ## `liara app:restart` | ||
``` | ||
restart an app | ||
USAGE | ||
@@ -235,3 +253,3 @@ $ liara app:restart | ||
_See code: [src/commands/app/restart.ts](https://github.com/liara-ir/liara-cli/blob/v2.13.2/src/commands/app/restart.ts)_ | ||
_See code: [src/commands/app/restart.ts](https://github.com/liara-ir/liara-cli/blob/v2.14.0/src/commands/app/restart.ts)_ | ||
@@ -243,2 +261,4 @@ ## `liara app:shell` | ||
``` | ||
run a command in a running applet | ||
USAGE | ||
@@ -259,3 +279,3 @@ $ liara app:shell | ||
_See code: [src/commands/app/shell.ts](https://github.com/liara-ir/liara-cli/blob/v2.13.2/src/commands/app/shell.ts)_ | ||
_See code: [src/commands/app/shell.ts](https://github.com/liara-ir/liara-cli/blob/v2.14.0/src/commands/app/shell.ts)_ | ||
@@ -267,2 +287,4 @@ ## `liara app:start` | ||
``` | ||
start an app | ||
USAGE | ||
@@ -282,3 +304,3 @@ $ liara app:start | ||
_See code: [src/commands/app/start.ts](https://github.com/liara-ir/liara-cli/blob/v2.13.2/src/commands/app/start.ts)_ | ||
_See code: [src/commands/app/start.ts](https://github.com/liara-ir/liara-cli/blob/v2.14.0/src/commands/app/start.ts)_ | ||
@@ -290,2 +312,4 @@ ## `liara app:stop` | ||
``` | ||
stop an app | ||
USAGE | ||
@@ -305,3 +329,3 @@ $ liara app:stop | ||
_See code: [src/commands/app/stop.ts](https://github.com/liara-ir/liara-cli/blob/v2.13.2/src/commands/app/stop.ts)_ | ||
_See code: [src/commands/app/stop.ts](https://github.com/liara-ir/liara-cli/blob/v2.14.0/src/commands/app/stop.ts)_ | ||
@@ -313,2 +337,4 @@ ## `liara deploy` | ||
``` | ||
deploy an app | ||
USAGE | ||
@@ -335,3 +361,3 @@ $ liara deploy | ||
_See code: [src/commands/deploy.ts](https://github.com/liara-ir/liara-cli/blob/v2.13.2/src/commands/deploy.ts)_ | ||
_See code: [src/commands/deploy.ts](https://github.com/liara-ir/liara-cli/blob/v2.14.0/src/commands/deploy.ts)_ | ||
@@ -343,2 +369,4 @@ ## `liara help [COMMAND]` | ||
``` | ||
display help for <%= config.bin %> | ||
USAGE | ||
@@ -354,3 +382,3 @@ $ liara help [COMMAND] | ||
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v2.1.6/src/commands/help.ts)_ | ||
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v2.2.3/src/commands/help.ts)_ | ||
@@ -362,2 +390,4 @@ ## `liara login` | ||
``` | ||
login to your account | ||
USAGE | ||
@@ -375,3 +405,33 @@ $ liara login | ||
_See code: [src/commands/login.ts](https://github.com/liara-ir/liara-cli/blob/v2.13.2/src/commands/login.ts)_ | ||
_See code: [src/commands/login.ts](https://github.com/liara-ir/liara-cli/blob/v2.14.0/src/commands/login.ts)_ | ||
## `liara plan:list` | ||
list available plans | ||
``` | ||
list available plans | ||
USAGE | ||
$ liara plan:list | ||
OPTIONS | ||
-h, --help show CLI help | ||
-x, --extended show extra columns | ||
--api-token=api-token your api token to use for authentication | ||
--columns=columns only show provided columns (comma-separated) | ||
--csv output is csv format [alias: --output=csv] | ||
--debug show debug logs | ||
--filter=filter filter property by partial string matching, ex: name=foo | ||
--no-header hide table header from output | ||
--no-truncate do not truncate output to fit screen | ||
--output=csv|json|yaml output in a more machine friendly format | ||
--region=iran|germany the region you want to deploy your app to | ||
--sort=sort property to sort by (prepend '-' for descending) | ||
ALIASES | ||
$ liara plan:ls | ||
``` | ||
_See code: [src/commands/plan/list.ts](https://github.com/liara-ir/liara-cli/blob/v2.14.0/src/commands/plan/list.ts)_ | ||
<!-- commandsstop --> |
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
123206
64
2289
407
2