CLI command reference
This reference is rendered from the checked-in public CLI contract. Hidden installer configuration commands are intentionally omitted.
nyas login
Log in through browser or device authorization.
nyas loginnyas logout
Remove stored Nyas credentials.
nyas logoutnyas start
Create a project and wait until it is ready.
nyas start [OPTIONS]--json--wait-timeout <WAIT_TIMEOUT>nyas create
Create a named project and wait until it is ready.
nyas create <PROJECT_NAME> [OPTIONS]--plan <free|starter|growth>--jsonnyas list
List projects in the current account.
nyas list [OPTIONS]--jsonnyas project
Show a project and its connection credentials.
nyas project <PROJECT_ID> [OPTIONS]--jsonnyas rename
Rename a project.
nyas rename <PROJECT_ID> <PROJECT_NAME> [OPTIONS]--jsonnyas password-set
Set the password for a ready database.
nyas password-set <PROJECT_ID> <PASSWORD> [OPTIONS]--jsonnyas password-regenerate
Generate a new database password.
nyas password-regenerate <PROJECT_ID> [OPTIONS]--jsonnyas usage
Show project storage, query, and connection usage.
nyas usage <PROJECT_ID> [OPTIONS]--jsonnyas ping
Check control-plane connectivity to a database.
nyas ping <PROJECT_ID> [OPTIONS]--jsonnyas delete
Permanently delete a project and its owned resources.
nyas delete <PROJECT_ID> [OPTIONS]--yes--jsonnyas migrate
Migrate an existing PostgreSQL database into Nyas.
nyas migrate <PROJECT_SELECTOR> --from <SOURCE> [OPTIONS]--from <SOURCE>--jsonnyas migrate-status
Show a running migration.
nyas migrate-status <MIGRATION_ID> [OPTIONS]--jsonnyas migrations
List account migrations.
nyas migrations [OPTIONS]--jsonnyas restores
List restores for a project.
nyas restores <PROJECT_ID> [OPTIONS]--jsonnyas restore-availability
Show available restore windows and backups.
nyas restore-availability <PROJECT_ID> [OPTIONS]--jsonnyas restore-create
Queue a point-in-time or scheduled-backup restore.
nyas restore-create <PROJECT_ID> --mode <pitr|scheduled-backup> [OPTIONS]--mode <pitr|scheduled-backup>--timestamp <TIMESTAMP>--scheduled-backup-id <SCHEDULED_BACKUP_ID>--jsonnyas restore-status
Show a restore operation.
nyas restore-status <RESTORE_ID> [OPTIONS]--jsonnyas storage-settings
Show project storage settings.
nyas storage-settings <PROJECT_ID> [OPTIONS]--jsonnyas storage-settings-set
Update the project file-size limit.
nyas storage-settings-set <PROJECT_ID> --max-file-size-bytes <MAX_FILE_SIZE_BYTES> [OPTIONS]--max-file-size-bytes <MAX_FILE_SIZE_BYTES>--jsonnyas sql
Open an interactive SQL session.
nyas sql <PROJECT_ID>nyas store
Open the interactive storage shell.
nyas store <PROJECT_ID>nyas db
Manage a project's database lifecycle.
nyas dbnyas db create
Provision a database in an existing project.
nyas db create [OPTIONS]--project-id <PROJECT_ID>--jsonnyas db stop
Stop a database while retaining its disk and connection string.
nyas db stop [OPTIONS]--project-id <PROJECT_ID>--jsonnyas db start
Start a stopped database.
nyas db start [OPTIONS]--project-id <PROJECT_ID>--jsonnyas db destroy
Destroy a database and all of its backups.
nyas db destroy [OPTIONS]--project-id <PROJECT_ID>--yes--jsonnyas edge
Manage project-scoped edge workers.
nyas edgenyas edge init
Create a Rust WASI edge-worker template.
nyas edge init [DIR] --project-id <PROJECT_ID> --name <NAME>--project-id <PROJECT_ID>--name <NAME>nyas edge deploy
Build or upload an edge worker.
nyas edge deploy <PROJECT_ID> [PATH] --name <NAME> --route <ROUTE> [OPTIONS]--name <NAME>--route <ROUTE>--jsonnyas edge invoke
Invoke a deployed edge worker.
nyas edge invoke <PROJECT_ID> <NAME> [-- <ARGS>…] [OPTIONS]--jsonnyas edge list
List project edge workers.
nyas edge list <PROJECT_ID> [OPTIONS]--jsonnyas edge delete
Delete an edge worker.
nyas edge delete <PROJECT_ID> <NAME> [OPTIONS]--jsonnyas deploy
Build and deploy an application directory.
nyas deploy [PATH] [OPTIONS]--project-id <PROJECT_ID>--jsonnyas rollback
Roll an application back to an earlier version.
nyas rollback [OPTIONS]--project-id <PROJECT_ID>--to-version <TO_VERSION>--jsonnyas app
Deploy and manage containerized applications.
nyas appnyas app build
Inspect generated application build configuration.
nyas app buildnyas app build check
Check generated application build configuration.
nyas app build check [PATH] [OPTIONS]--jsonnyas app status
Show the live application deployment.
nyas app status <PROJECT_ID> [OPTIONS]--jsonnyas app logs
Show logs for the latest deployment.
nyas app logs <PROJECT_ID> [OPTIONS]--jsonnyas app stop
Stop the application host while retaining its volume.
nyas app stop [OPTIONS]--project-id <PROJECT_ID>--jsonnyas app start
Start a stopped application host.
nyas app start [OPTIONS]--project-id <PROJECT_ID>--jsonnyas app destroy
Destroy the application and terminate its host.
nyas app destroy [OPTIONS]--project-id <PROJECT_ID>--yes--jsonnyas mcp
Start the local stdio MCP server.
nyas mcp