This repository contains the command line interface for Valar.
brew install valar/tap/valar
# Add the Valar API endpoint
valar config endpoint add default --token=[your-api-token] --url=https://api.valar.dev/v2
# Add a new project context
valar config context add default --project=[your-project] --endpoint=default
# Set the configured context as the default one
valar config context use default
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 view
valar config endpoint set [endpoint] --token=[api-token] --url=[endpoint-url]
valar config endpoint
valar config endpoint remove [endpoint]
valar config context set [context] --project=[project] --endpoint=[endpoint]
valar config context
valar 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 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.
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 push [--skip-deploy]
valar list
valar logs [--follow] [--tail] [--skip n] [service]
valar deploys
valar deploys create [buildid]
valar deploys rollback [--delta 1]
valar enable [service]
valar disable [service]
valar env set [--build] [--secret] [key]=[value]
valar env delete [--build] [key]
valar env [--build] [--format=(table|raw)]
valar domains
valar domains add [domain]
valar domains verify [domain]
valar domains link [--insecure] [domain] ([service])
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 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 auth list
valar 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]
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 list
valar 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]