Skip to main content

Layer CLI error messages

This page describes the different types of CLI error messages.

Error messages

MessageExecution stageCauseHow to fix
Path "..." not within a Layer project. Missing ".layer/project.yml" file.Project initialization.A subdirectory ".layer" containing the "project.yml" file cannot be found in the provided working directory or any of the working directory's parent directories.Check that you're providing the correct working directory for your project. Add the ".layer/project.yml" file structure containing a valid project YAML configuration if it is mission one.
User not logged in.Project initialization.User has not logged in with the CLI.Run layer login to log in with the CLI.
Layer service unavailable.Project initialization.The CLI could not establish a connection with the Layer service.Check that you have an internet connection and then check the status page of Layer for the service health.