← 返回命令列表

Linux command

codecrafters 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Log in

codecrafters login

Run tests

codecrafters test

Submit your solution

codecrafters submit

Show current challenge status

codecrafters status

View the current challenge instructions

codecrafters instructions

Clone a challenge

codecrafters clone [challenge-slug]

说明

codecrafters is the command-line interface for the CodeCrafters platform, which provides challenges for building real-world software from scratch. Projects include building your own Redis, Git, Docker, SQLite, and other complex systems. The CLI handles authentication, test execution, and solution submission. It integrates with the CodeCrafters platform to track progress through multi-stage challenges, where each stage introduces new requirements and complexity. Challenges are completed by implementing code that passes increasingly sophisticated tests. The local test command provides quick feedback during development, while submit validates against the full test suite on CodeCrafters' servers.

参数

login
Authenticate with your CodeCrafters account.
test
Run tests for the current challenge stage locally.
submit
Submit your solution to CodeCrafters for evaluation.
status
Display the current progress and stage information.
instructions
Show the instructions for the current challenge stage.
clone _SLUG_
Clone a challenge repository to begin working on it.
logout
Log out from your CodeCrafters account.
--help
Display help information.
--version
Display version information.

FAQ

What is the codecrafters command used for?

codecrafters is the command-line interface for the CodeCrafters platform, which provides challenges for building real-world software from scratch. Projects include building your own Redis, Git, Docker, SQLite, and other complex systems. The CLI handles authentication, test execution, and solution submission. It integrates with the CodeCrafters platform to track progress through multi-stage challenges, where each stage introduces new requirements and complexity. Challenges are completed by implementing code that passes increasingly sophisticated tests. The local test command provides quick feedback during development, while submit validates against the full test suite on CodeCrafters' servers.

How do I run a basic codecrafters example?

Run `codecrafters login` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does login do in codecrafters?

Authenticate with your CodeCrafters account.