hyperctl asset lookup
command
Overview
Lookup a static asset by its path.
The hyperctl asset lookup
command reads website configuration and searches the configured theme, website, and content subdirectories for the asset source file.
hyperctl's
which
command. Thehyperctl asset lookup
command is similar to the POSIXwhich
command, which is used to lookup the binary for a given command. In a similar way, thehyperctl asset lookup
command is used to determine which source file is being used for a given asset path.See the asset hierarchy reference for more information.
Usage
1lookup a static asset by its path.
2
3Usage:
4 hyperctl asset lookup [options] <path>
5
6Options:
7 -c, --config path to the website configuration file. (required) (env: HYPER_CONFIG) (default: site.yaml)
8 -h, --help Display help information.
Options
-c
,--config
- Path to the website configuration file (
site.yaml
orsite.json
).Defaults to the
HYPER_CONFIG
environment variable, if set.To configure a default, use the
export
command.1export HYPER_CONFIG="site.yaml"