This repository contains the command line interface for Valar.
brew install valar/tap/valarvalar config initThe interactive wizard will prompt for your API endpoint, token, and project. For non-interactive usage (e.g. in CI), pass all values as flags:
valar config init --token=[your-api-token] --project=[your-project]By default, Valar uses the default valarconfig file in $HOME/.valar/config. If the VALARCONFIG environment variable does exist, valar uses an effective configuration that is the result of merging the files listed in the VALARCONFIG variable.
valar config init [--token token] [--project project] [--url url] [--name name] [--force]valar config viewvalar config endpoint set [endpoint] --token=[api-token] --url=[endpoint-url]valar config endpointvalar config endpoint remove [endpoint]valar config context set [context] --project=[project] --endpoint=[endpoint]valar config contextvalar config context use [context]valar config context remove [context]valar projects create [--public] [project-name]Public projects can be invoked by any anonymous person.
valar projects delete [project-name]Destroying a project deletes all services and configuration associated with it. Use with care.
valar service init --type=[constructor] [--project=[project-name]] [service]Valar supports a variety of constructors. If you are looking for an up-to-date list, please refer to the official documentation.
Tip
Using the --project flag is optional, if it is not defined a value will be inferred from the default project set via the config command or the projects supplied by the API service.
valar service listvalar service logs [--follow] [--tail] [--skip n] [service]valar service enable [--service service]valar service disable [--service service]valar deployment listvalar deployment create [buildid]valar deployment rollback [--delta 1]valar env set [--build] [--secret] [key]=[value]valar env delete [--build] [key]valar env [--build] [--format=(table|raw)]valar domainsvalar domains add [domain]valar domains verify [domain]valar domains link [--insecure] [domain] ([service])Caution
If --insecure is enabled, the default HTTP-to-HTTPS redirection handler will be disabled and any plaintext HTTP requests will be forwarded to your service.
valar domains unlink [domain] ([service])valar domains delete [domain]valar builds push [--no-deploy]valar builds list [prefix]valar builds list [prefix]valar builds inspect [prefix]valar builds abort [prefix]valar builds logs [--follow] [--raw] [optional buildid]valar builds watch [optional buildid]valar builds status [--exit] [buildid]valar whoamivalar auth listvalar auth allow [path] [user] [read | write | invoke | manage]valar auth forbid [path] [user] [read | write | invoke | manage ]valar auth clear [path] [user] [read | write | invoke | manage ]valar auth check [path] [user] [read | write | invoke | manage]Warning
In case of a public project, this means only the project owner has write, read and invoke access, while any person may invoke a service of the project.
valar cron listvalar cron set [name] [schedule] [--path path] [--data payload] [--service service] [--enabled|--disabled]valar cron delete [name] [--service service]valar cron trigger [name] [--service service]valar cron inspect [name] [--service service]