-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
If I run fauna schema push the CLI asks ? Push the above changes? (y/N). If I type N and press enter, everything is fine, but if I press ctrl + c it throws an unexpected error.
No gamebreaker, but in favor to avoid broken window effects would be nice to see it fixed.
? Push the above changes? (y/N)
fauna schema push
Push local .fsl schema files to Fauna.
Output:
--color Enable color formatting. Use --no-color to disable. [boolean] [default: true]
--json Output the results as JSON. [boolean] [default: false]
--quiet Suppress all log messages except fatal errors. Overrides --verbosity and --verbose-component. [boolean] [default: false]
Config:
--config Path to a CLI config file to use. If provided, you must specify a profile. [string] [default: "."]
-p, --profile Profile from the CLI config file to use. [string]
Debug:
--verbose-component Components to emit logs for. Overrides the --verbosity flag. Pass values as a space-separated list. Ex: --verbose-component fetch error. [array] [choices: "argv", "completion", "config", "creds", "error", "fetch"] [default: []]
--verbosity Least critical log level to emit. Accepts 1 (fatal) to 5 (debug). Lower values represent more critical logs. [number] [default: 0]
API:
--account-key Fauna account key used for authentication. Can't be used with --user or --secret. [string]
-u, --user CLI user to run the command as. You must first log in as the user using 'fauna login'. [string] [default: "default"]
-r, --role Role used to run the command. [string]
-d, --database Database, including Region Group and hierarchy, to run the command in. Ex: 'us/my_db', 'eu/parent_db/child_db', 'global/db'. [string]
--local Use a local Fauna container. Sets --url to 'http://0.0.0.0:8443' and --secret to 'secret'. [boolean] [default: false]
--url URL for Core HTTP API requests made by the command. Defaults to https://db.fauna.com. [string]
--secret Secret used for authentication. [string]
Options:
-h, --help Show help. [boolean]
--version Show the Fauna CLI version. [boolean]
--fsl-directory, --directory, --dir Path to a local directory containing .fsl files for the database. [string] [default: "."]
--input Prompt for input. Use --no-input to disable. [boolean] [default: true]
--active Apply the local schema to the database's active schema. Can result in temporarily unavailable indexes. [boolean] [default: false]
Examples:
fauna schema push --database us/my_db --dir /path/to/schema/dir Stage schema changes for the 'us/my_db' database. If schema is already staged, replace the staged schema.
fauna schema push --secret my-secret --dir /path/to/schema/dir Stage schema changes for the database scoped to a secret. If schema is already staged, replace the staged schema.
fauna schema push --database us/my_db --dir /path/to/schema/dir --active Immediately apply changes to the 'us/my_db' database's active schema.
fauna schema push --database us/my_db --dir /path/to/schema/dir --no-input Run the command without input prompts.
An unexpected error occurred...
User force closed the prompt with 0 null
If you believe this is a bug, please report this issue on GitHub: https://github.com/fauna/fauna-shell/issuesUsing cli 4
Metadata
Metadata
Assignees
Labels
No labels