Diese Seite wird automatisch aus den Click-Definitionen in viur_cli generiert. Jeder --help-Text, jedes Argument, jede Option, die im Code dokumentiert ist, erscheint hier ohne manuelle Pflege.
viur¶
Manage and operate ViUR projects from a single command line.
Reads project.json for per-profile settings (deploy targets, build
pipelines, packaged ViUR frontends). Run viur project list to see
the resolved configuration of a profile.
Usage:
Options:
Subcommands
- admin: Manage the admin Vue.js CMS bundle.
- autocomplete-info: Show autocompletion status and instructions.
- build: Build deploy artifacts (npm bundles, exec build steps) for a ViUR project.
- check: Audit Python (pip-audit) and npm (npm audit) dependencies for known vulnerabilities.
- cloud: Manage Google Cloud resources for a ViUR project (deploy, IAM, backup, datastore).
- create: Clone viur-base into ./NAME and run its clean-base.py setup wizard.
- env: Print the resolved profile and the versions of CLI tools used by ViUR development.
- package: [DEPRECATED] Use 'viur
' instead. - project: Inspect the resolved project.json configuration for a profile.
- run: Start the application locally via app_server (requires an active gcloud login).
- script: Pull, push, and run ViUR Scriptor scripts against a deployed app.
- scriptor: Manage the scriptor frontend asset bundle.
- setup-autocomplete: Install shell tab-completion for the viur CLI.
- uninstall-autocomplete: Remove shell autocompletion for the viur CLI.
- update: Regenerate project-managed deploy files (currently
deploy/requirements.txt). - vi: Manage the legacy 'vi' frontend bundle.
admin¶
Manage the admin Vue.js CMS bundle.
Usage:
Options:
Subcommands
- install: Install or replace admin at the given version (default: latest).
- update: Update admin to the latest version.
install¶
Install or replace admin at the given version (default: latest).
Usage:
Options:
update¶
Update admin to the latest version.
Usage:
Options:
autocomplete-info¶
Show autocompletion status and instructions.
Usage:
Options:
build¶
Build deploy artifacts (npm bundles, exec build steps) for a ViUR project.
Usage:
Options:
Subcommands
- app: Build a single application from the profile's
buildssection. - clean: Drop build artifacts for one application (TARGET) or for all builds in the profile.
- release: Build every entry in the profile's
buildssection, in declaration order.
app¶
Build a single application from the profile's builds section.
Usage:
Options:
clean¶
Drop build artifacts for one application (TARGET) or for all builds in the profile.
Usage:
Options:
release¶
Build every entry in the profile's builds section, in declaration order.
Usage:
Options:
check¶
Audit Python (pip-audit) and npm (npm audit) dependencies for known vulnerabilities.
Usage:
Options:
cloud¶
Manage Google Cloud resources for a ViUR project (deploy, IAM, backup, datastore).
Usage:
Options:
Subcommands
- cleanup: Run
gcloud datastore indexes cleanupagainstdeploy/index.yaml. - copy: Copy data between Cloud Storage buckets or between bucket and Datastore.
- create: Add a cloudfunction entry to project.json (interactive prompts for missing fields).
- deploy: Deploy app, index, cron, queue, or a cloudfunction to Google Cloud.
- disable: Disable an optional cloud feature on the active project (currently only
backup). - enable: Enable an optional cloud feature on the active project (currently only
backup). - get: Read information from the active cloud project (currently: IAM roles).
- init: Bootstrap a fresh project on GCP by deploying its cron and queue configs.
- setup: Apply IAM-role bindings from
<profile>_roles.jsonback to the project.
cleanup¶
Run gcloud datastore indexes cleanup against deploy/index.yaml.
Usage:
Options:
copy¶
Copy data between Cloud Storage buckets or between bucket and Datastore.
Usage:
Options:
create¶
Add a cloudfunction entry to project.json (interactive prompts for missing fields).
Each unset CLI option falls back to a click.prompt. The result is
persisted under gcloud.functions.<name> in the active profile.
Usage:
Options:
-g, --gen TEXT
-src, --source TEXT
-n, --name TEXT
-ep, --entrypoint TEXT
-ev, --env-vars-file TEXT
-mem, --memory TEXT
-rt, --runtime TEXT
-tr, --trigger TEXT
-h, --help Show this message and exit.
deploy¶
Deploy app, index, cron, queue, or a cloudfunction to Google Cloud.
Examples: viur cloud deploy app dev viur cloud deploy index live --yes viur cloud deploy cloudfunction dev --name=billing viur cloud deploy app dev --skip_checks --ext=hotfix-2026-05-05
Action-specific behaviour:
apprunsviur checkfirst (unless--skip_checks) and thengcloud app deployagainstconf['distribution_folder']. The version label resolves$(...)variables inproject.json'sversionfield.--extappends a suffix.indexreadsdeploy/index.yamland sorts/dedupes index definitions by kind before deploy.cron/queuedeploy the matchingdeploy/<action>.yaml.cloudfunctionrequires--nameto point at a function entry defined inproject.jsonundergcloud.functions.
Usage:
Options:
-e, --ext TEXT
-y, --yes
--skip_checks Skip the security checks before the deployment
-n, --name TEXT
-h, --help Show this message and exit.
disable¶
Disable an optional cloud feature on the active project (currently only backup).
Usage:
Options:
enable¶
Enable an optional cloud feature on the active project (currently only backup).
Usage:
Options:
get¶
Read information from the active cloud project (currently: IAM roles).
Usage:
Options:
init¶
Bootstrap a fresh project on GCP by deploying its cron and queue configs.
Usage:
Options:
setup¶
Apply IAM-role bindings from <profile>_roles.json back to the project.
Usage:
Options:
create¶
Clone viur-base into ./NAME and run its clean-base.py setup wizard.
Optionally chains into ./viur-gcloud-setup.sh NAME if confirmed,
so the project is wired to a fresh GCP project in one shot.
Usage:
Options:
env¶
Print the resolved profile and the versions of CLI tools used by ViUR development.
Usage:
Options:
package¶
[DEPRECATED] Use 'viur
The 'viur package …' surface is kept for backwards compatibility and will be removed in v3.2. Prefer 'viur admin install', 'viur scriptor update', etc.
Usage:
Options:
project¶
Inspect the resolved project.json configuration for a profile.
Usage:
Options:
run¶
Start the application locally via app_server (requires an active gcloud login).
Resolves application_name from the profile and forwards
--appyaml, --port and --gunicorn_port to app_server
if they are set.
Usage:
Options:
script¶
Pull, push, and run ViUR Scriptor scripts against a deployed app.
Usage:
Options:
Subcommands
- configure: Update Scriptor connection settings (base URL, username, working dir).
- pull: Download all server-side Scriptor scripts into the local working_dir.
- push: Upload local working_dir scripts to the server.
- run: Execute
working_dir/PATHlocally with the configured Scriptor session. - setup: Authenticate against the configured Scriptor base URL and persist the session.
configure¶
Update Scriptor connection settings (base URL, username, working dir).
Only flags that are passed are written; the rest of the
viur_scriptor_config.json keeps its previous values.
Usage:
Options:
--url TEXT Set the url
--username TEXT Set the username
--working_dir TEXT Set the working directory where scripts are stored to
-h, --help Show this message and exit.
pull¶
Download all server-side Scriptor scripts into the local working_dir.
Existing files with diverging content prompt for confirmation
before being overwritten, unless --force is set.
Usage:
Options:
--force BOOLEAN Force replace files from server in local working directory
-h, --help Show this message and exit.
push¶
Upload local working_dir scripts to the server.
Skips files whose SHA-256 already matches the server-side copy.
With --watch the command stays running and re-pushes any file
that changes on disk.
Usage:
Options:
-f, --force Force push files from the local working directory onto the
server
-w, --watch Watch for file changes in the script folder and push them to
the server
-h, --help Show this message and exit.
run¶
Execute working_dir/PATH locally with the configured Scriptor session.
Usage:
Options:
setup¶
Authenticate against the configured Scriptor base URL and persist the session.
Tries SSO via :func:ensure_login first (requires viur-core
≥ 3.8.19); falls back to user+password prompt and stores the
resulting cookies in viur_scriptor_config.json for subsequent
viur script pull/push/run.
Usage:
Options:
scriptor¶
Manage the scriptor frontend asset bundle.
Asset-bundle install for the SPA shipped alongside admin. Not to be
confused with viur script (which pulls/pushes Scriptor scripts
against a deployed app).
Usage:
Options:
Subcommands
- install: Install or replace the scriptor frontend at the given version.
- update: Update the scriptor frontend to the latest version.
install¶
Install or replace the scriptor frontend at the given version.
Usage:
Options:
update¶
Update the scriptor frontend to the latest version.
Usage:
Options:
setup-autocomplete¶
Install shell tab-completion for the viur CLI.
Generates Click's completion script for the chosen shell and writes it
next to the shell's rc file (sourcing it from ~/.bashrc / ~/.zshrc,
or directly into fish's completions dir).
Args:
shell: bash, zsh, fish, or auto (detect from $SHELL).
Usage:
Options:
--shell [bash|zsh|fish|auto] Shell type (auto-detect if not specified)
-h, --help Show this message and exit.
uninstall-autocomplete¶
Remove shell autocompletion for the viur CLI.
Usage:
Options:
update¶
Regenerate project-managed deploy files (currently deploy/requirements.txt).
Examples: viur update requirements viur update requirements live
Usage:
Options:
vi¶
Manage the legacy 'vi' frontend bundle.
Usage:
Options:
Subcommands
- install: Install or replace vi at the given version (default: latest).
- update: Update vi to the latest version.
install¶
Install or replace vi at the given version (default: latest).
Usage:
Options:
update¶
Update vi to the latest version.
Usage:
Options: