0
0
Supabasecloud~20 mins

Supabase CLI setup - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Supabase CLI Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Supabase CLI Initialization

What is the primary purpose of running supabase init in a new project directory?

AIt initializes local configuration files and folders needed for Supabase CLI to manage the project.
BIt creates a new Supabase project in the cloud automatically.
CIt deploys the database schema to the Supabase cloud instance.
DIt installs the Supabase CLI globally on your machine.
Attempts:
2 left
💡 Hint

Think about what happens locally when you start using Supabase CLI in a folder.

Configuration
intermediate
2:00remaining
Correct Supabase CLI Login Command

Which command correctly logs you into your Supabase account using the CLI?

Asupabase signin
Bsupabase auth login
Csupabase connect
Dsupabase login
Attempts:
2 left
💡 Hint

Check the official Supabase CLI command for authentication.

Architecture
advanced
2:00remaining
Supabase CLI Local Development Setup

After running supabase init, which folder does the CLI create to store your local database migrations and seed files?

Amigrations
Bsupabase/migrations
Csupabase/local
Ddb/migrations
Attempts:
2 left
💡 Hint

Look for the folder inside the supabase directory that holds migration files.

security
advanced
2:00remaining
Handling Supabase CLI Access Tokens

Where does the Supabase CLI store your access token after login, and what is the best practice for securing it?

AIn a plain text file in the project folder; best practice is to add it to .gitignore.
BIn environment variables; best practice is to never commit them to version control.
CIn the system keychain or credential store; best practice is to use OS-level security features.
DIn a hidden file in your home directory; best practice is to encrypt the file manually.
Attempts:
2 left
💡 Hint

Think about how CLI tools usually store sensitive tokens securely on your computer.

service_behavior
expert
2:00remaining
Effect of Running supabase start Without Docker

What happens if you run supabase start on a machine where Docker is not installed or running?

AThe CLI will show an error indicating Docker is required and will not start the local services.
BThe CLI will start only the database service without Docker.
CThe CLI will start a cloud-based Supabase instance instead of local services.
DThe CLI will automatically install Docker and start the local Supabase stack.
Attempts:
2 left
💡 Hint

Consider what the Supabase CLI depends on to run local services.