cli

module
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2021 License: Apache-2.0

README

Ferret CLI

Go Report Status Build Status Discord Chat Ferret release Apache-2.0 License

lab

Documentation is available at our website.

Installation

Binary

You can download the latest binaries from here.

Source
  • Go >=1.16
go get https://github.com/MontFerret/cli

Quick start

REPL
ferret exec
Welcome to Ferret REPL 0.14.1

Please use `exit` or `Ctrl-D` to exit this program.
Script execution
ferret exec my-script.fql
With browser
ferret exec --browser-open my-script.fql
As headless
ferret exec --browser-headless my-script.fql
Query parameters
ferret exec -p 'foo:"bar"' -p 'qaz:"baz"' my-script.fql
With remote runtime (worker)
ferret exec --runtime 'https://my-worker.com' my-script.fql

Options

Usage:
  ferret [flags]
  ferret [command]

Available Commands:
  browser     Manage Ferret browsers
  config      Manage Ferret configs
  exec        Execute a FQL script or launch REPL
  help        Help about any command
  version     Show the CLI version information

Flags:
  -h, --help               help for ferret
  -l, --log-level string   Set the logging level ("debug"|"info"|"warn"|"error"|"fatal") (default "info")

Use "ferret [command] --help" for more information about a command.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL